Repository navigation
test(discord,qa-lab,core): remove low-value tests (batch d279) - #177175
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. |
14e95ce to
ee8c381
Compare
6466aac to
5448931
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates test fixtures and assertions, removes redundant cases, and deletes obsolete mock-baseline entries. Example: A Matrix QA CLI ignores SIGTERM and exceeds its 500 ms timeout.
Review scores
ProductKind: Test only · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authorized cleanup preserves the reviewed regression contracts, with no actionable findings; required CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherVitest suites feed synthetic requests, isolated state, and subprocess fixtures into existing production owners and assert their observable results. flowchart LR
A[Test cases] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Isolated state and transports]
D --> E[Results and lifecycle events]
E --> F[Regression assertions]
Technical reviewBest possible solution: Land the consolidation with distinct regression assertions intact once the existing required CI gate passes. Do we have a high-confidence way to reproduce the issue? This is test maintenance rather than a reported product defect; source inspection confirms repeated scaffolding and retained regression scenarios. Is this the best way to solve the issue? The consolidation uses existing fixture owners and preserves the reviewed behavioral distinctions without introducing production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1ebcfbfd79fb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3460, Other -9. Total -3469 across 53 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 19, 2026, 6:03 AM ET / 10:03 UTC. |
Model the documented standalone benchmark from #177195 as a production Knip entry. Remove the unused TTS test-support alias left by #177175; production Talk continues to use the canonical speech-text fallback directly. Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by #177219.
…law#177175) * test(discord): deslop x8360 tests * test(discord): deslop x8360 tests * test(qa-lab): deslop x8361 tests * test(qa-lab): deslop x8361 tests * test(qa-lab): deslop x8361 tests * test(markdown-core): deslop x8364 tests * test(markdown-core): deslop x8364 tests * test(markdown-core): deslop x8364 tests * test(daemon): deslop x8363 tests * test(daemon): deslop x8363 tests * test(daemon): deslop x8363 tests * test(a2a): deslop x8365 tests * test(a2a): deslop x8365 tests * test(web-search): deslop x8370 tests * test(logging): deslop x8369 tests * test(logging): deslop x8369 tests * test(process): deslop x8366 tests * test(process): deslop x8366 tests * test(process): deslop x8366 tests * test(gateway): deslop x8368 tests * test(gateway): deslop x8368 tests * test(gateway): deslop x8368 tests * test(channels): deslop x8374 tests * test(worktrees): deslop x8367 tests * test(worktrees): deslop x8367 tests * test(worktrees): deslop x8367 tests * test(zalouser): deslop x8372 tests * test(zalouser): deslop x8372 tests * test(zalouser): deslop x8372 tests * test(tts): deslop x8371 tests * test: repair batch d279 fixture contracts * test: preserve cross-platform and corruption coverage * test: fix parameterized cleanup and CLI output assertions * test: preserve isolated mocks and callback contracts * test: prune documented mock isolation baseline entries
Model the documented standalone benchmark from openclaw#177195 as a production Knip entry. Remove the unused TTS test-support alias left by openclaw#177175; production Talk continues to use the canonical speech-text fallback directly. Validated 58 focused tests, CLI help, targeted typecheck and lint, formatting, and P2 review. All three deadcode scans ran: unused files are clean; full-tree dependencies and exports retain only the unrelated BroadcastFrame type introduced by openclaw#177219.
What Problem This Solves
Test suites repeat fixture construction, mock setup, and assertion scaffolding, making the behavior they protect harder to follow. This maintainer-requested batch consolidates that scaffolding and removes redundant cases.
User Impact
No production behavior, public API, configuration, or migration changes. Production LOC: +0 / -0. Test and test-support LOC: +6,041 / -9,607, net -3,566 across 52 files, relative to base
041bcf8a3e9c99737d016001dd9d39fb7f2c3f1e.The mock-exports baseline additionally shrinks by nine obsolete entries: +0 / -9. Total diff: 53 files, +6,041 / -9,616, net -3,575.
Why This Change Was Made
Replays all 30 supplied campaign commits in order onto the pinned base. Shared fixtures and table-driven cases keep security, cancellation, ordering, lifecycle, and protocol assertions visible without repeated setup. This is source simplification, not a measured runtime-speed improvement.
Replay decisions
No commit was skipped entirely. Conflicting file-level rewrites were dropped where current main has additional regression cases or changed fixture ownership:
ad57c70bf9a: keep the preceding frontmatter cleanup; drop this commit's frontmatter rewrite so main's JSON5, malformed YAML, delimiter, and field-recovery cases remain.6e4e9719392ande45e4731666: drop the two systemd scope/identity rewrites; keep the first commit's cleanup and all newer account, start-policy, and custody tests. Apply the other daemon files.887c5a1cadf: preserve main's valid-request rate-limit sequence rather than reintroduce the old invalid-request sequence. Keep its separate schema-invalid request regression and expanded capability table.338472c3208: drop the HTTP file rewrite, retaining the preceding HTTP cleanup and main's expanded cases; apply the other A2A files.fc82bbb1647andb87bbd30ba1: drop log-tail rewrites entirely; preserve main's expanded truncation, rotation, directory, and empty-file coverage. Apply the other logging files.846f2b4986e,efcdac35df6, and2ac424ddfd8: drop service-branches rewrites entirely; preserve main's shared-dirty checkout, rebase, bisect, and branch-inventory cases. Apply template-cache and template-registry cleanup.b87bbd30ba1, retaining earlier clean logging cleanup.host-scope-settlement.test.tsandscenario-runtime-e2ee-shared.test.ts, retaining their base fixtures and coverage rather than introducing compatibility machinery or fabricated full clients.b8cf2f347f7, refactor(process): remove private options and unread results #177134). Dropped allresource-host.test.tscleanup instead of reviving the retired API.Per-shard inventory
LOC includes changed test-support files. Declaration counts are static
it/testcall sites (including tables), not expanded runtime cases. Counts are from the final replay versus its pinned main base, not the older shard report snapshots.Files by shard
extensions/discord/src/monitor/{thread-bindings.authority.test.ts,thread-bindings.compatibility.test-support.ts,thread-bindings.lifecycle.test-support.ts,thread-bindings.lifecycle.test.ts,threading.auto-thread.test.ts,threading.starter.test.ts}.extensions/qa-lab/src/live-transports/matrix/scenarios/{scenario-runtime-cli.test.ts,scenario-runtime-e2ee-cli-account.test.ts,scenario-runtime-e2ee-destructive.test.ts,scenario-runtime-state-files.test.ts}.packages/markdown-core/src/{frontmatter.test.ts,ir.test.ts,render-aware-chunking.test.ts,render.annotations.test.ts}.src/daemon/{systemd-service-files.scope.test.ts,systemd-service-identity.test.ts,systemd-system.test.ts,systemd-unavailable.test.ts,systemd-user-transport.test.ts}.extensions/a2a/src/{channel.test.ts,http.test.ts,inbound.test.ts,outbound.test.ts}.src/web-search/{runtime-configuration.test.ts,runtime-snapshot.test.ts,runtime.test.ts}.src/logging/{logger-redaction-behavior.test.ts,redact-large-text-security.test.ts,subsystem.test.ts}.src/process/spawn-broker/{execa.test.ts,host.test.ts}.src/gateway/{server.agent.subagent-delivery-context.test.ts,server.config-agent-mutations.test-support.ts,server.config-security-policy.test.ts,server.device-pair-approve-authz.test.ts,server.incognito-transcript-reconcile.test.ts,server.node-pairing-auto-approve.test.ts,server.sessions.reset-hooks.succession.test.ts,server.sessions.worker-placement-order.test.ts}.src/channels/plugins/{setup-wizard-helpers.test.ts,setup-wizard.test.ts,status.test.ts}.src/agents/worktrees/{template-cache.test.ts,template-registry.test.ts}.extensions/zalouser/src/{tool.test.ts,zalo-js.credentials.test.ts,zalo-js.listener.test.ts,zalo-quote-metadata.test.ts}.src/tts/{tts-runtime-routing.test.ts,tts-streaming.resources.test.ts,tts-summary.resources.test.ts,tts-summary.selection.test.ts}.No changed file matches the base's CODEOWNERS rules.
Evidence
node_modules/.bin/oxfmt --write <changed files>passed, including the CI repair.node_modules/.bin/oxlint -c .oxlintrc.json <changed files>exited 0, including the CI repair.git diff --check 041bcf8a3e9c99737d016001dd9d39fb7f2c3f1epassed; working tree clean.openclaw/ci-gateselects and runs hosted proof from this diff.geteuidfixture setup, and retain the invalid idle-template corruption/rebuild assertion after readers settle. Rejected: the private-peer query finding does not apply to the exercised path; the private-route test already returns a version only forVersionqueries andnullfor unit queries. Theconnection()helper is used only for version admission or deliberately failing later connections. Follow-up reviews of the accepted repairs, parameterized-cleanup/CLI-output fixes, and final static-check repairs were scoped-clean.