Skip to content
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

[swift-syntax] Reduce number of jobs that verify generated files #68763

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 26, 2023

We were checking that the generated files matched the code in CodeGeneration in a number of jobs, which was still a relict from when gyb_syntax_support lived in the swift repo and was thus possible to break with a PR to the swift repo. Now, CodeGeneration lives exclusively in the swift-syntax repo and thus the checked in generated files can only be broken by a swift-syntax change.

Reduce the number of jobs that verify the generated files to:

  • swift-syntax macOS PR testing (no need to run CodeGeneration on macOS and Linux)
  • buildbot_all_platforms,tools=RA,stdlib=RA, which is used fro the macOS Pull Request status bot so we get signal if two PRs in swift-syntax raced and broke the checked in generated files

And while at it, also only verify the formatting of swift-syntax on macOS. There’s no need to verify it on all platforms.

We were checking that the generated files matched the code in CodeGeneration in a number of jobs, which was still a relict from when `gyb_syntax_support` lived in the swift repo and was thus possible to break with a PR to the swift repo. Now, CodeGeneration lives exclusively in the swift-syntax repo and thus the checked in generated files can only be broken by a swift-syntax change.

Reduce the number of jobs that verify the generated files to:
- swift-syntax macOS PR testing (no need to run CodeGeneration on macOS and Linux)
- `buildbot_all_platforms,tools=RA,stdlib=RA`, which is used fro the macOS Pull Request status bot so we get signal if two PRs in swift-syntax raced and broke the checked in generated files

And while at it, also only verify the formatting of swift-syntax on macOS. There’s no need to verify it on all platforms.
@ahoppen ahoppen requested a review from bnbarham September 26, 2023 16:58
@ahoppen
Copy link
Member Author

ahoppen commented Sep 26, 2023

@swift-ci Please smoke test

@ahoppen ahoppen merged commit f1beabc into swiftlang:main Sep 26, 2023
@ahoppen ahoppen deleted the ahoppen/reduce-codegen-verification branch September 26, 2023 22:31
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