Repository navigation
Run the Pull Request Workflow on pull_request and Filter the Smoke Build - #197
Conversation
…the Required Check WORKFLOW.md D1.5 requires the ruleset-bound aggregator name to be posted only by a pull_request run. The workflow triggered on push to every branch, so any push, or a dispatch on a PR's head, posted the required context. Trigger on pull_request and workflow_dispatch, give the aggregator the conditional name from the hub snippet, read the logical branch from base_ref, and drop the branch-deletion guards a pull_request run never needs. The smoke build stays unfiltered. OPERATIONS.md describes the new trigger. Audit run 2026-11-09T16:23:10Z | hub c175d557. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WORKFLOW.md D1.1 requires a paths-filter entry per target, and D1.4 leaves a workflow-only pull request unbuilt. Add the hub snippet's changes job, listing Docker/**, .dockerignore, and version.json as the one image target, gate the smoke build on it or a dispatch, and let the aggregator pass a skipped smoke build while blocking on failure or cancellation. OPERATIONS.md now says the smoke build runs on such a pull request rather than on every push. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Dockerfile copies nothing from the tree, so .dockerignore cannot change the image and its filter entry rested on a false reason. OPERATIONS.md's "What CI cannot exercise" now says only a pull request changing the image's inputs is smoke-built, and that a hub pin bump is not, so dispatch the workflow where one could change the build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
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 2 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. |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved workflow and documentation gaps can leave label changes and Dependabot hub-pin updates unvalidated while the local verification checklist omits the required prose gate.
4 open issues
[P1] Re-run the gate when the comments label changes The barepull_requesttrigger only runs for… · New [P2] Account for hub pin changes in the build-input comment —Docker/**andversion.json… · New [P2] Do not prescribe a dispatch that Dependabot can bypass — A workflow-only Dependabot PR… · New [P1] Document the pull-request prose gate locally The newpull_requestpath invokes the hub… · New
What changed in this PR
This pull request updates CI to validate pull requests directly, conditionally run Docker smoke builds for relevant image changes, and document the new workflow behavior.
Changes:
- Replaces branch-push triggering with
pull_requestandworkflow_dispatch. - Adds path filtering for
Docker/**andversion.json, conditional smoke builds, and event-specific status aggregation. - Documents CI triggers, smoke-build scope, dispatch behavior, and validation limitations.
- Unresolved review items remain regarding label-triggered reruns, prose-gate documentation, manual-dispatch wording, and hub pin-change coverage.
| File | Summary |
|---|---|
OPERATIONS.md |
Documents local verification, pull-request CI behavior, smoke-build limitations, and workflow usage. |
.github/workflows/test-pull-request.yml |
Defines pull-request and manual triggers, changed-path filtering, conditional Docker smoke builds, and status aggregation. |
This pull request requires changes.
Review effort: Lite
A hub pin bump changes the build path, and D1.4 leaves it unbuilt, so the workflow comment and OPERATIONS.md now say the next publish run is its first build instead of prescribing a dispatch Dependabot's auto-merge skips. Local Verification gains the hub prose gate CI now runs on every pull request, the comments label it reads live, and the re-run that picks up a label added late. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The publisher's schedule builds main only, so a develop pin bump is first built by a dispatch rather than the next publish run. The local prose gate takes the merge base, the scope CI reads, rather than the develop tip. Only a fork pull request that changes the image reaches the Docker Hub login, so only that kind needs an in-repo branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Docker/** also matched Docker/README.md, the Docker Hub overview the image never reads, so a docs-only change ran the smoke build. Name Docker/Dockerfile instead. Replace the claim about which run first builds a new hub pin with the dispatch that does, and say the comments label covers an edited comment as well as an added one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
… Gate A dispatch cannot hold a Dependabot auto-merge, since its run posts a context no ruleset requires, so the dispatch is a check run on the base branch once the bump merges. CI runs the prose gate at the hub commit the workflows pin, so the local run uses a hub checkout at that commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |


Summary
Step 4 of the hub resync (audit run
2026-11-09T16:23:10Z | hub c175d557): the PR workflow's interface, brought to hub WORKFLOW.md D1.1, D1.4, and D1.5, as the maintainer chose on 2026-11-09.test-pull-request.ymlnow triggers onpull_requestandworkflow_dispatch, replacingpushon every branch. The always-run aggregator takes the hub snippet's expression name, so only apull_requestrun posts the ruleset-boundCheck pull request workflow status job. A dispatch postsCheck workflow status job. This closes the audit's interface finding.changesjob (dorny/paths-filter) marks the one image target fromDocker/Dockerfileandversion.json. The Dockerfile copies nothing from the tree. The smoke build runs on that target or a dispatch, and the aggregator passes a skipped smoke build while still blocking on failure or cancellation. This was pre-existing drift the audit does not mechanize.branch:input readsgithub.base_ref || github.ref_name, as the snippet does. The!github.event.deletedguards are gone, since neither event carries the field.OPERATIONS.mddescribes the new trigger, the filter, and what a pull request does and does not prove.Merge Order
Merge this first. #196 carries the D1.5 text this workflow now satisfies, and #195 depends on #196.
Local Findings, All Fixed
Every finding the local strict-review passes raised is fixed:
6d03623,7f7cb9d,1a5c7c1, and6c64061. A dispatch cannot hold a Dependabot auto-merge, so it is a check run on the base branch after the merge.6d03623,7f7cb9d,1a5c7c1, and6c64061. It is now documented, scoped to the merge base, run at the pinned hub commit, and covers thecommentslabel for an added or edited comment.Docker/**toDocker/Dockerfilein1a5c7c1, sinceDocker/README.mdis the Docker Hub overview the image never reads.The pass over
6c64061found nothing.Declined
edited. Declined under GOVERNANCE.md "Trust Boundaries and Hardening Effort": retargeting is a maintainer action, the fleet flow never retargets, and the hub snippet has the same shape.Carries the
commentslabel for the added workflow comment lines.Verification
--allow-comments: 0 findings.🤖 Generated with Claude Code