Skip to content

Exit build-script verify-source-code with non-zero exit code if files don’t match #509

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 21, 2022

Previously, build-script.py verify-source-code would just print an error if the generated files didn’t match, but return with exit code 0, which didn’t fail Swift CI.

@ahoppen ahoppen requested a review from kimdv July 21, 2022 13:15
ahoppen added 2 commits July 21, 2022 23:49
… don’t match

Previously, `build-script.py verify-source-code` would just print an error if the generated files didn’t match, but return with exit code 0, which didn’t fail Swift CI.
Apparently, this update was previously missed and not reported as an issue because `build-script.py verify-source-code` didn’t exit with a non-zero exit code if the generated source files differed.
@ahoppen ahoppen force-pushed the pr/exit-with-1-if-syntax-files-dont-match branch from 352d6fb to a6275e0 Compare July 21, 2022 22:01
@ahoppen
Copy link
Member Author

ahoppen commented Jul 22, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit fb0f401 into swiftlang:main Jul 22, 2022
@ahoppen ahoppen deleted the pr/exit-with-1-if-syntax-files-dont-match branch July 22, 2022 12: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.

2 participants