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): Treat skipped test jobs as failed #2553

Closed
wants to merge 4 commits into from

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Dec 1, 2023

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
Contributor 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