Repository navigation
Adopt the Hub's Pull-Request CI Trigger and Ref-Scoped Publisher Group - #669
Conversation
CI moves from a push on every branch to pull_request, a push to develop, and dispatch. Only the pull_request run takes the ruleset-bound check name, through the hub's expression, so a push or dispatch run on a pull request's head cannot post the required context without its gates, per WORKFLOW.md D1.5. The change gate diffs a pull request's head against its merge base, and the smoke build reads base_ref for the branch rows. The publisher's concurrency group becomes the ref-scoped group the hub's D7.1 states, with the run-id suffix for a push the plan does not publish, so a no-op push never replaces a pending publish. WORKFLOW.md and ARCHITECTURE.md now describe the new shape. Audit run 2026-11-09T16:22:15Z | hub c175d557. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first pass left several WORKFLOW.md statements describing CI on every push: the section-3 heading and summary, the CI diagram caption and aggregator node, D1.1, D2.1, D4.6, the fork exception, and the Docker Hub secrets bullet. Each now describes the pull_request, develop push, and dispatch triggers, and only a pull_request run gating merge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
D0.1 still took any push as its input and said CI builds exactly github.ref_name. A feature-branch push starts no run now, and a pull request run's ref_name is its merge ref, so the smoke build reads the base branch's Matrix.json rows instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
A recorded local strict-review pass covers head |
S14, D7.4, the CI diagram, and the section-3 summary still expected a branch-deletion push to start a CI run whose jobs skip. Deleting a feature or bot branch now starts no run, and only a develop deletion reaches the guard. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #669 +/- ##
========================================
Coverage 57.01% 57.01%
========================================
Files 15 15
Lines 1375 1375
Branches 108 108
========================================
Hits 784 784
Misses 573 573
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A branch deletion's run does not carry an all-zeros github.sha. GitHub reverts it to the default branch's tip, so the guard stops a run that would test main's tree under the deleted develop ref rather than a failing checkout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟡 Changes recommended
Active findings remain, including an inaccurate branch-deletion contract and workflow comments that still contain prohibited rule citations.
3 open issues
What changed in this PR
This pull request aligns NxWitness CI and publishing workflows with the hub’s pull-request trigger and ref-scoped concurrency models, with corresponding documentation updates.
Changes:
- Runs CI for pull requests,
developpushes, and manual dispatches with PR-aware change detection and required-check naming. - Selects the smoke-build matrix from the pull request’s base branch.
- Uses ref-scoped publisher concurrency with run-ID isolation for non-publishing pushes.
- Updates
WORKFLOW.mdandARCHITECTURE.mdto document the revised behavior.
| File | Summary | Findings |
|---|---|---|
WORKFLOW.md |
Updates CI, concurrency, architecture, guarantee, and scenario documentation. | [P2, moderate, 4 votes] Qualify branch-deletion behavior by trigger branch; feature and bot branch deletions start no CI run. |
ARCHITECTURE.md |
Documents the new CI triggers and required-check behavior. | None |
.github/workflows/test-pull-request.yml |
Implements pull-request, develop push, and dispatch triggers with merge-base-aware diffing and event-specific aggregator names. |
[P2, nit, 2 votes] Remove the WORKFLOW.md D1.5 citation from the workflow comment. |
.github/workflows/publish-release.yml |
Implements ref-scoped publisher concurrency with run-ID isolation for non-publishing pushes. | [P2, nit, 2 votes] Remove the WORKFLOW.md D7.1 citation from the workflow comment. |
This pull request requires changes.
Review effort: Lite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Closing and reopening to start the pull_request CI run, which the last two synchronize events did not create. |
## Summary Promotes a hub resync of this repository to `main`. It brings the repository from 80 drift findings and 2 letters to 0 defects (audit run `2026-11-09T17:40:03Z | hub c175d557 | branch override develop`). - #667 resyncs the instruction set. That is the `AGENTS.md` and `GOVERNANCE.md` verbatim sections, including the new "Design Before Code" and "Trust Boundaries and Hardening Effort" sections, and `CODESTYLE.md` with this repo's own two sections kept. - #665 re-vendors the carried `.github/skills` tree and `.markdownlint-cli2.jsonc`. - #666 resyncs the intent-fidelity files: `AUDIT.md`, `.gitattributes`, `.editorconfig`, `.github/copilot-instructions.md`, and the README pre-release shield. - #669 adopts the hub's CI shape. CI runs on `pull_request`, a `develop` push, and dispatch, and only a `pull_request` run takes the ruleset-bound check name. The publisher's concurrency group is ref-scoped. - #668 renames the `Make/*.sh` scripts to lowercase-hyphenated names. ## Behavior Changes on Main - After this merges, a push to `main` no longer runs CI. The publisher's own `validate` job still gates every publish. - The publisher's concurrency group becomes ref-scoped. A `main` publish and a `develop` dispatch no longer queue behind each other, since they push disjoint tags. - `Make/*.sh` scripts are invoked by their new lowercase names. ## Remaining Advisories - The `cspell.json` and `version.json` intent advisories are date hints only. `cspell.json` already carries every hub word, and `version.json` differs only in indentation, its floor being the maintainer's. - `.coderabbit.yaml`, `.pr_agent.toml`, and `.github/agent-policy.json` read as undeclared, which ptr727/ProjectTemplate#3914 tracks. ## Pre-existing findings, not filed - `OPERATIONS.md:11`, class `pre-existing`. CodeRabbit notes that `build.sh` builds each Dockerfile without the `Make/Matrix.json` build arguments, so the documented `create.sh` then `build.sh` check does not verify the matrix's multiple version rows. It also notes that `create.sh` refreshes the matrix first. The sentence predates this promotion, which only split it. - `OPERATIONS.md:42`, class `pre-existing`. CodeRabbit notes that re-running the publisher against an old pin commit would move the mutable `latest` and `stable` tags back to older product versions, and that a rebuild with mutable base tags does not restore the original image. The recovery advice predates this promotion, which only split its sentence. 🤖 Generated with [Claude Code](https://claude.com/claude-code)


