Repository navigation
feat(ci): wait for the pushed head's checks before reporting success - #97
Conversation
cc-implement-issue and cc-resolve-comments share a new section, Checks of the pushed head: test CI-like before pushing, wait for the checks of the pushed SHA (repository timeout or ~15 min), let failures decide the status, and report the final head's checks in the summary and a checks result key. The runtime records checks_passed/failed/pending on the verdict row for the stage's own head (telemetry schema 6), and cc-stats reports CI on stage heads. Closes #77
[CCR-20260925-001] · ? · ?/?→? · ? · schema:1Review summaryAPPROVED — I reviewed the accumulated diff from merge base through head The review covered the two pushed-head workflow sections, the runtime check-count ingestion, telemetry schema and validation, Findings[REV-001] · medium · open · - · blocks:no — Check counts can be recorded without proving they match the result headPath:
Security triageThe deterministic rule did not fire: Verification
CIAll current checks passed on reviewed head Residual riskThe full local suite and current CI are green, but neither catches the missing-result-SHA case in REV-001. No runtime service or database setup was needed for the relevant tests. VerdictAPPROVED — the reviewed head has no open finding that blocks approval; REV-001 remains open and non-blocking. |
Summary
cc-implement-issueandcc-resolve-commentsshare a new section, Checks of the pushed head, that the validator keeps byte-identical in both. Before pushing, the stage tests the way CI will, with no reliance on the global Git identity or other state only the developer's machine has. After pushing, it waits for the checks of the pushed SHA, up to the repository's timeout or about 15 minutes.PARTIALLY_RESOLVEDfor a resolution,BLOCKEDfor an implementation;checkskey with the head SHA, thepassed/failed/pendingcounts and the named items._checksinrun_cycle.py) recordschecks_passed,checks_failedand the newchecks_pendingon the verdict row only when all three counts are reported and they describe the stage's ownhead_sha. This is telemetry schema 6.cc-statsadds CI on stage heads: green, failed, pending or without checks, grouped by the status the stage claimed (for example,RESOLVED 1 of 2 green).docs/verification.md→ CI reporting,docs/telemetry.md,docs/instrumentation.md,CONTRIBUTING.md(duplicated sections table) andCHANGELOG.md.Closes #77
Verification
python3 scripts/validate-package.py→ VALID, shared sections in syncpython3 -m unittest discover -s tests→ 705 tests OK (new:ReportedChecks, driver verdict test, twocc-statstests)