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

Merged
merged 2 commits into from
Nov 29, 2024

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.
@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

@silvestre
Copy link
Member Author

Again, now that all checks have "passed":

image

@silvestre silvestre marked this pull request as ready for review November 29, 2024 08:25
# Issue

Due to fail-fast we were getting less feedback per run, making the feedback loop slower.

# Fix

With fail-fast: false other matrix jobs will be cancelled.
Copy link

sonarcloud bot commented Nov 29, 2024

@silvestre silvestre enabled auto-merge (rebase) November 29, 2024 09:14
@silvestre silvestre merged commit c525fca into main Nov 29, 2024
32 of 33 checks passed
@silvestre silvestre deleted the fix-pr-acceptance-workflow branch November 29, 2024 10:27
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