Skip to content

ci: Update condition to upload test results to codecov#40988

Merged
jschwe merged 1 commit intoservo:mainfrom
jschwe:jschwender/codecov-fix
Dec 2, 2025
Merged

ci: Update condition to upload test results to codecov#40988
jschwe merged 1 commit intoservo:mainfrom
jschwe:jschwender/codecov-fix

Conversation

@jschwe
Copy link
Copy Markdown
Member

@jschwe jschwe commented Dec 1, 2025

This should fix comments about missing junit.xml files, when the CI job failed before executing the unit-tests.

Testing: Not tested, this is essentially a speculative fix. Not sure how to test it.
Fixes: #40985

@jschwe jschwe requested a review from sagudev as a code owner December 1, 2025 16:11
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 1, 2025
@jschwe jschwe requested review from mrobinson and removed request for sagudev December 1, 2025 16:11
# Upload test results to Codecov, also for failed unit-tests, but only
# if unit-tests were supposed to run, and not if they were skipped (e.g. due to
# an earlier failure).
if: ${{ !cancelled() && inputs.unit-tests && steps.run_unit_tests.conclusion != 'skipped' }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suspect the last condition is enough.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, the second condition should be covered by the last one. I'll keep the first condition though, since a job could get cancelled while running the tests, and in such a case we wouldn't want to upload results.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 1, 2025
This should fix comments about missing junit.xml files, when
the CI job failed before executing the unit-tests.

Signed-off-by: Jonathan Schwender <[email protected]>
@jschwe jschwe force-pushed the jschwender/codecov-fix branch from e7b738d to 16a836a Compare December 1, 2025 16:55
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 1, 2025
@jschwe jschwe enabled auto-merge December 1, 2025 16:57
@jschwe jschwe added this pull request to the merge queue Dec 1, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 1, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 1, 2025
This should fix comments about missing junit.xml files, when the CI job
failed before executing the unit-tests.

Testing: Not tested, this is essentially a speculative fix. Not sure how
to test it.
Fixes: #40985

Signed-off-by: Jonathan Schwender <[email protected]>
@jschwe jschwe removed this pull request from the merge queue due to a manual request Dec 1, 2025
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 1, 2025
@jschwe jschwe added this pull request to the merge queue Dec 2, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 2, 2025
Merged via the queue into servo:main with commit 746eb68 Dec 2, 2025
35 checks passed
@jschwe jschwe deleted the jschwender/codecov-fix branch December 2, 2025 05:27
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@codecov-commenter adds an error comment to many PRs

3 participants