Repository navigation
test(agents,scripts,channels): remove low-value tests (batch d303) - #178127
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: 7168a8eaa2
ℹ️ 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".
| expect(authorization.source).toBe(approvalSource); | ||
| expect(authorization.policySnapshot).toMatchObject({ ask: "off" }); |
There was a problem hiding this comment.
Preserve current-policy expectations in the table
For the approvalSource === undefined row, production normalizes the authorization source to "current-policy" and omits policySnapshot (invoke-system-run.ts:804-817). These two unconditional expectations instead require undefined and a snapshot, so this test deterministically fails; retain the previous default-source expectation and only check the snapshot for the auto-review row.
AGENTS.md reference: AGENTS.md:L81-L81
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates fixtures, assertions, and table cases across agent, channel, node-host, and CI tests. Example: Node execution authorization runs with approvalSource undefined.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 5 items remain Keep this PR open: the test consolidation is useful and maintainer-directed, but four verified test failures and an introduced type error need focused repairs. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThese suites feed synthetic requests and lifecycle events into production owners, then check execution decisions, delivery, recovery, persistence, and CI planning. flowchart LR
A[Test fixtures] --> B[Agent and session owners]
A --> C[Channel adapters]
A --> D[Node execution owners]
A --> E[CI planners]
B --> F[Contract assertions]
C --> F
D --> F
E --> F
Technical reviewBest possible solution: Keep the consolidation while restoring the existing assertion semantics, completing the helper cutover, and narrowing the optional Codex harness. Do we have a high-confidence way to reproduce the issue? Pinned-source inspection and exact-head hosted CI annotations establish the assertion and missing-helper failures; the optional-harness type error is source-verifiable without executing target code. Is this the best way to solve the issue? Consolidating existing suites is appropriate, but the refactor must preserve missing-property semantics and production-normalized expectations; additional failing checks could not be attributed from the accessible annotations. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e51f71d89879. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -7212. Total -7212 across 34 files. Added test files: 0. View PR surface stats
Review metrics
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 20, 2026, 2:21 AM ET / 06:21 UTC. |
Consolidate repeated fixture and assertion setup while preserving independent behavior coverage. Retain the reviewed, CI-repaired net-shrinking patch on the pinned main base so restored coverage is not mistaken for per-commit growth. The source commits were replayed in order. CI-directed narrowing drops the agent-runner rewrite and selected registry, node-host, session, and voice-call fixture rewrites. Restore cross-store marking coverage and Blacksmith timing expectations; repair retained fixture types and mock isolation. Source commit messages: cdebcf2d897a27cfe34184e124e2ebc28fa5e88e test(crabbox): deslop z0002 tests cbe85d5d0984c02952fd2e38d6c3c8f4fa16f1c7 test(crabbox): deslop z0002 tests ae7730e1fc1dd5dfddf2ffecd7e10626979e74c8 test(crabbox): deslop z0002 tests c94b5f90dcc32a53c81d41848f4494730f78e1b5 test(scripts): deslop z0001 tests 49502ad552d0e4b00a8fc63a65b65882f9aaabb7 test(scripts): deslop z0001 tests 327b3716759f4a0c048c2b59135f530377a54ad6 test(scripts): deslop z0001 tests 72030f02df78e44a694231e53ea4821fe512e41e test(agents): deslop z0003 tests 4ab9db80060392f7a6e52d1bbf852aeadb23c3ce test(agents): deslop z0003 tests 7a3d5454de2c00039e8b2b92af96cfee85ba6d30 test(agents): deslop z0003 tests d6ef867aa9e638fd40997c5eac5180dae7128a15 test(codex): deslop z0004 tests 537d95996fa02965b7df2641858a744af0447cc2 test(codex): deslop z0004 tests 98105f96107790ad874ebe79e556f06d6264df84 test(codex): deslop z0004 tests 6a590538e8587d9669ef8d56f74eecb31d5737f8 test(auto-reply): deslop z0005 tests f58648808ce4bcdb17f3856507f3a888cad8adc7 test(auto-reply): deslop z0005 tests f60d35027e636379019324e1e291ef5dc7ae9ccf test(auto-reply): deslop z0005 tests 2c94540654ce7d789fb7f36b5e49c319e164c81b test(slack): deslop z0007 tests 63ce97a5260d1cee75084a01ec7fb11f79020fda test(slack): deslop z0007 tests c8bd0d9839acf32f30f33d7fdb052a5f29dd330f test(slack): deslop z0007 tests 61f9420b78033b66599beca367240739689dd378 test(node-host): deslop z0009 tests 3dfd098e1bd955162bc195be539df8c9fb938105 test(node-host): deslop z0009 tests 486bb5fe436e7fcf9d2466b3a6a99621509d2230 test(subagents): deslop z0008 tests 43adc903a80275fffdc5ede3323fc15a322c3445 test(subagents): deslop z0008 tests ac5966a1c18feebbffb37c8c177787cb49812295 test(subagents): deslop z0008 tests fa5b0dd2af2500eda6242b5d99dbb16450b5a43f test(voice-call): deslop z0012 tests 6ee329083edc1ed155d427920e1e3dddebeea794 test(voice-call): deslop z0012 tests fd966f5605f72563965ed10f48a8084ec320a393 test(voice-call): preserve voicemail task-prefix guard f71e9b6c764d4a9b74d2e1b44a78904376d32a72 test(ci): deslop z0006 tests f42a3806045ebb3c754b18ac05c19fbac50716eb test(ci): deslop z0006 tests 4c4c6146af7befb0c0481cd7ff1a3170f5739859 test(ci): deslop z0006 tests b61c6688c0a3088481269e4037d35737439814d2 test(auto-reply): deslop z0010 tests
7168a8e to
ec1f890
Compare
…penclaw#178127) * test: consolidate campaign fixtures (batch d303) Consolidate repeated fixture and assertion setup while preserving independent behavior coverage. Retain the reviewed, CI-repaired net-shrinking patch on the pinned main base so restored coverage is not mistaken for per-commit growth. The source commits were replayed in order. CI-directed narrowing drops the agent-runner rewrite and selected registry, node-host, session, and voice-call fixture rewrites. Restore cross-store marking coverage and Blacksmith timing expectations; repair retained fixture types and mock isolation. Source commit messages: cdebcf2d897a27cfe34184e124e2ebc28fa5e88e test(crabbox): deslop z0002 tests cbe85d5d0984c02952fd2e38d6c3c8f4fa16f1c7 test(crabbox): deslop z0002 tests ae7730e1fc1dd5dfddf2ffecd7e10626979e74c8 test(crabbox): deslop z0002 tests c94b5f90dcc32a53c81d41848f4494730f78e1b5 test(scripts): deslop z0001 tests 49502ad552d0e4b00a8fc63a65b65882f9aaabb7 test(scripts): deslop z0001 tests 327b3716759f4a0c048c2b59135f530377a54ad6 test(scripts): deslop z0001 tests 72030f02df78e44a694231e53ea4821fe512e41e test(agents): deslop z0003 tests 4ab9db80060392f7a6e52d1bbf852aeadb23c3ce test(agents): deslop z0003 tests 7a3d5454de2c00039e8b2b92af96cfee85ba6d30 test(agents): deslop z0003 tests d6ef867aa9e638fd40997c5eac5180dae7128a15 test(codex): deslop z0004 tests 537d95996fa02965b7df2641858a744af0447cc2 test(codex): deslop z0004 tests 98105f96107790ad874ebe79e556f06d6264df84 test(codex): deslop z0004 tests 6a590538e8587d9669ef8d56f74eecb31d5737f8 test(auto-reply): deslop z0005 tests f58648808ce4bcdb17f3856507f3a888cad8adc7 test(auto-reply): deslop z0005 tests f60d35027e636379019324e1e291ef5dc7ae9ccf test(auto-reply): deslop z0005 tests 2c94540654ce7d789fb7f36b5e49c319e164c81b test(slack): deslop z0007 tests 63ce97a5260d1cee75084a01ec7fb11f79020fda test(slack): deslop z0007 tests c8bd0d9839acf32f30f33d7fdb052a5f29dd330f test(slack): deslop z0007 tests 61f9420b78033b66599beca367240739689dd378 test(node-host): deslop z0009 tests 3dfd098e1bd955162bc195be539df8c9fb938105 test(node-host): deslop z0009 tests 486bb5fe436e7fcf9d2466b3a6a99621509d2230 test(subagents): deslop z0008 tests 43adc903a80275fffdc5ede3323fc15a322c3445 test(subagents): deslop z0008 tests ac5966a1c18feebbffb37c8c177787cb49812295 test(subagents): deslop z0008 tests fa5b0dd2af2500eda6242b5d99dbb16450b5a43f test(voice-call): deslop z0012 tests 6ee329083edc1ed155d427920e1e3dddebeea794 test(voice-call): deslop z0012 tests fd966f5605f72563965ed10f48a8084ec320a393 test(voice-call): preserve voicemail task-prefix guard f71e9b6c764d4a9b74d2e1b44a78904376d32a72 test(ci): deslop z0006 tests f42a3806045ebb3c754b18ac05c19fbac50716eb test(ci): deslop z0006 tests 4c4c6146af7befb0c0481cd7ff1a3170f5739859 test(ci): deslop z0006 tests b61c6688c0a3088481269e4037d35737439814d2 test(auto-reply): deslop z0010 tests * test: restore recovery fixture call and prune obsolete mock baseline
What Problem This Solves
Consolidate repetitive fixtures, assertion setup, and table cases across the campaign's scripts, recovery, agent, channel, and voice-call test shards. This is batch d303: 30 replayed commits on main
abf93bd5a1c5b39a3ff95365bc76270ec318b2e4. No production behavior, public API, or runtime files change.After review and CI-directed repairs, the retained diff changes 28 test/support files and one shrink-only baseline: 10,860 additions / 15,755 deletions (net -4,895 lines). Production: +0/-0. Test suites: +10,786/-15,565; test-only support: +74/-176;
config/test-mock-exports-baseline.txt: +0/-14, exactly the obsolete rows reported by hosted CI. Expanded-case counts below are static estimates, not runtime test counts or coverage measurements.Shard inventory
test/scripts/package-acceptance-workflow.test.tstest/scripts/crabbox-wrapper.test.tssrc/agents/main-session-recovery/main-session-restart-recovery.test.tsextensions/codex/src/app-server/run-attempt.test.tsagent-runner.runreplyagent.e2e.test.tsrewrite dropped; file restored to basetest/scripts/ci-node-test-plan.test.tsdispatch.compact-progress.test-support.ts,dispatch.preview-fallback.test.ts,dispatch.status-diagnostics.test.ts,preflight-audio.test.ts,prepare.bot-messages.test.ts,prepare.bot-threads.test.tssubagent-progress-draft.test.ts,subagent-registry.lifecycle-retry-grace.e2e.test.tssrc/node-host/:config-read.test.ts,exec-policy.test.ts,invoke-system-run-plan.shell-literals.test.ts,invoke-system-run-plan.test.ts,invoke-system-run.socket.test.ts,linux-node-plugin.integration.test.tssession.participant.test-support.ts,session.terminal-completion.test.tsextensions/voice-call/src/:call-brief.test.ts,cli-call-log.test.ts,config-migration.test.ts,config.test.ts,manager.async-store.test.ts,manager.notify.test.ts,manager.restore.test.tsSource coverage evidence
The supplied shard reports do not contain measured statement/branch coverage totals; they explicitly defer runtime tests and coverage under the operator's CI-only rule. They describe an earlier consolidation pass, so the table above is recomputed from this final replay rather than copied from their intermediate LOC figures. No claim of a measured ≤1% coverage delta is made.
Replay decisions
All 30 requested commits were replayed, including the voicemail task-prefix guard correction. No commit was skipped during replay. Subsequent CI/review fixes drop the effective z0005 rewrite and selected hunks from z0008, z0009, z0010, and z0012 as detailed below. The final branch consolidates the reviewed result on the same pinned base: the local per-commit line-cap hook rejected restoring original coverage against the intermediate reduced head, while the final patch is shrink-only against main. The normal hook validates the consolidated commit; no hook bypass is used. Original source SHAs and subjects are preserved in its commit message.
toHaveBeenCalledExactlyOnceWith("failed")assertion while applying scoped spy cleanup and table consolidation.exec-policy.test.tsrewrite to retain main's explicit-approval regression and its helper.No changed path matches the current CODEOWNERS rules. Existing ownership, lifecycle, approval, platform, and persistence cases remain subject to independent review during CI.
CI repairs and review decisions
The initial CI run exposed batch-caused type, lint, mock-isolation, and node-host expectation failures. No retries, test skips, or weakened assertions were used.
agent-runner.runreplyagent.e2e.test.ts(z0005),subagent-registry.test.ts(z0008),invoke-system-run.test.tsandinvoke-workspace.test.ts(z0009),session.test.ts(z0010), andcall-delivery-runtime.test.ts(z0012). Their fixture rewrites need broader repair than this batch warrants. The registry rewrite converted absent-field checks to object-shape matches that fail for missing optional fields; its removal preserves the original assertions.thisfixture methods, exact string sorting, and test-helper parameter types in retained changes. Removed the stale max-lines suppression and documented isolated mock owners.keeps release publication ownership and artifact boundaries wired; only a duplicate was removed. Both cited per-profile summary timeout calls already passprofilein the reviewed tree.markInterruptedfixture wrapper, preserving its assertions and using the same injected recovery context as sibling tests.subagent-registry.test.tsbyte-for-byte to the base; it introduces no new assertions or fixtures.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <28 retained changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <28 retained changed files>: exit 0.git diff --check abf93bd5a1c5b39a3ff95365bc76270ec318b2e4: passed.openclaw/ci-gateis the runtime/typecheck merge gate. Independent isolated review runs during CI; findings will be repaired before landing.