Skip to content

cancel the workflow if build-gradle fails and unblock previously dependent jobs#2525

Merged
mcm001 merged 1 commit into
PhotonVision:mainfrom
samfreund:unblock-build-gradle
Jun 30, 2026
Merged

cancel the workflow if build-gradle fails and unblock previously dependent jobs#2525
mcm001 merged 1 commit into
PhotonVision:mainfrom
samfreund:unblock-build-gradle

Conversation

@samfreund

@samfreund samfreund commented Jun 29, 2026

Copy link
Copy Markdown
Member

We don't need to wait for build-gradle to run everything else. Thus also sets it up so that if tests fail, we cancel the entire workflow.

This also cuts roughly six minutes off our CI time.

@samfreund samfreund marked this pull request as ready for review June 29, 2026 15:37
@samfreund samfreund requested a review from a team as a code owner June 29, 2026 15:37
@samfreund samfreund force-pushed the unblock-build-gradle branch from aa9a9aa to 8b15873 Compare June 29, 2026 15:37
@samfreund samfreund force-pushed the unblock-build-gradle branch from 8b15873 to 7c941ac Compare June 29, 2026 18:38
@samfreund samfreund requested a review from mcm001 June 29, 2026 20:08
@mcm001

mcm001 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

At the potential cost of eating CI runner time for jobs that would fail, right?

@samfreund

Copy link
Copy Markdown
Member Author

At the potential cost of eating CI runner time for jobs that would fail, right?

So yes, but everything gets canceled if the tests fail. Since we don't pay the runner time, I don't think it's any worse than if someone was to commit code that passed the tests.

@mcm001

mcm001 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Is it possible for us to later only build for Mac universal?

@mcm001 mcm001 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to keep gradle build job I think? I think it hits more targets than just the FAT JAR but maybe fact check me

@mcm001 mcm001 merged commit bab1563 into PhotonVision:main Jun 30, 2026
92 checks passed
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