Summary
Part of a hub resync of this repository, per the hub's
RESYNC.mdsection 3 step 4 (interface workflows). It closes the twointerfaceandconcurrencyfindings of audit run2026-11-09T16:22:15Z | hub c175d557, per the maintainer's decision to adopt the hub's shape for both.test-pull-request.ymlmoves from a push on every branch topull_request, a push todevelop, and dispatch. Only apull_requestrun takes the ruleset-bound nameCheck pull request workflow status job, through the hub's expressionname:. A push or dispatch run postsCheck workflow status job, so it cannot post the required context on a pull request's head without that pull request's gates. The ruleset context string is unchanged.github.base_ref || github.ref_name, so a pull request intomain(including thecodegen-mainone) checksmain's matrix rows.publish-release.ymltakes the hub's ref-scoped group, with the run-id suffix for a push the plan does not publish. The actor allowlist in the expression matchespublish-plan-task.ymlat the pinned SHA.mainanddeveloppublishes push disjoint Docker tags, since onlymainpushes the base images and readmes.WORKFLOW.mdandARCHITECTURE.mdnow describe the new shape.Behavior changes worth knowing: a push to a feature branch with no pull request no longer runs CI, and a push to
mainno longer runs CI. The publisher's ownvalidatejob still re-runs the gate on every published commit.The carried
GOVERNANCE.md"Workflow YAML Conventions" and theworkflow-ci-contractskill's D7.1 already state the ref-scoped group in the hub. #667 and #665 carry that text, which also answers the Copilot thread on #667.Local-Pass Finding, Fixed
The opening push's edit budget left one
introducedfinding for this pull request's loop. It is now fixed:WORKFLOW.mdS14, D7.4, the CI diagram's deletion branch, and the section-3 summary expected a branch-deletion push to start a CI run whose jobs skip. Fixed in 9138869: deleting any branch butdevelopstarts no run, and only adevelopdeletion reaches the guard.github.shais not all zeros, since GitHub reverts it to the default branch's tip. Fixed in c0e3a5d, here and in the workflow comment that carried the same claim.Local Review
Six recorded
local-strict-reviewpasses ran. Together they drove the doc fixes in 19f0ea2, 1e452dd, 9138869, and c0e3a5d, and confirmed the workflow code on every event. The pass on the current head raised none.🤖 Generated with Claude Code