Skip to content

Make the CI build jobs conditional on the static checks' success. #899

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

Closed

Conversation

PapyChacal
Copy link
Contributor

This PR offers to make heavy build jobs conditional on static checks' success.

Rationale: I realized that when I have a minor style issue on my commit, I often correct it right away and push or push-force it. This triggers the jobs as many times as one pushes; even a push force is not cancelling the overridden commit's CI jobs, leading to a fair amount of wasted CI time.

I'm not sure what the stakes are for the Godot team, be it quotas and/or bills, but I guess it wouldn't hurt to avoid wasting it.
If this is of interest, I can do the same on Godot's side, where it would be more significant.

@Calinou Calinou added the enhancement This is an enhancement on the current functionality label Oct 25, 2022
@PapyChacal PapyChacal marked this pull request as draft October 25, 2022 11:44
@PapyChacal PapyChacal force-pushed the CI-format-conditional branch from c35cc4c to b657078 Compare October 25, 2022 13:27
@PapyChacal PapyChacal force-pushed the CI-format-conditional branch from b657078 to 39f75e4 Compare October 25, 2022 13:31
@PapyChacal
Copy link
Contributor Author

Used reusable workflow instead, so this just works now.
I did some renaming so reads better in the Actions tab, and for consistency between SCons and CMake builds.

For the engine's main repository, it turns out someone already did the work: godotengine/godot#65232

@PapyChacal PapyChacal marked this pull request as ready for review October 25, 2022 14:15
@dsnopek dsnopek added the topic:buildsystem Related to the buildsystem or CI setup label Oct 18, 2023
@AThousandShips AThousandShips changed the title Make the CI build jobs conditional on the satic checks' success. Make the CI build jobs conditional on the static checks' success. Oct 18, 2023
@enetheru
Copy link
Collaborator

enetheru commented Dec 9, 2024

@PapyChacal it looks like this feature has been incorporated into the CI, at least that is my experience. That being the case, this PR can be closed?

@dsnopek
Copy link
Collaborator

dsnopek commented Dec 9, 2024

Yep, I think this was implemented in #1622

@dsnopek dsnopek closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality topic:buildsystem Related to the buildsystem or CI setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants