Repository navigation
fix(ci): run policy checks for affected source changes - #157902
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 25, 2026, 12:57 AM ET / 04:57 UTC. ClawSweeper reviewWhat this changesThe branch keeps policy-watched tests in changed-file CI plans and adds Gateway and upgrade-survivor watches, with related test and fixture adjustments. Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open. Current main still has the CI filtering gap, and the branch makes a coherent correction in the existing test planner. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI preflight takes a PR’s changed files and selects Node tests. Its plan becomes CI jobs whose results feed the required gate. flowchart LR
A[Changed PR files] --> B[CI preflight]
B --> C[Ordinary test owners]
B --> D[Policy watches]
C --> E[Deferral and shard planning]
D --> E
E --> F[Node test jobs]
F --> G[Required CI gate]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +108, Docs +5, Other +10. Total +123 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep policy watches in the canonical planner while using the narrowest test that protects each upgrade-survivor contract and recording its CI cost. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main’s changed-file planner drops watched release-only tests at its deferral filters. This read-only review did not execute the failing plan. Is this the best way to solve the issue? Yes in principle: preserving explicit watches in the existing planner addresses the gap. The full package-suite watch needs a cost justification or a narrower test owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3fb4bddaeed6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
297694a to
6b85481
Compare
What Problem This Solves
PR CI dropped explicitly watched checks when their broader suite was deferred, allowing affected source changes to merge without the checks that later failed on main.
User Impact
CI runs the matching wrapper, Gateway callsite, and upgrade-survivor checks before merge. Unrelated deferred suites remain excluded. No application behavior changes.
Why This Change Was Made
Preserves explicitly watched tests through both selection filters and final job planning. Adds missing Gateway and upgrade-survivor watch rules and aligns the local startup-script test mapping. Treats Gateway test-support files as fixtures, checks inherited credentials in the existing child-process test instead of matching shell text, and checks allowed Telegram log fields instead of scanning timestamp digits.
Related: #157711, #157796, #157793, #157349. Merge enforcement is outside this change.
Evidence
git diff --checkpass.Rebased onto
63716d9482dto include the existing archive-worker isolation fix (a759f770a9d), with the CI-selection patch unchanged. CI passes on6b854812cde, including all three previously failing jobs. The exact Gateway secret-reload regression also passes locally. The additional local cancellation probe was stopped after its hosted job passed.