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

[ci] Move pregen steps into a composite action #7474

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

Gold856
Copy link
Contributor

@Gold856 Gold856 commented Dec 2, 2024

This ensures complete uniformity in how the generation scripts are run between the pregen check and comment command. All dependencies and scripts are set up in the exact same way, each time. The old pregen_all script has been removed and moved into the composite action to ensure failed scripts will always fail the job.

@Gold856 Gold856 marked this pull request as ready for review December 2, 2024 00:35
@Gold856 Gold856 requested a review from a team as a code owner December 2, 2024 00:35
@Gold856 Gold856 changed the title Move pregen steps into a composite action [ci] Move pregen steps into a composite action Dec 2, 2024
@Gold856
Copy link
Contributor Author

Gold856 commented Dec 2, 2024

/format

Gold856 and others added 2 commits December 13, 2024 10:34
This ensures that complete uniformity in how the generation scripts are run. All dependencies and scripts are set up in the exact same way, each time. The old pregen_all script has been removed and moved into the composite action to ensure failed scripts will always fail the job.
Copy link
Member

@PeterJohnson PeterJohnson left a comment

Choose a reason for hiding this comment

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

I don't like removing the pregen_all.py script. How can I pregenerate locally without it? It's fine to have the composite action, but can it be set up to install dependencies and call the pregen_all.py script instead?

@Gold856
Copy link
Contributor Author

Gold856 commented Dec 18, 2024

Just call the individual pregen scripts. That’s how it was before, and it’s highly unlikely you’ll need to regenerate everything at the same time.

@PeterJohnson PeterJohnson merged commit 38d8929 into wpilibsuite:main Dec 19, 2024
43 checks passed
@Gold856 Gold856 deleted the unify-pregen branch December 19, 2024 08:12
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.

3 participants