Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.545
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.546
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 9 files changed
- 1 contributor
Commits on Sep 3, 2026
-
Make the Python Coverage Selector Explicit and Name D4.5's Second Rou…
…te (#1215) Settles two deferred contract defects, #1199 and #1214. Both were found by adversarial passes on earlier pull requests and both were left for a change that could touch CI behaviour rather than wording alone. ## D1.6, the Python coverage invocation **#1199's headline is false, and the live runs say so.** It reported that `pytest --cov-report=xml` collects nothing so no Python repo in the fleet reports coverage. The first half is true, the second is not. Financial-Modeling and aiopurpleair each log `Coverage XML written to file coverage.xml` and upload it, because each carries a `--cov=<package>` entry in its own pyproject `addopts`. homeassistant-purpleair has no `uv.lock`, so the step's own `if` never fires there, and PlexCleaner's Python subtree and ESPHome-Config are lint-only. The real defect is narrower. D1.6 and `spec/project-types.json` both documented the bare invocation as the thing that collects coverage, and it does not: `pytest-cov` reports on what `--cov` selects, so `--cov-report=xml` alone measures nothing, writes no file, and exits zero. A repo onboarded by following D1.6 literally therefore reports nothing while its gate stays green, which is the failure D1.6's own *Prevents* clause names. Nothing downstream notices, because the upload is best-effort by design and reads a missing file exactly as it reads a healthy run. So the contract now states the three obligations that were implicit, that the repo references `pytest-cov`, selects the coverage source in its own `pyproject.toml`, and leaves the report at the root path the upload step already reads, and the validator fails the test step when that file was not written. The step deletes any `coverage.xml` before the run, so the check proves this run wrote one rather than that a file exists. Without that, a repo committing the report satisfies the guard while measuring nothing, which is the same false green in a new place. Proven by removing the delete and watching that case pass. Adding `--cov` to the shared validator was the obvious fix and is the wrong one. Alongside a repo's own `--cov=<package>` it widens the measured set to include `tests/`, which moves every existing repo's percentage and would break a repo running `fail_under = 100`. ## D4.5, the recovery a moved tip forecloses **#1214 assumed settling this needed a live publish against a real registry. It does not.** 5B settles a question of this shape from the YAML, and the YAML answers this one. `publish-release.yml` passes `ref: ${{ github.sha }}`, and every build leaf checks out `needs.get-version.outputs.GitCommitId`. **Re-run all jobs** replays a run under the original event's `GITHUB_SHA`, so `get-version` recomputes the same version, the leaves rebuild the same commit, the package artifact D5.2 deleted is rebuilt and re-uploaded, and `publish-<target>` retries the push. What stays open is only whether the registry accepts the retried push, and no route settles that in advance, the prescribed re-dispatch included. So D4.5 now names two recoveries and says which case each covers, rather than one recovery and an implication that the other case is beyond repair. Three qualifications ship with it: D4.4 and 5B's S9 describe a re-run whose predecessor push succeeded, GitHub allows a re-run only within 30 days, and `--failed` is unreliable because D5.2's delete has usually taken the artifact its download needs. Two claims in the surrounding sentences were false and are corrected with it. "Leaves the first release without its package" is wrong for a NuGet caller, since D4.3 in the same item has the NuGet leaf uploading a `release-asset-*` carrying the package. And "since NBGV derives the version from git height" was attached to the claim that a re-dispatch builds the new tip, which git height does not explain. **#1214's own claim that 5C reserves a real registry push for the maintainer is not in 5C.** 5C reserves the deploy ref gate dispatch and nothing else, so that citation was dropped rather than carried over. ## Reach Financial-Modeling calls `validate-task.yml` at a pinned hub release and picks the guard up at its next Dependabot bump. aiopurpleair still carries its own copy of the file, so it gets nothing here until it adopts the caller stub. Neither goes red: both carry a selector, `pytest-cov`, a `uv.lock`, and no `[tool.coverage.xml]` redirect. The precondition a Python adopter now owes is recorded on Stage 2's tracker in `docs/reusable-workflows.md`. The hub has no `tests/` and no `uv.lock`, so it cannot smoke-test this itself. That is the lint-only carve-out working, not drift, but it means CI here exercises the prose and not the guard. ## Verification Guard measured on a real pytest tree in every direction: no selector writes no file and exits zero, a selector writes it, a bogus selector writes nothing, absent `pytest-cov` exits 4, a `[tool.coverage.xml]` redirect leaves the root path empty, and a committed `coverage.xml` passes the pre-delete version and reds the shipped one. Full gate set green: 1046 script self-tests, `spec/validate.py`, `build_dist.py --check`, prose, eol, eol-coverage, sha-pin, actionlint, markdownlint, editorconfig-checker. The three changed carried canonical units each carry a recorded pass, and the branch carries a recorded diff review. ## Review cost, stated plainly The D4.5 passage took six adversarial rounds and every round but the last introduced a defect the next one caught, twice by correctly applying the previous round's advice. The durable lesson is that prose stating a rule on top of a mechanism fails differently from prose stating the mechanism: when the mechanism turned out to be unverifiable, re-deriving the rule from what was left produced a claim nothing supported, and deleting the rule was the fix. Nineteen pre-existing defects those passes surfaced are being filed separately rather than fixed here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **CI Improvements** - Python projects must generate a root-level XML coverage report during validation. - Validation now reports a clear error when coverage configuration is missing or no report is produced. - Coverage requirements and applicable project setup guidance are documented more clearly. - **Documentation** - Added recovery guidance for failed package publishing, including rerunning the full workflow to rebuild and republish artifacts. - Documented rerun availability limits and the limitations of rerunning only failed jobs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 6525cb8 - Browse repository at this point
Copy the full SHA 6525cb8View commit details -
Promote Develop to Main: Settle the Coverage Selector and D4.5 Recove…
…ry (#1223) Promotes one commit, `6525cb8` from #1215, which settles two deferred contract defects. ## D1.6, the Python coverage invocation #1199 reported that `pytest --cov-report=xml` collects nothing, so no Python repo in the fleet reports coverage. The first half is true and the second is false, and the live runs said so: Financial-Modeling and aiopurpleair each log `Coverage XML written to file coverage.xml` and upload it, because each carries a `--cov=<package>` entry in its own pyproject `addopts`. The real defect was narrower. D1.6 and `spec/project-types.json` documented the bare invocation as the thing that collects coverage, and it does not, so a repo onboarded by following D1.6 literally reported nothing while its gate stayed green. The contract now states the three obligations that were implicit, and the validator fails the test step when the run wrote no root `coverage.xml`, deleting any stale report first so the check tests what this run produced. ## D4.5, the recovery a moved tip forecloses #1214 reported that D4.5 and D5.2 between them imply a failed package push is unrecoverable once the branch tip moves, and assumed settling it needed a live publish against a real registry. It did not. 5B settles a question of this shape from the YAML: the publisher pins `ref: ${{ github.sha }}`, every build leaf checks out `needs.get-version.outputs.GitCommitId`, and GitHub replays a re-run under the original event's `GITHUB_SHA`, so **Re-run all jobs** rebuilds the same version and retries the push. D4.5 now names two recoveries and says which case each covers, with three qualifications on the second. ## Review Three reviewer rounds on the feature PR, all findings disposed: the PR title length and a change-framed doc sentence fixed, an overlong-comment finding declined on evidence (no such rule is committed, and the nearest one says the opposite), CodeRabbit's D1.6 precondition finding fixed across all four surfaces that state the rule, and two outside-diff findings answered in the PR conversation. Every reviewer covered the final head. Seven issues were filed for defects the review passes surfaced but this change does not fix: #1216, #1217, #1218, #1219, #1220, #1221, #1222. Two are worth naming here because they bear on what this promotes. #1216 records that a build artifact surviving a failed run may defeat the **Re-run all jobs** recovery this change documents, which needs a live failed publish to settle and is therefore yours to run. #1221 records that D1.6 requires coverage of tested Python repos the validator's `uv.lock` guard excludes, which this change makes visible by stating the precondition rather than resolving. Closes #1199 Closes #1214 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **CI Improvements** * Python test validation now generates and verifies a fresh XML coverage report. * Coverage checks require appropriate tooling and project-specific source configuration. * Failed package pushes can be recovered by rerunning all workflow jobs, rebuilding artifacts as needed. * **Documentation** * Updated workflow and adoption guidance with coverage prerequisites, report handling, rerun limitations, and artifact recovery details. * Refreshed canonical review records and related metadata. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 3a4c02a - Browse repository at this point
Copy the full SHA 3a4c02aView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.0.545...2.0.546