Repository navigation
test(agents,daemon,gateway,infra,scripts,talk): remove low-value tests (batch d200) - #175108
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9036da61b5
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated test fixtures and assertions across agent, Gateway, daemon, infrastructure, script, and Talk suites. Example: A microphone ends while the first talk.client.create request is pending.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 8 items remain Keep open: this maintainer-authored cleanup has value, but four introduced CI failures and two lost startup regression cases need repair. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese tests supply controlled inputs to runtime owners and check their lifecycle, persistence, authorization, and delivery contracts through CI. flowchart LR
A[Test fixtures] --> B[Runtime owners]
B --> C[Observed outcomes]
C --> D[Contract assertions]
D --> E[CI suites]
E --> F[Required merge gate]
Technical reviewBest possible solution: Retain the consolidation while repairing broken fixtures and restoring distinct startup rejection coverage. Do we have a high-confidence way to reproduce the issue? Pinned-head CI annotations record four failures whose causes are independently visible in the introduced diff; the two coverage omissions are source-verifiable. Is this the best way to solve the issue? Shared fixtures and tables are appropriate, provided they preserve failure inputs, assertion semantics, and distinct lifecycle contracts. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 66ffabc522ac. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -3016. Total -3016 across 68 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 17, 2026, 1:00 AM ET / 05:00 UTC. |
9036da6 to
1af0528
Compare
b59e408 to
5d7bfea
Compare
|
Final exact-head CI update for The remaining errors are TS2741 in untouched Auto-merge is disabled. No admin merge, retry, test weakening, or out-of-scope main repair was performed. The retained branch is clean. The batch's permitted local format/lint/diff checks passed; fresh CI is required after the unrelated config type failure is repaired upstream. |
5d7bfea to
17f6e13
Compare
…s (batch d200) (openclaw#175108) * test(daemon): deslop x7450 tests * test(daemon): deslop x7450 tests * test(daemon): deslop x7450 tests * test(agents): deslop x7448 tests * test(agents): deslop x7448 tests * test(agents): deslop x7448 tests * test(infra): deslop x7451 tests * test(agents): deslop x7449 tests * test(agents): deslop x7449 tests * test(infra): deslop x7451 tests * test(gateway): deslop x7455 tests * test(gateway): deslop x7455 tests * test(gateway): deslop x7455 tests * test(agents): deslop x7449 tests * test(gateway): deslop x7453 tests * test(gateway): deslop x7453 tests * test(scripts): deslop x7452 tests * test(scripts): deslop x7452 tests * test(scripts): deslop x7452 tests * test(talk): deslop x7454 tests * test(talk): further deslop x7454 tests * test(talk): consolidate x7454 test cases * test(models): deslop x7457 tests * test(models): deslop x7457 tests * test(models): deslop x7457 tests * test(scripts): deslop x7459 tests * test(scripts): deslop x7459 tests * test(scripts): deslop x7459 tests * test(agents): deslop x7456 tests * test: repair d200 fixture contracts against current main * test: retain baseline fixtures for ambiguous d200 type failures * test: preserve reviewed d200 boundaries and prune mock allowances * test: avoid presence fixture shadowing after d200 rebase
Settlement update
Rebased onto main
d00f7932b2757066be00604a3a372e60894813b7to incorporate7b727f04d23, which fixes the two TS2741 errors in untouchedsrc/config/io.health-state-scope.test.ts(the old CI run usedusingwith a no-longer-Disposable health store). This is a stale-base repair, not an inherited-red waiver. Fresh exact-head PR CI remains the proof.The only conflicts were in
src/commands/models/accounts.test.ts. Dropped that file's batch rewrite entirely and preserved main byte-for-byte, including its newer singleton-case cleanup. All other intended batch cuts remain. Current scope supersedes the older metrics below: 59 test/support files, +9,462/-14,208 (net -4,746); ratchet metadata +0/-15; production +0/-0. The x7457 inventory below no longer includesaccounts.test.ts.Prior independent review remains applicable to retained changes; all three reviewed files whose changes were dropped remain unchanged from main. Settlement adds no new test behavior. Main also added a nested
connectfixture insystem-presence.test.ts; renamed the batch's outer helper toconnectDeviceto remove the resulting no-shadow lint error, with assertions unchanged. Permitted local gates: plain changed-file oxlint, oxfmt, andgit diff --check; no local tests, typechecks, Testbox, or AWS runs.What Problem This Solves
Repeated fixtures, request envelopes, and assertions make these test suites harder to maintain. This batch consolidates that boilerplate while retaining the distinct behavior cases on current main.
User Impact
No production or user-visible behavior changes. Only tests and test-support code change; no migrations, configuration changes, or operator actions are required.
Why This Change Was Made
Replayed the d200 campaign onto pinned main
9390c316bc8248d1de5b1290f5eddc13ab74b76a, then rebased onto6d578912da668b3011720ac91997669b6383db5ato incorporate the snapshot type fixc711c071ed5after the first CI run. The latest conflict-free rebase is onto8457e29a4d0140c7185e74bab673f5f72db94844, incorporating the exact worker-exec repair in #175196. Retained 29 of 30 source commits, plus three repair/review commits, with current-main behavior and newer regression cases taking precedence. The final retained diff is 60 test/support files (+9,917/-14,787, net -4,870) and one shrink-only ratchet file (+0/-15); production +0/-0. No CODEOWNERS patterns match the changed files.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <60 changed test/support files>: exit 0 after repairs/review.node_modules/.bin/oxlint -c .oxlintrc.json <60 changed test/support files>: exit 0 after repairs/review.git diff --check 8457e29a4d0140c7185e74bab673f5f72db94844: passed; worktree clean.openclaw/ci-gateis the behavioral proof and merge gate. Local test wall time and CI seconds are not yet available.config/sessions/session-transcript.worker.mjsis missing from the node-host bundle:node-worker-launch-wire.e2e.test.ts,skill-library-worker-wire.e2e.test.ts, andcloud-worker-midturn-loss.e2e.test.ts. Auto-merge is disabled pending fresh green CI or properly established baseline proof; no admin exception is claimed. CI-only instructions prohibit the separate Testbox baseline reproduction.b59e408af5f8d692d0e822da8a61e544f2e77304: ratchet, type, and lint checks passed; the same three worker E2E jobs remained red. Main subsequently landed fix(workers): restore exec in node and cloud workers #175196 (2f4fa2677b8), which fixes that exact missing-worker error by passing prepared execution context instead of opening Gateway-only storage in worker tools. Rebased all 32 commits cleanly onto the fixed main and repeated the permitted local gates. Fresh exact-head CI, not an admin exception or retry of the stale run, is the merge gate; auto-merge will be re-armed on the rebased head.Replay Decisions
364cea5a2eb1ccd47136959c1997f39de1756b3fentirely: all four script tests have substantially rewritten current-main harnesses. Did not restore the older Kova/lint/updater test structure.7b0fc53b79b1085bc4a8482af4159e547f420615: retained the consolidated launchd install helper without restoring main's removed home-directory mode setup/assertions.6a6e9c7cf8361e8fcf9f370b19703b3f09f269d5: retained main's extra Windows environment-key case rather than folding its two-case table to a singleton.d76962067856622c0c9c047f99424e907b996216,d731b17bd0e31552c5004c8780512137ad640d75,d5ef997933169517b264a78fa0502b67590b09a1: dropped their final-answer-delivery file changes to preserve expanded delivery/reasoning cases. Also dropped the second commit's tools-file rewrite (newer media trust cases) and the third commit's lifecycle-file rewrite (newer lifecycle cases); retained their other files.4426ece22bf36c92b77b6179d444bdb20594d011: dropped its approval-binding file rewrite, preserving main's extra argv-mismatch case; retained seven other files.fa7baf80c01189d2728066c9483ba3fba177333e: adapted the patch helper while preserving the fresh-session empty-store case.7bf6b1c68cfb78761599911ca02132a542e8307d: dropped its further sessions-patch rewrite to preserve main's archive/restore and fresh-session coverage, retaining four other files.51fa64ae2b28c8c0603ee5608b110e7a2d8fadc4: preserved expanded microphone, whitespace, and overflow cases in conflicting blocks; retained other cleanup. Forf9a4e79b1040df605625d5ef9d7188dbf09f99c1and0da42735d7ca753bc2079b1b76c96bc3a94c716b, retained the preceding input/lifecycle/ordering/session files instead of replaying older whole-file rewrites; kept their remaining split/startup/transcript changes.config/test-mock-exports-baseline.txtafter CI identified them.src/agents/embedded-agent-runner/model.configured-catalog-index.test.ts,model.generation-scope.test.ts,run.midturn-precheck-retry.test-support.ts,test/scripts/find-reusable-release-validation.test.ts, andtest/scripts/openclaw-npm-extended-stable-release.test.ts. Their baseline fixture types are retained rather than broadening types or weakening assertions to admit older rewrites.src/agents/embedded-agent-subscribe.tool-result-ordering.test.ts,src/gateway/sessions-resolve-projection.test.ts, andui/src/pages/chat/talk/startup-input.test.ts. Verified these three files exactly match the pinned base.Per-shard retained scope and static metrics
Static declaration sites count source-level
it/testcall sites, not runtime-expanded table cases. Consolidation can reduce declaration sites without deleting behavior cases. Metrics below compare the actual retained files against the pinned main base, not the earlier source report snapshot. Each source report records coverage as not run under CI-only mode.Retained files by shard (paths share the stated directory):
src/daemon/:launchd-ancestry.test-support.ts,launchd-foreign-jobs.test.ts,launchd-install-authority.test.ts,launchd.integration.e2e.test.ts,launchd.test.ts.src/agents/embedded-agent-runner/:run.codex-app-server-recovery.test-support.ts,run.compaction-runtime.test-support.ts,run.compaction-runtime.test.ts,run.overflow-compaction.loop.test.ts,run.overflow-compaction.test.ts,run.prompt-timeout-fallback.test-support.ts.src/infra/:system-disks.test.ts,system-events.test.ts,system-presence.test.ts,system-run-approval-binding.test.ts,system-run-approval-binding.wrappers.test.ts,tailscale.claim.test.ts,tailscale.test.ts,telemetry.test.ts.src/agents/:embedded-agent-subscribe.handlers.lifecycle.test.ts,embedded-agent-subscribe.model-state.test.ts,embedded-agent-subscribe.partial-reply-lifecycle.test.ts,embedded-agent-subscribe.subscribe-embedded-agent-session.source-reply-suppression.test.ts,embedded-agent-subscribe.tools.test.ts.src/gateway/worker-environments/:worker-turn-transcript-target.test.ts,workspace-accepted-sync.test.ts,workspace-actual-manifest.test.ts,workspace-git-base.test.ts,workspace-hash-memo.test.ts,workspace-large-inventory.test.ts,workspace-local-reconciliation.test.ts,workspace-manifest-worker.test.ts,workspace-manifest-fixtures.test-support.ts.src/gateway/:sessions-patch-catalog-queue.e2e.test.ts,sessions-patch.test.ts,sessions-resolve.resident.test.ts,sessions-resolve.test.ts.test/scripts/:openclaw-e2e-instance.test.ts,openclaw-live-updater.test.ts.ui/src/pages/chat/talk/:input.test.ts,lifecycle.test.ts,ordering.test.ts,session.test.ts,split.test.ts,transcript-queue.test.ts.src/commands/models/:accounts.test.ts,aliases.test.ts,auth-api-key.test.ts,auth.test.ts,auth.minimax-chat.test.ts.test/scripts/:ensure-playwright-chromium.test.ts,extension-boundary-selection.test.ts,extension-import-boundary-checker.test.ts,extension-test-plan.test.ts,fixture-lifetime.test.ts,frv-cancellation.test.ts,frv.test-support.ts.src/agents/embedded-agent-runner/:model.compat-route.test.ts,model.provider-runtime.test-support.ts,model.static-catalog.snapshot-cache.test.ts.