Repository navigation
chore(ci): keep the per-test times and skip reasons of CI - #5006
Merged
Merged
Conversation
Each test shard of CI now writes a JUnit XML report with the time of each of its tests (.data/junit.xml) and gives the reason of each skip in its log (-rfEs). The shard job uploads the report in its coverage artifact, so the split by measured time (#4250) can read the times of a run. The -r option of pytest replaces its default fE, so the row asks again for the failed and error tests. An unsharded run writes no report.
Owner
Author
|
Fail-to-pass ( Both new tests pass on the head. Local checks (scoped, as for a delivery agent):
|
Owner
Author
|
Before and after (Actions API, job
The report adds about 85 KB to 139 KB to each compressed artifact. The change in time is inside the spread of the main runs, so it has no cost that this sample can measure. Acceptance on the PR run
Owner steps: none. The change sets no repository setting and no required check name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each test shard of CI now keeps the time of each test and gives the reason of each skip. Before, a shard printed only its 10 slowest tests and wrote no JUnit XML report, so each CI saving outside those rows was an estimate. The split by measured time (#4250) needs these times.
devops ciadds-rfEsand--junitxml=.data/junit.xmlto pytest.-rreplaces the defaultfEof pytest, so the row asks again forfandE, and a failed shard still names its failed tests.test-sharduploads.data/junit.xmlin the artifactcoverage-shard-<n>, beside.data/.coverage. The combine step does not change.PYTEST_ADDOPTScannot carry the options:build_subprocess_envrefuses the key (fix(security): the subprocess environment guard accepts the pytest and npm keys that make a child write a file #2747).Closes #4673
Change:
openspec/changes/archive/2026-11-12-4673-keep-the-per-test-times-and/