Skip to content

test(ui): repair readiness and compiled-worker fixture ownership - #197854

Open
steipete wants to merge 10 commits into
mainfrom
fix/ci-432587-model-setup-cancel
Open

steipete wants to merge 10 commits into
mainfrom
fix/ci-432587-model-setup-cancel

Conversation

@steipete

@steipete steipete commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repairs Control UI fixture execution boundaries that failed full CI: cancellation before Submit readiness, serial cold-browser preparation, Home running outside its real-Gateway project, compiled-worker preparation consuming benchmark suite hook budgets, and a Browser fixture waiting for a retired input request. Adds bounded diagnostics for the unresolved Logs auto-follow failure.

User Impact

Production runtime behavior is unchanged. The 18-file diff adds 235 net test/tooling lines. Existing cancellation, HTTP recovery, reader permissions, denied-write, hidden-target and build-variant assertions retain their deadlines. No configuration, dependency, cache, schema or compatibility path is added.

Why This Change Was Made

Cancellation waits for the existing Submit control before clicking Cancel. Cold-browser setup overlaps the asset build with independent state-module preparation, joins both before allocating isolated state, and imports the HTTP harness after isolation. The complete build responsibility moves to a sibling module and all callers migrate; its managed asynchronous child preserves command/environment, streamed stdout, bounded stderr, failure causes and cleanup.

Home joins the existing serial real-Gateway inventory, including its configuration-test consumer. Project/planner tests preserve exactly-once coverage and ordinary/prebuilt membership. Canonical search-fixture changes remain intact.

The Browser handoff fixture follows /operator/input, introduced by #197927 (9ffa0502cc89), instead of waiting for /act. It acknowledges the current route and verifies ordered click/Enter inputs while retaining resize, requested node/profile/tab identity, and prohibitions on opening or focusing another surface.

After native Vitest selects a shard, the existing sequencer requests readiness for its two selected benchmark HTTP consumers through the compiled-worker plugin’s existing per-Vitest acquisition promise. This avoids preparing unrelated shards and lets later declaration imports reuse the same request. The outer runner still owns generation, cancellation, verification and retirement within the unchanged command budget. Two existing borrowers join the existing affinity group. Logs retains its original actions and final assertion while recording at most 64 numeric/Boolean event and geometry observations, emitted only on failure.

Evidence

Cancellation's controlled failure lost its click after a 59.6875 px footer movement; Submit readiness preserves it, with seven Chromium cases passing. No WebKit result is claimed for that proof. Cold A/A/B retained three assertions, one build and one worker compilation: setup 101.85 / 61.41 / 27.23 s, command wall 128.13 / 85.03 / 49.99 s, CPU 209.78 / 175.92 / 167.83 s, peak RSS 3.721 / 3.717 / 3.605 GB. These local controls prove preparation overlap, not a hosted latency guarantee. The final extracted HTTP fixture passes all three cases.

Home's project-selection regression fails before registration and passes afterward. Its unchanged scenario passes through the serial project in 48.014 s. Three omitted configuration-consumer membership checks reproduced on the prior candidate; the complete corrected file passes 15/15 without changing numeric expectations.

Actual native --shard subprocess tests include the real sequencer, compiled-subprocess plugin, declaration resolver and IPC, with lightweight synthetic leaves and an existing controlled compiler. Both borrower cases fail on canonical parent source at missing pre-hook readiness and pass after correction. Unrelated shards compile zero generations; borrower shards compile one before hooks, complete a later real declaration import, and retire normally. Eight sequencer cases and sixteen unchanged browser cases across six borrowers also pass with one shared generation.

The final unchanged four-case production HTTP route flow passes. Its current graph compiles 16,216 inputs/7,669 outputs in 63.824 s before suite hooks; the case file takes 31.232 s. Whole command: 158.80 s, CPU 196.23 s, peak RSS 4.986 GB, with normal browser exit and generation verification. This is functional proof, not a matched-work speedup or proof that UI6's outer 20-minute capacity failure is repaired.

