Skip to content

fix(CI): Treat skipped test jobs as failed - #2553

Closed
sentrivana wants to merge 4 commits into
masterfrom
ivana/treat-tests-as-failed-on-skip
Closed

sentrivana wants to merge 4 commits into
masterfrom
ivana/treat-tests-as-failed-on-skip

Conversation

@sentrivana

@sentrivana sentrivana commented Dec 1, 2023 •

Copy link
Copy Markdown
Collaborator

If the check-permissions check fails, the dependent test step will be skipped. The step that actually checks whether a test job was successful only checks for failures, so skipped test jobs are treated as successful, which shouldn't be the case.

So for example in the case of the AWS Lambda suite running on a contributor PR without the Trigger: tests using secrets label, the permissions check will be a failure, so the actual Lambda tests will be skipped, but the overall "All AWS Lambda tests were successful" check will still be green because technically there were no failures.

With this PR we also consider skipped test steps as an overall failure.

@sentrivana

Copy link
Copy Markdown
Collaborator Author

I'll add this to #2567

@sentrivana sentrivana closed this Dec 5, 2023
@sentrivana
sentrivana deleted the ivana/treat-tests-as-failed-on-skip branch December 12, 2023 15: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.

2 participants