Skip to content

test: consolidate OpenClaw E2E fixtures - #117701

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-openclaw-e2e-instance-wave6
Aug 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-openclaw-e2e-instance-wave6

Conversation

@steipete

@steipete steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • centralize synchronous temp-directory cleanup plus Bash, package-install, and timeout-dispatch fixtures in the OpenClaw E2E instance test
  • preserve all 29 source registrations, 31 runtime cases, 71 source assertions, 92 runtime matcher calls, and 34 child-process invocations
  • remove 280 net test LOC with zero production LOC change

Architecture

  • Root cause: each scenario repeated process invocation and cleanup mechanics instead of sharing the test-owned fixture boundary.
  • Owner: test/scripts/openclaw-e2e-instance.test.ts; the production shell helper remains unchanged.
  • Canonical fix: one synchronous temp lifecycle and reusable Bash/package/timeout fixture helpers.
  • Removed paths: duplicate temp cleanup, spawn option assembly, package fixture paths, and timeout dispatcher setup. Signal escalation and process-group fallback bodies remain explicit.
  • Sibling coverage: the adjacent PTY runner suite is included in focused proof.
  • Observed behavior: exact normalized baseline/head matcher and spawn traces are identical; no user-visible runtime behavior changes.

Validation

  • node scripts/run-vitest.mjs test/scripts/openclaw-e2e-instance.test.ts test/scripts/e2e-run-with-pty.test.ts --reporter=dot (31 + 5 passed after rebase)
  • Blacksmith Testbox focused proof: 36 passed (run)
  • Blacksmith Testbox full changed gate: green (run)
  • test-name baseline/head SHA-256: aa077e306a75d3e8f42a9014a0bf4a158bc79097ce40793f84019319e158c8c8
  • normalized matcher baseline/head SHA-256: 74e386d8d9c3f0b0765cc6418121e8067f2fb98e6d9c1e518e53b56cf7040cb7
  • normalized child-process baseline/head SHA-256: 4a4e7eeef1900a4b3443e8060a46598ac08dae775f7db849c1c09bdf7a0db055
  • git diff --check

@openclaw-barnacle openclaw-barnacle Bot added size: L maintainer Maintainer-authored PR labels Aug 1, 2026
@steipete steipete added size: XS and removed size: XS labels Aug 1, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:14 PM ET / August 2, 2026, 00:14 UTC.

ClawSweeper review

What this changes

The branch centralizes temporary-directory lifecycle, Bash execution, package-install, and timeout-dispatch fixtures in test/scripts/openclaw-e2e-instance.test.ts without changing production shell-helper code.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for protected maintainer review. The submitted head is a cleanly mergeable, test-only fixture consolidation with no concrete correctness finding; the remaining gate is terminal exact-head CI plus a maintainer decision on the protected refactor.

Priority: P3
Reviewed head: 808cea3ac8dc8a7a1cf3f9a5bbbb71de8aad2e33
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The refactor is focused and proof-backed; final exact-head CI completion and protected maintainer review remain before merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body provides after-refactor Blacksmith Testbox proof for 36 focused E2E/PTY cases and a green changed gate, with matching normalized baseline/head traces.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body provides after-refactor Blacksmith Testbox proof for 36 focused E2E/PTY cases and a green changed gate, with matching normalized baseline/head traces.
Evidence reviewed 6 items Test-owned fixture boundary: The proposed helpers centralize temporary-directory cleanup and shell invocation inside the E2E test file; no production file is changed.
Production contract remains unchanged: The exercised package-install, PTY, logged-command, and CLI-timeout entry points remain in the current production shell helper and are outside the PR diff.
No current-main conflict: Current main has no drift in the changed test file from the PR base, and the three-way merge reports a merged result with no conflict.
Findings None None.
Security None None.

How this fits together

OpenClaw’s E2E instance suite creates isolated shell fixtures, invokes the E2E shell helper, and asserts process, timeout, package-install, and cleanup behavior. This PR refactors that test harness while leaving the production helper it exercises unchanged.

flowchart LR
  A[E2E test cases] --> B[Shared test fixtures]
  B --> C[Temporary directories]
  B --> D[Bash runner]
  D --> E[E2E shell helper]
  E --> F[Process and timeout assertions]
  C --> G[Synchronous cleanup]
