Skip to content

ci: qualify unchanged full-CI coverage through local reuse - #46

Merged
brettheap merged 1 commit into
mainfrom
ci/full-ci-coverage-parity
Nov 11, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/full-ci-coverage-parity

Conversation

@brettheap

@brettheap brettheap commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Scope

First coverage-parity prerequisite only, under feature 009 / spec issue opensoft/openRepoTools-spec#26.
User approved opening this PR while ordinary full CI, all coverage and lanes 1–5 remain intact.

  • Add only parameterless workflow_call to tests.yml: existing triggers, environment and all six job definitions are unchanged.
  • Add a PR-only qualification caller that invokes that same local workflow at the caller commit. No copied heavy implementation, inputs, secret inheritance, dispatch or queue trigger.
  • Inventory all 13 expanded jobs from merged baseline d3c55e5: guard, five normal shards, four no-submodule shards, both aggregators and the full package job.
  • Add parsed full-job/environment fingerprints, mutation refusals and executable fail-closed aggregate tests. New tests remain automatically discovered by the existing shard planner.
  • Retain every existing shard/count/artifact/package check; no reduced jobs or replacement success statuses.

Verification

  • Red first: 12 failures / 24 passes before adding the entry point and caller.
  • Final focused run: 419 passed, no skips (workflow contracts, shard coverage/failure cases, pilot/queue policy and new parity tests).
  • Tests ran through tests/run.sh in an offline disposable py-bench image limited to 2 CPUs / 2 GiB, with a real Linux Git clone and exact pinned dependency.
  • Actionlint passed for both touched workflows; git diff --check passed.
  • Hosted ordinary full CI and the separate full reusable call are requested by this PR and remain distinct from local qualification.
  • Exact-head Codex review will be explicitly requested.

Boundaries

No merge, live canary, queue command/config change, fast-only mode, authoritative classifier, ruleset change/bypass, app access, release change/tag, assembly pin update or installed-session change. Existing full checks and release eligibility remain intact. Lanes 1–5 and their worktrees/bindings/running benches are not modified.

The qualification workflow intentionally adds a second full run on CI-contract PRs; no CI saving is claimed yet. Ordinary full CI is not replaced by this new workflow, whose nested check names are separate from the existing required checks. Future required-check migration and candidate identity verification need separate approval and qualification.

Summary by Sourcery

Qualify same-commit reuse of the complete full-CI workflow without changing existing CI coverage, triggers, or release eligibility.

New Features:

  • Add a PR-only workflow to qualify reuse of the complete full-CI workflow at the caller commit.
  • Make the existing full-CI workflow locally reusable through a parameterless workflow call.

Enhancements:

  • Add reviewed baseline coverage checks that detect changes to all expanded full-CI jobs, environments, triggers, and execution safeguards.
  • Add fail-closed qualification checks so missing, failed, cancelled, or skipped parity and full-CI runs cannot qualify.
  • Document the coverage-parity preparation scope and its separation from queueing, admission, and release acceptance.

CI:

  • Preserve ordinary full-CI triggers and checks while adding a separate PR qualification path for CI-contract changes.

Documentation:

  • Document the coverage-parity prerequisite, reviewed baseline, and operational boundaries.

Tests:

  • Add parity and mutation tests covering workflow structure, complete job coverage, shard inventory, checkout modes, reuse configuration, and aggregate results.

@sourcery-ai

sourcery-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 22 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Review the frozen inventory of complete job-definition hashes and environment that the parity checks use as their coverage baseline.

  • .github/ci/full-ci-baseline.json L1-23

API

Review the parameterless workflow_call added to expose the existing full test workflow for same-commit reuse without changing its ordinary triggers or jobs.

  • .github/workflows/tests.yml L79-81

Uses of the API

Review the PR-only caller that runs parity first, invokes the local reusable workflow, and fails qualification unless both jobs succeed.

  • .github/workflows/full-ci-parity.yml L1-58

Documentation

Review the operator guidance and feature amendment that record the preparation-only scope, parity contract, and boundaries on future queue or release changes.

  • .github/ci/batching-pilot.md L3-26
  • features/009-manual-two-pr-queue/openspec/coverage-parity.md L1-26

Tests

Review the parsed workflow contract assertion updated for the new parameterless reuse event.

  • tests/test_tests_workflow.py L920-928

Review the parity tests for full-job fingerprints, mutation refusals, caller constraints, and fail-closed qualification results.

  • tests/test_full_ci_coverage_parity.py L1-187

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Governance companion: opensoft/openRepoTools-spec#28. Source qualification only; ordinary full CI remains mandatory. Neither PR is queued or authorized to merge.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T22:52:57.111924Z bd56ea7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: bd56ea7422

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap
brettheap merged commit a16ac8f into main Nov 11, 2026
35 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Merged normally as a16ac8f after latest-head bd56ea7 passed ordinary full CI (13/13 jobs, attempt 1: https://github.com/opensoft/openRepoTools-code/actions/runs/43115161053), reusable qualification (15/15, attempt 1: https://github.com/opensoft/openRepoTools-code/actions/runs/43115161206) and exact-head Codex review with no findings/threads. Both execution paths checked out 788593c. Each variant collected/accounted for 4702 items; normal: 4533 passed/169 skipped; no-submodule: 3250 passed/1452 skipped, identical across paths, zero failures/errors. Landing audit: PR32 independently merged at 23:14:27Z while CI ran; GitHub retained the older base in PR metadata. Landed tree 4073274b17868f21803f808f63626694ae22f36d equals independent merge-tree of ba2e6b9 and bd56ea7. It differs from the premerge tested tree only in PR32 files lane-handoff and tests/test_a23_lane_handoff.py. Combined main full CI is separately running: https://github.com/opensoft/openRepoTools-code/actions/runs/43120546953; not claimed as completed. Spec companion #28 also merged. No bypass, queue/canary, app/release changes or assembly pins. Live root/submodule status and registered worktree/head snapshot unchanged; lanes1–5 untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant