Skip to content

fix: keep UI fixture types within the existing test-root budget - #160368

Merged
steipete merged 1 commit into
mainfrom
codex/ci-test-owner-routing-20260928
Sep 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/ci-test-owner-routing-20260928

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Local changed-file validation stops because the ui-other TypeScript graph has 721 test roots against its existing 720-root budget.

User Impact

Developers can complete validation through the appropriate existing test shards. There is no user-visible runtime change, migration, or required operator action.

Why This Change Was Made

The eleven tests for the Control UI E2E fixtures belong with the E2E type graph that already contains their fixture owners. Matching include/exclude patterns transfer them from ui-other to ui-e2e, preserving every root and the existing budgets. This changes type-check ownership only; UI runtime test selection is unchanged.

The branch also contains the identical hot-reload SQLite test registration already landed through #160349. That hunk contributes no additional change at merge; the remaining change on current main is the two UI type configurations. Runtime guards, assertions, pools, and timeouts remain unchanged.

Evidence

  • UI boundary RED → GREEN: exact main base 4dbabc40f6fdc5e78d38f787525b14a582137c1c fails with ui-other: 721 > 720 (1.506 s). The candidate passes the full canonical graph boundary (124.177 s): ui-other drops from 721 to 710, ui-e2e moves from 657 to 668, all eleven roots are retained once, and the other UI root sets are unchanged.
  • Both affected type graphs pass: node scripts/run-tsgo-core-test-shards.mjs --ci-graphs-json '["core-test-ui-e2e","core-test-ui-other"]' (175.111 s overall; E2E 90.4 s and other 83.9 s).
  • Original CI failure reproduced: the original ordered 50-file agent group passes 559/560 cases and fails only the indirect hot-reload admission case (110.399 s). With corrected ownership, the original group passes 49 files/552 cases (87.811 s), and pnpm test src/agents/prepared-model-runtime.hot-reload-dispatch.test.ts --maxWorkers=1 selects infra and passes the remaining 8 cases (46.519 s including fresh worker preparation; Vitest 21.92 s). All original 560 cases remain covered. No new or changed test assertions were added.
  • Proof reuse is bound to source: the seven recorded hot-reload test, harness, admission, toolchain, and runner inputs match this base. Six newer ACP registry entries are preserved and are disjoint from the original agent group. The UI compiler graphs do not include the runtime registry.
  • Final combined changed-file gate passes on the frozen three-file candidate (372.444 s): ratchets, dependency and package guards, formatting, all three unused-export scans, the canonical core graph boundary, and script lint. The command exited 0 with unchanged source hashes and no leftover child processes.
  • Fresh combined managed review: no actionable P0–P2 findings. Scoped formatting, lint, syntax, and whitespace checks for the runtime registration pass.
Proof environment and infrastructure qualifications

Proof used isolated Testboxes with Node 24.19.0, pnpm 12.5.1, and frozen dependencies. The UI boundary ran without GITHUB_ACTIONS, retaining the strict local budget policy. The inspected main CI run succeeded: hosted CI intentionally treats this size limit as advisory, so the local budget failure is not evidence of red hosted main.

The final selected gate was:

node scripts/check-changed.mjs --base 4dbabc40f6fdc5e78d38f787525b14a582137c1c -- \
  test/tsconfig/tsconfig.core.test.ui-e2e.json \
  test/tsconfig/tsconfig.core.test.ui-other.json \
  test/vitest/vitest.database-worker-core-paths.mjs

Preparation failures were resolved separately from product results: an inventory-probe quoting error, a JSON-only formatter invocation that matched repository ignores, a source-sync timeout, and a synthetic checkout missing the requested Git base. The runtime proof likewise needed a fresh lease after capsule verification rejected stale source. No failed preparation was counted as passing proof, and checks, assertions, budgets, and execution settings stayed intact.

Hosted timeout investigation

CI run 36408810863 hit its existing 15-minute deadline in core test-type stripe 4. Its four completed graphs all returned exit 0 without type diagnostics, but took 279–353 seconds each. The same runner was already unusually slow before compilation: extracting the identical dependency archive took 22.7 seconds, versus 5.3 seconds on another runner in that run. Both UI graphs changed here passed on their separate stripes.

