Skip to content

test(ui): share startup storage failure fixtures - #150505

Merged
steipete merged 1 commit into
mainfrom
codex/test-ui-startup-storage
Sep 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-ui-startup-storage

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Startup recovery tests repeat the same storage write-failure fixture across disconnect, reload and Stop scenarios.

User Impact

No user-visible behavior change. All 93 cases across the five startup suites remain intact.

Why This Change Was Made

Reuse the existing startup test-support module while preserving the backing storage, bound reads/removals, live length, synchronous quota error and reload's explicit restoration.

Production is unchanged; tests and test support shrink by 18 lines (+21/-39).

The signed mechanical refresh is 99ef50d on main b54d624. Its four reviewed afterimages and stable patch identity are unchanged.

Evidence

  • Before this mechanical refresh, baseline and candidate on 5d1389f2: native exit 0, 93/93 cases each, with matching per-file identities, order, status and counts.
  • The 19 normal local changed checks and formatter on that candidate returned native exit 0; independent applied review found no P0–P2 findings.
  • The baseline, candidate and gate recorders each exited 1 on an unqualified process-birth observation. Original receipts remain unchanged. Separate postrun checks confirmed exact source/dependency/index/config bindings and later absence of known processes; they do not repair those historical observation gaps.

Earlier hosted CI on 4cfd4cad failed compact Node shards 37, 38, 42, 44 and 46; failed-log downloads were unavailable, so their causes remain unknown. This refresh incorporates newer main, but does not claim those failures are cured. Exact-head hosted CI is still required before landing.

The subsequent ce5 CI run35186349908 failed its test compiler on an unrelated Slack RawData overload error from main. The canonical fix in #149291 and follow-up refinement #150678 are included in the new base; no Slack code is added by this cleanup. The retained 93-case proof is historical evidence for the unchanged patch, not a new b54 execution. Fresh exact-head CI is required.

@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 app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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, 4:31 PM ET / 20:31 UTC (Revision 4).

ClawSweeper review

What this changes

Shares the storage-write failure fixture across startup disconnect, reload, and Stop tests while preserving their assertions and storage restoration.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful and has no actionable findings. Exact-head CI now passes, and current main still contains the duplicated fixtures.

Priority: P3
Reviewed head: 99ef50ddb62234747b4817b93dc4734461ee242b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving extraction with unchanged assertions, passing exact-head CI, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR changes only test fixtures; no production behavior or authority changes require live proof, and historical test parity remains supplemental to verified exact-head CI.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR changes only test fixtures; no production behavior or authority changes require live proof, and historical test parity remains supplemental to verified exact-head CI.
Evidence reviewed 6 items Introduced patch preserves fixture behavior: The pinned merge-base-to-head diff moves the existing storage stub into shared test support, preserving bound reads/removals, live length, and synchronous quota errors; returning the original storage preserves reload's explicit restoration. No assertions or production files change.
Cleanup remains absent from current main: Current main retains separate quota-error fixtures in disconnect, reload, and Stop tests; its shared startup support does not export this helper. The related merged Slack repairs address earlier CI failures, not this cleanup.
Exact-head CI success verified: GitHub reports attempt 2 of run 35197543950 completed successfully on the reviewed head. A separate paginated jobs read confirmed success for all three UI shards, UI E2E jobs, compact-large-2, and the required CI gate.
Findings None None.
Security None None.

How this fits together

Control UI startup recovery retains an initial message while a worker starts and handles interruptions before delivery. These tests inject browser-storage failures to verify that recovery preserves pending input without sending it unexpectedly.