The original Browser requested-tab case reproduces the obsolete-request wait (24.026 s, normal local 10-second wait versus hosted 30 seconds). The corrected complete Chromium file passes all six cases in 68.938 s. Input/mock owners and dependencies are qualified against the tested merge; the unrelated same-tab live-stream guard and existing build-helper extraction are separately accounted for. This proves the fixture’s protocol boundary, not delivery to a remote browser.

Latest CI 43395282816 on the prior head failed only this Browser case and rejected-key latency at 2134 ms against 2000 ms; the latter remains unresolved, as do earlier 2029/2081 ms observations. Earlier CI passed the original fresh-browser HTTP cases in 94.799 s. Logs remains unexplained: local passes are nonreproduction, its failure-output branch is unexecuted, and passive geometry reads may perturb timing. The saved-recovery consumer result remains 19/20; parent/final single-case passes do not explain it. No assertion, deadline or inherited-red exception is relaxed.

Named repaired main a1c020f9 remains integrated; this follow-up adds no main refresh. The original seventeen files are byte-identical to reviewed source, preserving their qualified focused tests, complete changed-file checks, and scoped reviews. The one-file Browser repair has fresh cohesive Codex review with no actionable findings. Its canonical changed-file check exited 1 solely because the production and full-tree unused-export scans each reached their existing 605-second limit. Scripts exports passed with zero entries; format, UI E2E types, guards and type-aware lint all passed. No source finding was reported, and no check was bypassed or retried. The earlier three successful export scans are reused for the unchanged module boundary: this sole test follow-up preserves scanner inputs, dependencies, import/export declarations and prior references. CI does not select those scans, so no new scanner pass is claimed. The previous head’s Claw review has zero open items. New exact-head CI and final-head hosted review remain required before landing.

@clawsweeper

clawsweeper Bot commented Nov 12, 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 November 12, 2026 18:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T11:27:44.383412Z eaebd35 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 12, 2026 18:05
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR repairs Control UI test readiness, project registration, build preparation, and compiled-worker ownership, and adds bounded failure diagnostics.

Example: A native Vitest shard selects route-asset-requests.e2e.test.ts.

  • Before: Cold worker compilation begins during suite setup and consumes its hook budget.
  • After: The selected borrower prepares one shared generation before hooks; an unrelated shard prepares none.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent fixture repairs with meaningful recorded regression coverage and no source finding; broad validation is still incomplete.
Proof confidence 🦐 gold shrimp (3/6) The changes affect test execution and support tooling, so separate shipped-product proof is unnecessary; recorded focused validation supports the patch while broad exact-head CI remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers encounter Control UI CI failures caused by fixture readiness and execution ownership rather than the behavior those fixtures intend to verify.
Reason: The maintainer-directed repairs preserve meaningful assertions and existing budgets while correcting evidenced fixture failures; unresolved observations are disclosed without claiming repairs.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: useful, maintainer-directed fixture repairs remain distinct from current main, and no actionable introduced defect was found.

Priority: P3
Reviewed head: eaebd3502d368646873bdb7919dd00af3c92f9ac

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI test runner turns selected test files into projects and shards, prepares browser assets and compiled subprocesses, and runs isolated browser fixtures.

flowchart TD
  A[Selected test files] --> B[Project inventory]
  B --> C[Native shard selection]
  C --> D[UI sequencer]
  D --> E[Existing worker acquisition owner]
  E --> F[Prepared subprocess generation]
  F --> G[Browser fixture hooks]
Loading

Technical review

Best possible solution:

Land the focused fixture repairs through their existing owners once the required exact-head CI gates pass.

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

Source establishes the readiness and execution-owner mismatches, and the discussion records controlled failing baselines and passing repairs; this read-only review did not execute them.

Is this the best way to solve the issue?

The patch restores fixture readiness using existing project, compilation, and process owners; the extracted build helper replaces its prior implementation and the added regressions protect distinct lifecycle boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8ff37a6828b2.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +235, Other 0. Total +235 across 18 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 17 321 86 +235
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 18 322 87 +235

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is test and tooling maintenance with no production runtime behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-12T20:08:38.604Z sha 407fbeb :: needs changes before merge. :: none
  • reviewed 2026-11-12T20:19:45.337Z sha 545a824 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-12T20:24:54.852Z sha 545a824 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-12T21:58:01.716Z sha 2b38b5b :: needs maintainer review before merge. :: none
  • reviewed 2026-11-12T23:18:40.245Z sha 026b4f1 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T00:00:09.469Z sha 5d317db :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T05:32:37.573Z sha a1f9ab7 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T08:55:42.154Z sha f1fdb5b :: needs maintainer review before merge. :: none

Reviewed November 13, 2026, 6:32 AM ET / 11:32 UTC (Revision 10).

Join lazy transcript-search imports after the opening action, and move the complete cases into the existing search suite. Preserve cancellation readiness, keyboard navigation, focus restoration, pane isolation, and all original assertion budgets.

Integrate main f77a360 for the named pending-input export repair while retaining the original PR ancestry.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 12, 2026
@steipete steipete changed the title fix(ui): wait for setup readiness in cancellation tests fix(ui): await readiness in chat search and setup cancellation tests Nov 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review final head 407fbebd09b71eeddc506721ad1b15f122e613e5. The existing cancellation fixture repair is retained; transcript-search cases now await lazy readiness and live in the existing search suite. The PR body records exact-parent and controlled red/green proof, final affected tests, recovered changed-check gates, and clean fresh Codex review. Full CI is enabled for this updated head.

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
Integrate main 8ef78ec and preserve the search fixtures landed in #197886 byte for byte. The remaining PR change is the six-line model-setup cancellation readiness fix.
@steipete steipete changed the title fix(ui): await readiness in chat search and setup cancellation tests fix(ui): wait for setup readiness in cancellation tests Nov 12, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
Reuse the existing per-Vitest acquisition promise so later declaration imports share readiness. Keep the existing borrower affinity group and bounded Logs failure diagnostics.
@steipete steipete changed the title fix(test): repair Control UI fixture readiness and execution test(ui): repair readiness and compiled-worker fixture ownership Nov 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Please review final head f1fdb5b6ef1a3bbe69eef60784f349f3081c99c5; the body and proof are current.

Item 1 remains addressed: the canonical #197886 search helper and assertions are preserved.

The new follow-up prepares workers after native shard selection through the existing Vitest-instance acquisition owner, groups actual borrowers through existing affinity, and adds bounded failure-only Logs diagnostics. Actual native shard/declaration regression, unchanged real route cases, required changed-file checks, and fresh cohesive Codex review pass. The original twelve-file evidence remains qualified; unresolved observations and previous red CI are explicitly retained. New exact-head CI and final review are still required.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
Observe the ordered click and Enter requests on the human-input route introduced by #197927 while preserving existing-tab and route identity assertions.
@steipete

Copy link
Copy Markdown
Contributor Author

Please review final head eaebd3502d368646873bdb7919dd00af3c92f9ac; the source and body are current.

Item 1 remains addressed: the canonical #197886 search helper and assertions are preserved.

The only new source change corrects the Browser handoff fixture’s obsolete /act expectation to the current /operator/input protocol, acknowledging that route and asserting ordered click/Enter inputs. The original requested-tab case fails; all six corrected Chromium cases pass. The original seventeen files and their qualified reviews/proofs remain unchanged. Fresh scoped Codex review found no actionable issue.

The canonical changed-file check exited 1 solely on two 605-second unused-export scan timeouts; scripts exports and all other selected checks passed. The updated body retains that qualification gap and the unresolved rejected-key latency, Logs and saved-recovery observations. New exact-head CI and a final-head review are still required before landing.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026

This branch has not been deployed

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

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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