A cold reproduction of the exact executed merge 42deaf2dc40e, on fresh four-CPU capacity with the same five graphs, two compiler children, Node/compiler versions and native compiler policy, passed all five graphs in 196.80 seconds. All 18 bound source inputs matched before and after execution. This fits the original 813.52-second compiler window; no timeout, concurrency, assertion, coverage, or source changes were made. The isolated reproduction is complete and its lease is stopped. These results support one retry of the cancelled job as infrastructure recovery; they do not establish a specific unmeasured host fault.

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

@steipete
steipete marked this pull request as ready for review September 28, 2026 10:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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, 6:33 AM ET / 10:33 UTC (Revision 2).

ClawSweeper review

What this changes

The branch assigns Control UI end-to-end fixture tests to the E2E TypeScript graph and registers a hot-reload agent test with the SQLite worker test project.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still has the reported UI type-graph ownership, while the linked merged PR resolves only the overlapping SQLite test routing. The remaining change is focused, and this review found no actionable defect.

Priority: P2
Reviewed head: 24b1a7d744890c76ec88702a84bece1d9839e03d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, coherent patch has focused before-and-after validation, with results reported in the PR body.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed UI type-graph owner was exercised through the strict local graph boundary and both affected TypeScript checks on isolated Testboxes; the PR body reports the over-budget baseline, retained roots, and passing after-change results. The SQLite registration has separate focused test evidence and is already on main. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed UI type-graph owner was exercised through the strict local graph boundary and both affected TypeScript checks on isolated Testboxes; the PR body reports the over-budget baseline, retained roots, and passing after-change results. The SQLite registration has separate focused test evidence and is already on main. No stored-data contract changes.
Evidence reviewed 8 items Pinned PR change: The introduced patch adds a matching include and exclude for the Control UI E2E fixture tests; the same patch also adds a SQLite worker test registration.
Merge result: The verified test merge against its pinned main parent changes only the two UI type configurations. The SQLite worker registration is already present on main.
Current main still needs the UI change: Fetched current main lacks the E2E fixture include, and its other-UI graph still includes test files broadly without the matching fixture exclusion.
Findings None None.
Security None None.

How this fits together

OpenClaw's test tooling assigns UI test files to TypeScript graphs, then checks that each test root has one owner. A separate Vitest registry routes database-dependent tests to the SQLite worker project.

flowchart TD
A[UI fixture tests] --> B[Type graph rules]
B --> C[E2E type graph]
B --> D[Other UI type graph]
C --> E[Root ownership guard]
D --> E
E --> F[Type check results]
G[Hot reload test] --> H[SQLite worker project]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 3 files.

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

Review metrics

Metric Value Why it matters
UI type-graph ownership 11 fixture roots reassigned; 0 reported lost The reported before-and-after inventories preserve coverage while bringing the strict local shard below its existing limit.

Technical review

Best possible solution:

Keep the eleven fixture tests in the E2E type graph while preserving the existing budget and exactly-once ownership guard.

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

Yes, from source and the reported boundary run: current main assigns the eleven fixtures to the broad other-UI graph, and the strict local guard fails when that graph exceeds 720 roots. This review did not rerun the check.

Is this the best way to solve the issue?

Yes. Matching graph patterns move the existing tests to their E2E owner without raising the limit or weakening the exactly-once guard.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A local developer validation failure has a bounded test-configuration repair and no user-facing runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed UI type-graph owner was exercised through the strict local graph boundary and both affected TypeScript checks on isolated Testboxes; the PR body reports the over-budget baseline, retained roots, and passing after-change results. The SQLite registration has separate focused test evidence and is already on main. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed UI type-graph owner was exercised through the strict local graph boundary and both affected TypeScript checks on isolated Testboxes; the PR body reports the over-budget baseline, retained roots, and passing after-change results. The SQLite registration has separate focused test evidence and is already on main. 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)
  • 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-28T10:24:33.558Z sha 24b1a7d :: needs maintainer review before merge. :: none

@steipete steipete changed the title fix: restore test checks after fixture ownership changes fix: keep UI fixture types within the existing test-root budget Sep 28, 2026
@steipete
steipete enabled auto-merge (squash) September 28, 2026 10:33
@steipete
steipete merged commit f9c8af7 into main Sep 28, 2026
218 of 222 checks passed
@steipete
steipete deleted the codex/ci-test-owner-routing-20260928 branch September 28, 2026 11:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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