Skip to content

docs(openspec): plan #2163 measure branches and keep the coverage xml - #3960

Merged
dan-petty merged 2 commits into
mainfrom
ci/2163-enable-branch-coverage-and-upload-coverage
Nov 7, 2026
Merged

dan-petty merged 2 commits into
mainfrom
ci/2163-enable-branch-coverage-and-upload-coverage

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2163

The coverage gate measures lines only, so a conditional whose other side has no test still passes. CI writes .data/coverage.xml for diff-cover and then discards it, so a reviewer cannot see the per-file figures without a new run. This change sets branch = true in [tool.coverage.run], so coverage.py measures both sides of each conditional. The Tests & Coverage job now uploads .data/coverage.xml with actions/upload-artifact, pinned by commit SHA, with a 7-day retention. The upload runs with if-no-files-found: warn and always(), so a failed changed-line step still keeps the report. The floor stays at 85%: #2356 owns it. The 90% changed-line gate and diff-cover are unchanged.

Change: openspec/changes/2163-enable-branch-coverage-and-upload-coverage/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 7, 2026
…#2163

Add the $ prefix to the verification command spans so that the plan
reader parses them as commands. Name .github/workflows/ci.yml in a code
span of task 2.1 so that the step packs the changed file. Set group 1
for the dropped criterion to match the issue text without a comma
partition fault. Plans #2163.
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 7, 2026 17:09
@dan-petty
dan-petty merged commit 61f158e into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the ci/2163-enable-branch-coverage-and-upload-coverage branch November 7, 2026 17:33
dan-petty added a commit that referenced this pull request Nov 15, 2026
An item can state that a CI job stays under a duration, and the stage
job planned it without reading the current duration, as #2163 and pull
request #3960 show. New module
src/devops_cli/roadmap/stage/stage_time.py parses the check name and its
under N s limit from the item body and compares the limit with the mean
of the check's last 20 runs, passing a mean equal to the limit as devops
ci job-time does. Before the planner call, the stage job reads the mean,
retries once, returns the item to New with the evidence when the mean is
over the limit through the existing false-premise path, and records a
ci_infra failure when the read fails twice.

Closes #4026

Change:
`openspec/changes/archive/2026-11-14-4026-check-the-ci-job-time-premise/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant