Skip to content

test: isolate browser and worker lifecycle fixtures - #158221

Merged
steipete merged 2 commits into
mainfrom
codex/taskflow-test-lifecycle
Sep 25, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/taskflow-test-lifecycle

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156532

What Problem This Solves

Fixes four fixture failures found while validating Tasks retirement: unrelated animation callbacks, host timer delays, APFS filename restrictions, and unwanted provider startup.

User Impact

No production behavior changes. The affected tests exercise their intended ownership and cancellation contracts consistently on macOS and in shared workers.

Why This Change Was Made

Overlay cleanup now accounts for a legitimate composer resize listener. The worker cancellation case advances virtual time while preserving the 10ms RPC and 100ms cleanup budgets. The workspace tests supply indexed invalid UTF-8 through a real Git index and retain a separate untracked raw-filename case on filesystems that support those bytes. Unsupported filesystem input is reported explicitly. The missing-provider Meet fixture disables unrelated plugin discovery while retaining its browser/audio cleanup assertions.

Evidence

  • 83 focused tests passed, plus the existing Podman-only skip. Per-file wall times: overlay 4.94s, node launch 7.50s, workspace projection 79.34s, and Meet 164.14s including cold runtime and worker preparation.
  • Both original filename fixtures reproduce APFS EILSEQ before reaching product admission; the repaired file passes its real Git/projection boundary checks.
  • The earlier ordered overlay failure and negative controls, controlled timer-stall reproduction, and provider-discovery diagnosis are retained in the parent task evidence. The original unrelated composer-listener leak remains unattributed.
  • Required changed checks passed: 25 core test type graphs, plugin test types, targeted lint, formatting, i18n and source guards. Independent review is clean through P2.

The first Meet invocation stopped before tests because the default runtime-publication context was not isolated. The successful run used task-owned state, configuration, port and service label; no live service was changed. No production deadline or assertion baseline was loosened.

Follow-up review restored the initial untracked-path contract alongside the portable indexed cases. The full macOS file passes 27 cases with two explicit skips (Podman and EILSEQ), in 94.06s. The real raw-file case passes on isolated Linux in 29.15s; bypassing only initial path decoding fails its intended assertion in 24.02s. Production source was restored byte-for-byte after that negative control. Changed checks and fresh P2 review pass.

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

@steipete
steipete marked this pull request as ready for review September 25, 2026 17:07
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 1:52 PM ET / 17:52 UTC (Revision 2).

ClawSweeper review

What this changes

The branch adjusts Control UI, worker, workspace, and Google Meet tests to isolate unrelated callbacks and startup work while preserving cancellation and path-admission assertions.

Merge readiness

✅ Ready for maintainer review

The latest head addresses the prior P2 finding by restoring separate untracked raw-filename coverage. Current main lacks these fixture corrections, and the review found no new blocking defect.

Priority: P2
Reviewed head: 5c93c3b0b2cc2507dfda782c08fe27ebc05533d2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch preserves the previously flagged contract and has concrete cross-platform validation, with no blocking finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed surface is the test fixtures: the PR reports after-fix runs on macOS and isolated Linux, including real Git/worktree path admission and a failing negative control, plus focused executions of the overlay, worker, and Meet cases. Browser and transport clients in those cases remain mocked; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed surface is the test fixtures: the PR reports after-fix runs on macOS and isolated Linux, including real Git/worktree path admission and a failing negative control, plus focused executions of the overlay, worker, and Meet cases. Browser and transport clients in those cases remain mocked; no stored-data contract changes.
Evidence reviewed 8 items Prior finding addressed: The latest head keeps indexed invalid-byte cases and adds a separate untracked raw-byte case with an explicit unsupported-filesystem skip. This addresses the prior review's concrete coverage concern.
Production path admission: The workspace owner reads cached and untracked Git paths as bytes and rejects non-UTF-8 input before admitting it.
Cancellation fixture: Fake time advances through the first cancellation RPC timeout while retaining the 10 ms RPC and 100 ms cleanup budgets and asserting a second cancellation attempt.
Findings None None.
Security None None.

How this fits together

These tests exercise OpenClaw's Control UI layout, Gateway worker lifecycle, local sandbox workspace, and Google Meet startup. Browser events, worker responses, and Git worktrees enter the fixtures; cleanup and admission results feed CI.

flowchart LR
  A[Browser events] --> E[Test fixtures]
  B[Worker responses] --> E
  C[Git worktree] --> E
  D[Meet startup] --> E
  E --> F[OpenClaw owners]
  F --> G[Assertions and CI]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +62. Total +62 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 94 32 +62
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 94 32 +62

Review metrics

None.

Technical review

Best possible solution:

Keep the owner-boundary tests deterministic across platforms while retaining both indexed and genuinely untracked invalid-path coverage.

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

Yes, with platform-specific limits: the original APFS filename failure and the affected fixture entrypoints are concrete, and the author reports focused macOS and Linux runs. This read-only review did not execute them.

Is this the best way to solve the issue?

Yes. The changes isolate fixture-owned callbacks and timing, and preserve the untracked path contract without altering production deadlines or source.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed surface is the test fixtures: the PR reports after-fix runs on macOS and isolated Linux, including real Git/worktree path admission and a failing negative control, plus focused executions of the overlay, worker, and Meet cases. Browser and transport clients in those cases remain mocked; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: The PR repairs test reliability across several bounded subsystem fixtures without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The changed surface is the test fixtures: the PR reports after-fix runs on macOS and isolated Linux, including real Git/worktree path admission and a failing negative control, plus focused executions of the overlay, worker, and Meet cases. Browser and transport clients in those cases remain mocked; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed surface is the test fixtures: the PR reports after-fix runs on macOS and isolated Linux, including real Git/worktree path admission and a failing negative control, plus focused executions of the overlay, worker, and Meet cases. Browser and transport clients in those cases remain mocked; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 28d8ee4 adds src/gateway/worker-environments/local-workspace-inventory.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 28d8ee4f096b; files: src/gateway/worker-environments/local-workspace-inventory.ts)
  • steipete: 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-25T17:16:25.282Z sha 473d308 :: needs changes before merge. :: [P2] Preserve the untracked invalid-path admission case

@steipete

Copy link
Copy Markdown
Contributor Author

Restored the initial untracked invalid-UTF-8 contract in 5c93c3b alongside the portable indexed cases. The case reports a skip only when the filesystem rejects the exact raw bytes with EILSEQ or cannot round-trip them.

The real raw-path case passes on isolated Linux (29.15s); bypassing only initial path decoding fails its intended rejection assertion (24.02s). The full macOS file passes 27 cases with the existing Podman skip and the explicit unsupported-input skip (94.06s). Production source was restored after the negative control. Changed checks and fresh P2 review pass.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit a21a668 into main Sep 25, 2026
116 checks passed
@steipete
steipete deleted the codex/taskflow-test-lifecycle branch September 25, 2026 18:03
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* test: isolate browser and worker lifecycle fixtures

* test(gateway): retain untracked raw-path admission coverage
steipete added a commit that referenced this pull request Sep 27, 2026
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning.

Follows #158221, #158217, #158225, #158222, #158702 and #158776. Related: #156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners.

Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning.

Follows openclaw#158221, openclaw#158217, openclaw#158225, openclaw#158222, openclaw#158702 and openclaw#158776. Related: openclaw#156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners.

Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. plugin: google-meet rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant