Skip to content

[2.4.20] [KT-89285] Stop the xcodebuild logs being output by default - #8277

Merged
Margarita Bobova (woainikk) merged 6 commits into
2.4.20from
rrr/2.4.20/berkay.bozkurt/KT-89285-SwiftPM-import-results-in-flooded-log
Sep 21, 2026
Merged

Margarita Bobova (woainikk) merged 6 commits into
2.4.20from
rrr/2.4.20/berkay.bozkurt/KT-89285-SwiftPM-import-results-in-flooded-log

Conversation

@KotlinBuild

Copy link
Copy Markdown

Original pull request: #8204 by R. Berkay Bozkurt (@rbbozkurt)

- Redirect xcodebuild output to a stream to prevent excessive build log
output.
- Print the xcodebuild output when the task is invoked with --info or in
 case of a failure

^KT-89285

(cherry picked from commit 04f8155)
@kotlin-safemerge

kotlin-safemerge Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Code Owners

RuleOwnersApproval
/​libraries/​tools/​kotlin-​gradle-​plugin-​integration-​tests/​, /​libraries/​tools/​kotlin-​gradle-​plugin/​
kotlin-build-tools
βœ…
Egorand πŸ”’
*
kotlin-release
βœ…
woainikk
PR commands for maintainers
CommandDescriptionParameters
/safe-mergeRebase-merges with automatic fixup commit squashing--fixup Autosquash fixup commits (on by default)
/safe-squash-mergeSquash-merges with optional commit title/body override--title Title of the squashed commit
--message Body of the squashed commit
/dry-runRuns the test pipeline with changes rebased on latest master--retry Retry the CI run on failure
/test-publicTriggers the public test suite without rebasing on latest masterβ€”
/test-privateTriggers the private test suite without rebasing on latest masterβ€”
/codeownersTriggers code owners check and comment updateβ€”
/fixupSquashes fixup commits and force pushes the branchβ€”
/cancel-coordinatorCancels the merge coordinator currently running for this branchβ€”
/cherry-pickCherry-picks this pull request onto a target release branch--target Release version to cherry-pick onto

@Egorand Egor Andreevich (Egorand) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/final

Comment on lines +192 to +194
if (!logger.isInfoEnabled) {
args.add("-quiet")
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this solution!

How exactly does this work when the xcodebuild invocation returns a failure, would xcodebuild then simply ignore the -quiet flag and emit the entire log?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is actually better, it only shows the exact error/failure throwing cause and the lines, not the entire log.

@woainikk
Margarita Bobova (woainikk) merged commit c681c2e into 2.4.20 Sep 21, 2026
4 checks passed
@woainikk
Margarita Bobova (woainikk) deleted the rrr/2.4.20/berkay.bozkurt/KT-89285-SwiftPM-import-results-in-flooded-log branch September 21, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants