Skip to content

Adopt the Hub's Pull-Request CI Trigger and Ref-Scoped Publisher Group - #669

Merged
ptr727 merged 6 commits into
developfrom
chore/resync-workflow-interface
Nov 9, 2026
Merged

ptr727 merged 6 commits into
developfrom
chore/resync-workflow-interface

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Part of a hub resync of this repository, per the hub's RESYNC.md section 3 step 4 (interface workflows). It closes the two interface and concurrency findings of audit run 2026-11-09T16:22:15Z | hub c175d557, per the maintainer's decision to adopt the hub's shape for both.

  • CI trigger, WORKFLOW.md D1.5. test-pull-request.yml moves from a push on every branch to pull_request, a push to develop, and dispatch. Only a pull_request run takes the ruleset-bound name Check pull request workflow status job, through the hub's expression name:. A push or dispatch run posts Check 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.
    • The inline change gate diffs a pull request's head against its merge base with the base branch. It still builds everything on a dispatch, on a new branch, or when git cannot compute the range.
    • The smoke build reads github.base_ref || github.ref_name, so a pull request into main (including the codegen-main one) checks main's matrix rows.
  • Publisher concurrency, WORKFLOW.md D7.1. publish-release.yml takes 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 matches publish-plan-task.yml at the pinned SHA. main and develop publishes push disjoint Docker tags, since only main pushes the base images and readmes.
  • This repo's WORKFLOW.md and ARCHITECTURE.md now 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 main no longer runs CI. The publisher's own validate job still re-runs the gate on every published commit.

The carried GOVERNANCE.md "Workflow YAML Conventions" and the workflow-ci-contract skill'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 introduced finding for this pull request's loop. It is now fixed:

  • WORKFLOW.md S14, 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 but develop starts no run, and only a develop deletion reaches the guard.
  • The pass over that fix found the guard's stated rationale wrong. A deletion run's github.sha is 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-review passes 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

ptr727 and others added 3 commits November 9, 2026 08:42
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]>
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 9, 2026
Copilot AI lite review requested due to automatic review settings November 9, 2026 16:56
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Nov 9, 2026
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5890273 and ee6e743.

Files selected for processing: 4

  • .github/workflows/publish-release.yml
  • .github/workflows/test-pull-request.yml
  • ARCHITECTURE.md
  • WORKFLOW.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 1e452ddfbdf07d28c438238f84e884537260a314, the content this pull request carries at that commit against develop, and it recorded 1 finding.

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

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.01%. Comparing base (5890273) to head (ee6e743).
⚠️ Report is 3 commits behind head on develop.

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           
Flag Coverage Δ
dotnet 57.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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]>
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c0e3a5dd707271e25dbdb8b514d771a2c4517787, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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, develop pushes, 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.md and ARCHITECTURE.md to 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

Comment thread WORKFLOW.md Resolved
Comment thread .github/workflows/publish-release.yml Resolved
Comment thread .github/workflows/test-pull-request.yml Resolved
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head ee6e7437c93e57c15388a0f1aa5869e2c9fc76d1, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

Closing and reopening to start the pull_request CI run, which the last two synchronize events did not create.

@ptr727 ptr727 closed this Nov 9, 2026
@ptr727 ptr727 reopened this Nov 9, 2026
@ptr727
ptr727 merged commit eb81cac into develop Nov 9, 2026
20 checks passed
@ptr727
ptr727 deleted the chore/resync-workflow-interface branch November 9, 2026 17:39
ptr727 added a commit that referenced this pull request Nov 9, 2026
## 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants