Skip to content

build: early exit on error #69582

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
Nov 3, 2023
Merged

build: early exit on error #69582

merged 1 commit into from
Nov 3, 2023

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Nov 1, 2023

If build.ps1 fails, immediately exit rather than cleaning up. We may lose the error code in such situations.

@compnerd
Copy link
Member Author

compnerd commented Nov 1, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Nov 1, 2023

https://ci-external.swift.org/job/swift-PR-windows/18257/console ... nope, its still silently failing.

@compnerd
Copy link
Member Author

compnerd commented Nov 1, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Nov 2, 2023

Gah, its still not reporting the error properly.

@compnerd compnerd marked this pull request as draft November 2, 2023 15:00
@compnerd
Copy link
Member Author

compnerd commented Nov 2, 2023

@swift-ci please test Windows platform

@compnerd compnerd force-pushed the early-exit branch 2 times, most recently from b6b8435 to 126ee47 Compare November 2, 2023 16:49
@compnerd
Copy link
Member Author

compnerd commented Nov 2, 2023

@swift-ci please test Windows platform

Apply more error checking to ensure that failures do not slip through
the various layers of invocation.
@compnerd compnerd marked this pull request as ready for review November 2, 2023 17:56
@compnerd
Copy link
Member Author

compnerd commented Nov 2, 2023

@swift-ci please smoke test

@compnerd compnerd linked an issue Nov 2, 2023 that may be closed by this pull request
Copy link
Contributor

@tristanlabelle tristanlabelle left a comment

Choose a reason for hiding this comment

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

Looks good!

@compnerd compnerd merged commit e9da96f into swiftlang:main Nov 3, 2023
@compnerd compnerd deleted the early-exit branch November 3, 2023 00:29
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.

build-windows-toolchain.bat does not exit with non-zero exit code
3 participants