Skip to content

fix(ci): run policy checks for affected source changes - #157902

Merged
RomneyDa merged 1 commit into
mainfrom
fix/ci-selection-coverage
Sep 25, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/ci-selection-coverage

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

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

  • Selector suite: 280 cases passed initially; all five corrected fixture expectations passed in an eight-case focused rerun that also covers deferral controls.
  • Gateway callsite guard, nine Telegram proxy tests, ten survivor startup scenarios, and the focused package-acceptance assertion pass.
  • Missing policy selection and the timestamp-dependent Telegram failure reproduced before the fixes. Formatting and git diff --check pass.
  • Wrapper package closure proof reached its unchanged 120-second timeout on this host, including a separate rerun. This is not a passing result. The broader changed-file check was stopped before rebasing after passing the database-first guard; it did not complete. Final independent review passed at its configured P0 severity.

Rebased onto 63716d9482d to include the existing archive-worker isolation fix (a759f770a9d), with the CI-selection patch unchanged. CI passes on 6b854812cde, 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.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review September 25, 2026 04:49
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: M labels Sep 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 12:57 AM ET / 04:57 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 297694af4ca4be14d1f05d9dc9ced2a00477e83d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The planner repair is focused and has relevant reported regressions, with its added CI cost still needing a measured explanation.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored internal CI change is exempt from contributor real-setup proof. The changed planner is called by CI preflight, and the PR body reports before/after selector cases, but exact-head CI had not completed in the captured context; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal CI change is exempt from contributor real-setup proof. The changed planner is called by CI preflight, and the PR body reports before/after selector cases, but exact-head CI had not completed in the captured context; no stored-data contract changes.
Evidence reviewed 9 items Current-main gap: Current main still distinguishes only complete policy owners at the tooling filter and does not carry watched release-only tests through the later runtime filter.
Introduced planner correction: The PR retains resolved policy targets through the tooling and runtime filters and passes the already-filtered target set to canonical shard planning.
New watch scope: Upgrade-survivor helper changes now select both the focused survivor test and the full package-acceptance test.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

  • Resolve merge risk (P1) - The new upgrade-survivor watch selects a package-acceptance file listed at 189 seconds in historical CI timing data for every matching helper edit; the PR has not measured or justified that recurring cost.
  • Complete next step (P2) - Report one-worker wall costs for the materially changed test files and justify or narrow the 189-second package-acceptance watch before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +108, Docs +5, Other +10. Total +123 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 160 52 +108
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 2 19 9 +10
Total 9 184 61 +123

Review metrics

Metric Value Why it matters
Newly watched test cost 189 s package suite; 6 s focused survivor suite These historical CI timings show the cost of selecting both files for an upgrade-survivor helper change.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/lib/ci-node-test-plan.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Use a focused watch (recommended)
    Move the relevant package assertions into a focused guard and watch that guard while retaining the full suite for release validation.
  2. Accept the broader CI cost
    Record measured one-worker and exact-head CI durations and explain why the whole package suite must run for each matching helper edit.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a bounded CI coverage repair with no direct application behavior change.
  • add merge-risk: 🚨 automation: The planner change adds a historically 189-second suite to affected PR CI without measured cost for the new routing.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored internal CI change is exempt from contributor real-setup proof. The changed planner is called by CI preflight, and the PR body reports before/after selector cases, but exact-head CI had not completed in the captured context; no stored-data contract changes.

Label justifications:

  • P2: This is a bounded CI coverage repair with no direct application behavior change.
  • merge-risk: 🚨 automation: The planner change adds a historically 189-second suite to affected PR CI without measured cost for the new routing.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored internal CI change is exempt from contributor real-setup proof. The changed planner is called by CI preflight, and the PR body reports before/after selector cases, but exact-head CI had not completed in the captured context; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Measure the materially changed test files on one worker and justify or narrow the 189-second package-suite watch.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

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

Labels

docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant