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

fix(ci): workaround skipped jobs being considered successful #3380

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silvestre
Copy link
Member

@silvestre silvestre commented Nov 28, 2024

Issue

Due to actions/runner#2566 skipped "Result" jobs are considered successful checks. This breaks our PR validation.

Fix

Introduce an ugly workaround: A new Result job that will be always skipped except when a required job fails, in which case it also fails.

Note

We could probably improve the naming and not call it "Result" but "Acceptance test failure blocker" or something to that end, but as the branch protection is controlled via another repo, let's keep it for now until we have validated everything to work as intended.

# Issue

Due to actions/runner#2566 skipped "Result"
jobs are considered succesful checks. This breaks our PR validation.

# Fix

Introduce an ugly workaround: A new Result job that will be always
skipped except when a required job fails, in which case it also fails.
Copy link

sonarcloud bot commented Nov 28, 2024

@silvestre
Copy link
Member Author

Fails now as expected, e.g. when manually cancelling the deployment:

image

@silvestre
Copy link
Member Author

The successful case has a skipped "Result" step:
image
which in turn is good enough for the PR to be merged:
image

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.

1 participant