Skip to content

test(ci): isolate preflight import closure from owner planning - #160191

Closed
vincentkoc wants to merge 1 commit into
mainfrom
test/preflight-import-closure
Closed

vincentkoc wants to merge 1 commit into
mainfrom
test/preflight-import-closure

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #160010

The dependency-free preflight smoke accidentally ran the entire PR changed-owner graph and hit its 30-second child deadline. It now runs the unchanged manifest in a dispatch scenario with Node work disabled and Windows/UI planning enabled. Real planner imports, the native Node resolve guard, Windows rows, and the late UI codec remain exercised; changed-owner integration coverage remains in its own tests.

The test asserts an empty Node matrix and nonempty Windows/UI output, plus a negative bare-package import probe. No production planner, timeout, dependency, or CI routing policy changes.

Validation at c98fb55d7ea6f40b8cdcb021310e2e9203a07130: two focused tests passed on Testbox (2.64 s wrapper, 6.73 s including setup and formatting), under a 7 GiB process-tree scope; formatting and whitespace passed. Fresh P0–P2 review found no actionable issue. Production +0/-0; tests +30/-7.

@vincentkoc vincentkoc self-assigned this Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 28, 2026 06:13
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 2:20 AM ET / 06:20 UTC.

ClawSweeper review

What this changes

The branch changes the CI preflight smoke to run the manifest without Node owner planning, check Windows and UI outputs, and verify that bare package imports are rejected.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main retains the reported overbroad smoke test, and this cleanly mergeable PR offers a focused repair with no identified blocking defect.

Priority: P2
Reviewed head: c98fb55d7ea6f40b8cdcb021310e2e9203a07130

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair with relevant reported validation and no identified correctness or security blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored, test-only PR is exempt from contributor real-behavior proof. Its reported Testbox run exercised the CI manifest smoke under the new fixture and the negative import probe; 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: The MEMBER-authored, test-only PR is exempt from contributor real-behavior proof. Its reported Testbox run exercised the CI manifest smoke under the new fixture and the negative import probe; no stored-data contract changes.
Evidence reviewed 8 items Introduced test behavior: The pinned PR delta changes the fixture to a dispatch scenario with Node planning disabled while keeping Windows and UI planning enabled.
Smoke boundary: The test extracts the real CI manifest, runs it through the guarded Node helper, checks an empty Node matrix and Windows/UI output, and confirms a bare package import is rejected.
Current main still has the reported path: The fetched main revision still configures this smoke as a pull request with Node planning enabled and a 30-second child deadline; it does not contain this PR's repair.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI preflight reads the workflow event and changed paths to produce job plans. The smoke test runs that manifest under a dependency guard and checks its outputs.

flowchart LR
  A[Manifest source] --> C[Guarded Node smoke]
  B[Event flags and changed paths] --> C
  C --> D{Node owner planning}
  D -->|Disabled| E[Windows and UI plans]
  C --> F[Dependency guard result]
  E --> G[Smoke assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +23. Total +23 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 30 7 +23
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 30 7 +23

Review metrics

Metric Value Why it matters
Focused smoke runtime 2.64 s reported wrapper time; 30 s child deadline The reported focused run has substantial headroom against the timeout that motivated this test repair.

Technical review

Best possible solution:

Keep the fast dependency-guarded manifest smoke alongside the existing changed-owner planning tests.

Do we have a high-confidence way to reproduce the issue?

No high-confidence failing reproduction was run in this read-only review. Current-main source confirms that the smoke takes the pull-request Node planning path with a 30-second deadline, matching the reported timeout mechanism.

Is this the best way to solve the issue?

Yes. A bounded manifest import check is appropriate here, while the separate planning tests retain changed-owner matrix coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a62d769b3cef.

Labels

Label changes:

  • add P2: This is a bounded CI test reliability repair with maintainer impact and no product runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: The MEMBER-authored, test-only PR is exempt from contributor real-behavior proof. Its reported Testbox run exercised the CI manifest smoke under the new fixture and the negative import probe; no stored-data contract changes.

Label justifications:

  • P2: This is a bounded CI test reliability repair with maintainer impact and no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored, test-only PR is exempt from contributor real-behavior proof. Its reported Testbox run exercised the CI manifest smoke under the new fixture and the negative import probe; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

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

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.

@vincentkoc

Copy link
Copy Markdown
Member Author

Implemented and verified on main through #160187, squash commit 4001998. The landed tree matches the reviewed canonical repair; this narrower PR is incorporated and can be closed.

@vincentkoc vincentkoc closed this Sep 28, 2026
@RomneyDa
RomneyDa deleted the test/preflight-import-closure branch October 22, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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