Repository navigation
ci(regression): measure the lane's coverage nightly instead of on every push - #2031
Merged
Merged
Conversation
…ry push Push runs of the regression lane on main took 25-37 min with --cov (the last nine completed runs) against 12-19 min for the same tests on a pull request without it. A push run's job is to say quickly whether main is red; the coverage number can wait for the night. Push runs now use the pull-request command, without --cov, and skip the Codecov upload. The schedule moves from weekly (Sunday) to nightly, at 08:00 UTC, an hour after python-hatch-workflow.yml's nightly run, and that run and manual dispatches keep coverage and the upload. codecov.yml (new; everything else stays at Codecov's defaults) turns on carryforward for the `regression` flag, so a commit with no regression upload reuses the last one instead of dropping this lane's lines from its total. Codecov's validator accepts the file. The 65% floor is unaffected: Combine Coverage in python-hatch-workflow.yml enforces it from the fast, network and slow lanes. Pull requests are unaffected too; they already ran without coverage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Push runs of the regression lane on
mainspend about half their time measuring coverage. This moves that measurement to a nightly run.Why
The last nine completed push runs on
maintook 25–37 min. The same tests on a pull request, without--cov, take 12–19 min. A push run exists to say quickly whethermainis red ("Report red main" files the issue when it finishes), and the coverage number doesn't need to be per-commit.What changes
main--cov, Codecov uploadNew
codecov.ymlturns oncarryforwardfor theregressionflag. Without it, merge commits between nightly runs would show a total without this lane's lines. Everything else stays at Codecov's defaults, since the repo had no config before.Not affected
Combine Coverage(python-hatch-workflow.yml) from the fast, network and slow lanes, not this one.Verification
codecov.io/validate) acceptscodecov.yml.ifwith each event name substituted:pull_requestandpushrun without coverage.scheduleandworkflow_dispatchrun with--cov --cov-report=xml.maincan show: the first push run after merge should finish in about 12–19 min, and the first nightly should upload underregression.Made with Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code