Loading

Decision needed

Question Recommendation
Should this protected E2E fixture consolidation land once every in-progress exact-head check has completed successfully? Land after exact-head CI: Confirm the refactor remains test-only and merge once all required checks for the current head are green.

Why: There is no supported line-level defect to repair automatically, while the maintainer label requires explicit human merge handling.

Before merge

  • Resolve merge risk (P1) - The supplied exact-head check state still contains in-progress build and compact-check jobs; wait for those jobs to reach terminal green status before landing this protected refactor.
Agent review details

Security

None.

PR surface

Tests -280. Total -280 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 346 626 -280
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 346 626 -280

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the shared test-fixture boundary and merge only after exact-head CI is green and a maintainer confirms that this protected cleanup has the desired review scope.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the shared test-fixture boundary and merge only after exact-head CI is green and a maintainer confirms that this protected cleanup has the desired review scope.

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

Not applicable: this PR refactors test fixtures rather than reporting a user-visible defect. The provided focused Testbox evidence covers the affected E2E and PTY test path.

Is this the best way to solve the issue?

Yes, subject to final CI: placing repeated lifecycle and process setup in test-owned helpers is the narrowest maintainable solution, while production shell behavior remains unchanged.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a test-only cleanup with no demonstrated user-visible runtime, configuration, or data-model change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR body provides after-refactor Blacksmith Testbox proof for 36 focused E2E/PTY cases and a green changed gate, with matching normalized baseline/head traces.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-refactor Blacksmith Testbox proof for 36 focused E2E/PTY cases and a green changed gate, with matching normalized baseline/head traces.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the substantial recent E2E test content at fb3d473a73 and the submitted fixture consolidation. (role: feature owner and recent test-area contributor; confidence: high; commits: fb3d473a73b0, 808cea3ac8dc; files: test/scripts/openclaw-e2e-instance.test.ts, scripts/lib/openclaw-e2e-instance.sh)
  • Vincent Koc: File history shows repeated recent contributions touching the E2E instance test surface, making this a reasonable secondary routing contact. (role: recent area contributor; confidence: medium; commits: f5006b133d32, ebf121af6ab5; files: test/scripts/openclaw-e2e-instance.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the in-progress exact-head build and compact-check jobs to complete green before landing.

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-08-01T23:57:52.792Z sha e4bc87ed74cd8386321325811e37a84454d64e13 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/goal100k-openclaw-e2e-instance-wave6 branch from e4bc87e to 808cea3 Compare August 2, 2026 00:09
@steipete steipete self-assigned this Aug 2, 2026
@steipete
steipete merged commit 16de0c0 into main Aug 2, 2026
91 checks passed
@steipete
steipete deleted the codex/goal100k-openclaw-e2e-instance-wave6 branch August 2, 2026 01:55
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
llwijvbw123 pushed a commit to llwijvbw123/openclaw that referenced this pull request Aug 28, 2026
…elf-release

* commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits)
  fix(release): allow larger npm plugin artifacts (openclaw#117745)
  refactor(macos): consolidate gateway process fixtures (openclaw#117740)
  fix(ui): preserve complete persisted log messages (openclaw#117666)
  fix(ui): decode artifact previews as UTF-8 (openclaw#117657)
  fix(control-ui): restore sandbox media previews (openclaw#117689)
  fix(plugins): link host declared as direct dependency (openclaw#117738)
  fix(macos): avoid self-named defaults suite (openclaw#117690)
  fix(inference): preserve run ownership and completion delivery (openclaw#117731)
  test(talk): align browser E2E tool completion
  test: consolidate OpenClaw E2E fixtures (openclaw#117701)
  fix(release): ignore bundle fields in npm locks (openclaw#117730)
  fix(meeting-bot): keep configured host options internal
  refactor(line): remove dead card helpers (openclaw#117729)
  perf(cli): attribute command startup stages (openclaw#117720)
  refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710)
  docs(changelog): note bounded WebRTC tool calls
  docs(changelog): note meeting audio bounds
  fix(meeting-bot): preserve node host SDK surface
  test(talk): split WebRTC tool lifecycle coverage
  fix(meeting-bot): break node host import cycle
  ...

# Conflicts:
#	package.json
#	src/agents/model-auth.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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