Skip to content

Ensure a newline is printed after Planning build #8050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Oct 16, 2024

If a PackageStructure build needs to occur during a swift test list --skip-build command there is no newline printed to the terminal, causing the first line of listed tests to appear on the same line as the progress, i.e:

[1/1] Planning buildTestPackageTests.example()

This doesn't occur when you omit --skip-build because there is code in the LLBuildProgressTracker.swift that calls
progressAnimation.complete(success:) when a build completes. Ideally I'd like to contain this logic to the LLBuildProgressTracker, however for a PackageStructure build the relevant buildComplete delegate method is never called.

If a PackageStructure build needs to occur during a
`swift test --skip-build` command there is no newline printed to the
terminal, causing the first line of listed tests to appear on the same
line as `[1/1] Planning Build`.

This doesn't occur when you omit `--skip-build` because there is code in
the `LLBuildProgressTracker.swift` that calls
`progressAnimation.complete(success:)` when a build completes. Ideally
I'd like to contain this logic t othe LLBuildProgressTracker, however
for a PackageStructure build the relevant buildComplete delegate method
is never called.
@plemarquand
Copy link
Contributor Author

@swift-ci test

@plemarquand plemarquand merged commit c94df76 into swiftlang:main Oct 17, 2024
5 checks passed
@plemarquand plemarquand deleted the finalize-after-plan branch October 17, 2024 14:45
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.

2 participants