Skip to content

fix(ci): restore changed-test planner contracts - #150767

Closed
RomneyDa wants to merge 2 commits into
mainfrom
fix/ci-changed-node-plan-map-spread
Closed

RomneyDa wants to merge 2 commits into
mainfrom
fix/ci-changed-node-plan-map-spread

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • align the labeler workflow's changed-test expectation with its new ancillary concurrency owner
  • replace a map-spread clone in the changed Node test planner with the repository-approved Object.assign form
  • preserve fresh-object semantics while resetting configs

Why

Current main has two mutually blocking CI regressions: the labeler route returns its new fourth owner while the fixture still asserts three, and scripts lint rejects a map-spread clone in ci-changed-node-test-plan.mts. Combining the minimal repairs lets the baseline reach green again.

Validation

  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts
  • pnpm test test/scripts/ci-changed-node-test-plan.test.ts (217 passed)
  • focused labeler routing expectation (1 passed)
  • pnpm check:changed
  • autoreview P0-P2: scoped clean

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 17, 2026
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 5:28 AM ET / 09:28 UTC (Revision 2).

ClawSweeper review

What this changes

The PR repairs CI planner lint compliance while preserving shard metadata and updates the labeler workflow’s expected test owners.

Merge readiness

✅ Ready for maintainer review

Keep open: both repairs remain relevant to the inspected main revision, and neither introduces an actionable defect. The prior review had no findings; the added routing expectation matches the existing owner discovery.

Priority: P2
Reviewed head: 3d5d390ec7e96899f6862fbe486e524efe97c45f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving repair with relevant reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored internal CI repair is exempt from the external-contributor proof gate; reported lint and focused planner/routing checks match the changed contracts.
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 repair is exempt from the external-contributor proof gate; reported lint and focused planner/routing checks match the changed contracts.
Evidence reviewed 7 items Verified introduced changes and review continuity: The pinned main-to-head diff contains only the clone replacement and one added expected test owner. Comparing the previous reviewed head shows only the expectation addition.
Clone preserves the existing contract: The planner copies internally constructed plain-object shard descriptors into fresh objects and overwrites configs with a fresh empty array. Object.assign preserves the relevant metadata and avoids the configured oxc/no-map-spread error.
Existing routing supports the added expectation: Workflow routing includes tests that directly reference the workflow path. The ancillary concurrency test reads labeler.yml and checks labeler admission, so adding it to the exact expected target list restores the assertion without weakening coverage.
Findings None None.
Security None None.

How this fits together

OpenClaw’s changed-test planner turns changed repository paths into targeted CI test jobs. It combines test ownership with canonical execution metadata so selected tests retain their required environment and isolation.

flowchart LR
  A[Changed repository paths] --> B[Test owner discovery]
  B --> C[Selected test targets]
  C --> D[Canonical shard metadata]
  D --> E[Fresh job descriptors]
  E --> F[CI test jobs]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1, Other 0. Total +1 across 2 files.

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

Review metrics

None.

Technical review

Best possible solution:

Retain the existing planner and routing owners, with lint-compliant fresh clones and exact expectations for all discovered workflow tests.

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

Yes, from source: main contains the prohibited map-spread expression and omits a directly discovered workflow test from its exact expectation. Target tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes. Both edits repair existing contracts at their current owners without changing routing policy, suppressing lint, or weakening assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9ab47386778b.

Labels

Label justifications:

  • P2: This is a bounded repair to established CI lint and test-routing contracts, with no user-runtime behavior 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: This MEMBER-authored internal CI repair is exempt from the external-contributor proof gate; reported lint and focused planner/routing checks match the changed contracts.

Evidence

What I checked:

  • Verified introduced changes and review continuity: The pinned main-to-head diff contains only the clone replacement and one added expected test owner. Comparing the previous reviewed head shows only the expectation addition. (test/scripts/test-projects.test.ts:1462, 3d5d390ec7e9)
  • Clone preserves the existing contract: The planner copies internally constructed plain-object shard descriptors into fresh objects and overwrites configs with a fresh empty array. Object.assign preserves the relevant metadata and avoids the configured oxc/no-map-spread error. (scripts/lib/ci-changed-node-test-plan.mts:770, 3d5d390ec7e9)
  • Existing routing supports the added expectation: Workflow routing includes tests that directly reference the workflow path. The ancillary concurrency test reads labeler.yml and checks labeler admission, so adding it to the exact expected target list restores the assertion without weakening coverage. (scripts/test-projects.test-support.mts:3285, 3d5d390ec7e9)
  • Current main still contains the lint trigger: The inspected main revision retains the map-spread clone. The branch therefore supplies a relevant repair rather than duplicating an already-applied change. (scripts/lib/ci-changed-node-test-plan.mts:770, 9ab47386778b)
  • Latest-release comparison: The v2026.9.4 planner predates this canonical-shard cloning path; its source does not establish that these current-main repairs have shipped. (scripts/lib/ci-changed-node-test-plan.mts, 3a9d69db306c)
  • Area history and inspection limits: Available main-history metadata identifies Vincent Koc and Peter Steinberger as recent planner contributors. Missing historical blobs prevented exact-line blame and deeper introduction verification; the GitHub canonical-search endpoint also rejected the request. No replacement or introduction claim is made. (scripts/lib/ci-changed-node-test-plan.mts, 9ab47386778b)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-17T09:21:03.315Z sha 0772e91 :: needs maintainer review before merge. :: none

@RomneyDa RomneyDa changed the title fix(ci): satisfy changed-plan lint contract fix(ci): restore changed-test planner contracts Sep 17, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor

Superseded by main: the identical repair landed through #150655 as 5764fa493344c0a041e0bc8319c07585d649b18e — the Object.assign clone in scripts/lib/ci-changed-node-test-plan.mts and the fourth Labeler target (test/scripts/ancillary-workflow-concurrency.test.ts) in test/scripts/test-projects.test.ts. A prospective merge of this branch produces a tree identical to main (a144d0787764e020b21726c1b5a3aabb00b68c90), so there is no net change left to land. Thanks for the quick fix; closing this one.

@steipete steipete closed this Sep 17, 2026
@RomneyDa
RomneyDa deleted the fix/ci-changed-node-plan-map-spread branch October 22, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

2 participants