flowchart LR
  A[Startup test scenarios] --> B[Shared storage failure fixture]
  B --> C[Writes throw quota errors]
  B --> D[Reads and removals use backing storage]
  C --> E[Startup recovery owner]
  D --> E
  E --> F[Pending input and delivery assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -18. Total -18 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 21 39 -18
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 21 39 -18

Review metrics

Metric Value Why it matters
Production versus test footprint Production unchanged; tests and support net −18 lines The consolidation removes repeated setup without adding production seams or removing regression assertions.

Technical review

Best possible solution:

Keep one shared failure fixture in startup test support while retaining each scenario's assertions and cleanup lifecycle.

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

Not applicable: this PR consolidates existing test setup rather than reporting a runtime defect; the duplication is directly visible in current main.

Is this the best way to solve the issue?

Yes: the existing shared test-support module is the narrowest owner, and the extraction preserves failure timing, storage identity, restoration, and assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 80b92306e409.

Labels

Label justifications:

  • P3: This is a bounded test-fixture cleanup with no user-visible 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: The maintainer-authored PR changes only test fixtures; no production behavior or authority changes require live proof, and historical test parity remains supplemental to verified exact-head CI.

Evidence

What I checked:

  • Introduced patch preserves fixture behavior: The pinned merge-base-to-head diff moves the existing storage stub into shared test support, preserving bound reads/removals, live length, and synchronous quota errors; returning the original storage preserves reload's explicit restoration. No assertions or production files change. (ui/src/app/session-placement-startup.test-support.ts:102, 99ef50ddb622)
  • Cleanup remains absent from current main: Current main retains separate quota-error fixtures in disconnect, reload, and Stop tests; its shared startup support does not export this helper. The related merged Slack repairs address earlier CI failures, not this cleanup. (ui/src/app/session-placement-startup.test-support.ts, 80b92306e409)
  • Exact-head CI success verified: GitHub reports attempt 2 of run 35197543950 completed successfully on the reviewed head. A separate paginated jobs read confirmed success for all three UI shards, UI E2E jobs, compact-large-2, and the required CI gate. (99ef50ddb622)
  • Discussion and review continuity: The supplied previous review examined the same head and recorded no findings. The author's update at test(ui): share startup storage failure fixtures #150505 (comment) accurately distinguishes the successful CI retry from a root-cause fix. Historical 93-case parity and recorder observation gaps remain historical evidence, not fresh execution. (99ef50ddb622)
  • Current-main routing history: Recent main history connects Peter Steinberger to startup recovery and its shared test support. GitHub commit metadata identifies steipete as the author account for 9fa7478. Deeper follow-history and blame encountered unavailable objects, so no source-line introduction claim is made. (ui/src/app/session-placement-startup.test-support.ts, 9fa74781c691)
  • Read-only validation: Whitespace validation passed and the checkout remained clean. Tests were not executed during this read-only review. Root and UI AGENTS.md were read fully; no maintainer-notes directory was present. (ui/AGENTS.md, 99ef50ddb622)

Likely related people:

  • 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 (3 earlier review cycles)
  • reviewed 2026-09-17T02:18:43.132Z sha 4cfd4ca :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T05:43:45.199Z sha ce5be00 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T08:08:31.097Z sha 99ef50d :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/test-ui-startup-storage branch from 4cfd4ca to ce5be00 Compare September 17, 2026 05:35
@steipete
steipete force-pushed the codex/test-ui-startup-storage branch from ce5be00 to 99ef50d Compare September 17, 2026 08:02
@steipete

Copy link
Copy Markdown
Contributor Author

Exact head 99ef50ddb62234747b4817b93dc4734461ee242b now has successful CI run 35197543950, attempt 2. The retried compact-large-2 job and required CI gate passed; the other successful jobs were carried forward. The retried job completed all eight planned groups, including the three model-freshness variants. The original freshness assertion failure remains unexplained; this is an observed successful retry, not a root-cause-fix claim.

The test-only patch remains unchanged. Historical 93-case baseline/candidate parity and its recorded observation gaps remain as described in the PR; they are not fresh execution of current main. Native review metadata has been refreshed for the exact head.

@clawsweeper re-review — the last completed review is now older than 12 hours.

@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 steipete self-assigned this Sep 17, 2026
@steipete
steipete merged commit 4934136 into main Sep 17, 2026
285 of 289 checks passed
@steipete
steipete deleted the codex/test-ui-startup-storage branch September 17, 2026 20:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 17, 2026
…1148)

The Research fixture returned two rows for a 200-row query. A trailing
refresh after pagination then replaced the appended rows with that short
page. Seed a full first page and return the expanded retained window.
Keep the named-row assertions and verify Active retains its expanded
window while All starts a fresh page on agent re-entry.

Related: #150505 (startup fixture extraction ruled out; the pagination
fixture predates it in #149959 and #150305).
Observed in main run 35272742639, checks-ui-e2e (10/13).
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…nclaw#151148)

The Research fixture returned two rows for a 200-row query. A trailing
refresh after pagination then replaced the appended rows with that short
page. Seed a full first page and return the expanded retained window.
Keep the named-row assertions and verify Active retains its expanded
window while All starts a fresh page on agent re-entry.

Related: openclaw#150505 (startup fixture extraction ruled out; the pagination
fixture predates it in openclaw#149959 and openclaw#150305).
Observed in main run 35272742639, checks-ui-e2e (10/13).
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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