Repository navigation
test(infra,scripts,plugins,ui): remove low-value tests (batch d080) - #172040
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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: b272a9af37
ℹ️ 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".
| await fs.access(startupEntryPath); | ||
| }); | ||
|
|
||
| it("preflights the replacement port when the fallback is stopped", async ({ env }) => { |
There was a problem hiding this comment.
Retain the running-fallback takeover ordering test
When a Windows startup fallback is still running and another process owns the replacement port, the deleted case was the only proof that port validation occurs before terminating the old Gateway or mutating the Scheduled Task. The remaining case here exercises an already-stopped fallback, so it would still pass if takeover were reordered to kill the running Gateway before detecting the occupied port, causing an avoidable outage; retain the running-fallback variant.
AGENTS.md reference: AGENTS.md:L85-L85
Useful? React with 👍 / 👎.
| }); | ||
| }); | ||
|
|
||
| it("falls back to plain preview text when an HTML edit renders empty", async () => { |
There was a problem hiding this comment.
Keep streaming parse-error fallback covered
When Telegram rejects the initial streaming sendMessage with a rich-entity parse error, this deletion removes the only test that verifies a plain-text retry and correct preview state. The remaining case only exercises an editMessageText empty-content error, while the other parse-error tests cover the separate durable-send funnel, so a regression in initial preview delivery could silently suppress streaming previews despite the required funnel parity.
AGENTS.md reference: extensions/telegram/AGENTS.md:L58-L63
Useful? React with 👍 / 👎.
|
The remaining red checks are inherited from main, not changes introduced by this batch:
Baseline routing followed the local-proof override: the requested focused Testbox was queued and stopped without running a payload; local macOS and isolated Linux containers were used instead. No timeout, retry count, assertion, or test selection was weakened. No CI job was rerun to chase green. The batch's original local proof remains 55 touched test files, 1,652 passing cases, nine existing skips, plus clean formatting/plain lint/diff checks and scoped-clean independent review. These inherited failures need separate main follow-up. The automatic classification labels the type failure new against the older scheduled-main cohort and the shutdown failure unknown because the compact matrix slot changed. The manual evidence above resolves both: current main reproduces the type failure, and main slot |
The test cleanup in 024b687 (#172040) removed the last external caller but left the helper exported, failing the full-tree unused-export check. Keep it private for the default fixture. No fixture behavior, assertions, or product lifecycle changes. Proof: hosted run 38559874602/job115838029156 passed the exact failed full-tree Knip export scan with zero findings (122.778s scan, 201s job), changed-file format, type-aware lint, and diff checks. One Codex review was clean. Test-support diff: +1/-1. No SQL change.
…penclaw#172040) * test(infra): deslop x2025 tests * test(scripts): deslop x2005 tests * test(daemon): deslop x2026 tests * test(telegram): deslop x2037 tests * test(browser): deslop x2028 tests * test(llama-cpp): deslop x2038 tests * test(workboard): deslop x2039 tests * test(slack): deslop x2040 tests * test(memory-wiki): deslop x2024 tests * test(flows): deslop x2042 tests
The test cleanup in e4bd5b1 (openclaw#172040) removed the last external caller but left the helper exported, failing the full-tree unused-export check. Keep it private for the default fixture. No fixture behavior, assertions, or product lifecycle changes. Proof: hosted run 38559874602/job115838029156 passed the exact failed full-tree Knip export scan with zero findings (122.778s scan, 201s job), changed-file format, type-aware lint, and diff checks. One Codex review was clean. Test-support diff: +1/-1. No SQL change.
…logging and tests: 41 conflict files Resolved against base v2026.10.8; each import kept only where the merged file uses it. Ported onto beta.4's reshaped code (the fork change kept, beta.4's mechanism taken): - heartbeat awareness dedupe: beta.4 (openclaw#169622) dropped the pre-send lifecycle recheck (`latest`); the dedupe compares the prepare-time worker read, the post-send re-read is readSessionEntryReadOnlyInWorker with readConsistency "latest". - prompt prelude: openclaw#166869's space-joiner ordering applies to `text`; the fork's version-3 Telegram carrier keeps the paragraph order (no joiner completes it). - directive acks: beta.4 removed the thinking-remap ack; the fork's queue-ack helper stays. - secret redaction: beta.4 (openclaw#169063) removed the registry snapshot scope; the fork's getLongestRegisteredSecretLength loses its scoped branch and its scoped test case. - committed-turn entry read (pending inputs): beta.4 replaced PendingInputScope.incognito with session-actor storage; the read goes through readSessionEntryReadOnlyInWorker. - persisted install records: beta.4 (openclaw#169714) made the reader async; install-persistence and the CLI test mocks use readPersistedInstalledPluginIndexInstallRecordsAsync. - sessions.patch and cron validation mock modules (fork line-cap extractions) take beta.4's readAcpSessionMetaForEntryAsync, cron-session-reader and inference-binding mocks. - test cases beta.4 removed as low-value (openclaw#172040) stay removed; the fork's own cases stay. Native in beta.4, fork side dropped: question-answer custody in prepared-assistant validation (openclaw#169306), the realtime-voice turn exception, the cron host test helper.
…visibility, tests, baselines, fixtures - cron: beta.4 moved createCronPromptExecutor into run-prompt-executor.ts; the fork's fallback attribution (requested tuple, usedFallback) and its "do not pin a fallback model to the session" rule move there. run-executor.ts is beta.4's. - chat-history compaction span (fork): openclaw#170712 deleted the host's session-history-subagent-projection; durable spans now prepare their subagent facts through the history worker's inline-visibility lookups (chat-history-compaction-span-visibility.ts) and fail closed on a missing fact. - tests beta.4 removed as low-value (openclaw#172040 and siblings) stay removed in run-session-state, agent-runner-failure-reply, mattermost monitor-ingress and gateway-request-scope; the fork's own cases stay. dispatch-from-config.ingress-retry is beta.4's file plus the fork's appended "re-presented inbound" block. - baselines by merge-base arithmetic: assertion-safety keeps only src/infra/diagnostic-events.ts 2 in the four conflicted rows (the fork's SAFETY comments clear compaction-safeguard, oauth, persisted and helpers); plugin-sdk surface budgets 3760+3 and 2195+3 for the fork's three diagnostics-otel redaction exports. - prompt-snapshot fixtures: beta.4's, to be regenerated by the snapshot tests once the tree builds.
What Problem This Solves
The audited campaign shards contain repeated cases, implementation-mirroring checks, and test-only scaffolding that increase maintenance cost without adding distinct coverage.
User Impact
No user-visible behavior change, migration, or configuration change. This batch removes a net 4,935 test lines across 55 test files. The only production-file edit makes
formatBuildAllDurationprivate inscripts/build-all.mts; its implementation and runtime callers are unchanged.Why This Change Was Made
Replays all ten audited d080 commits onto main at
33c9efd7b0b81588bd3b6f19fde6f36765ab2fae, preserving each commit subject. Removes redundant variants and moves relevant assertions into retained cases. Coverage totals below are the original in-shard campaign measurements, not a new coverage claim for this rebased tree.Replay resolution: one conflict in
ui/src/pages/labs/labs-page.test.tsx. Kept the entire current-main overlapping enablement block, including the newer Advisor enable/configure tests and existing Code Mode/provenance cases; dropped that deletion hunk. All other hunks applied; no commits skipped. Main's newer Advisor disable row and shared fixture changes remain intact. No baseline files changed. None of the changed paths matches the current CODEOWNERS rules.Production versus test split (
git diff --numstat): production +1/-1 line; tests +917/-5,852 lines (net -4,935). These are actual replay counts, not original-shard totals.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.pnpm test <all 55 touched test paths listed below> --maxWorkers=1: passed, 1,652 cases; nine existing skips; 55 files in 15 shards; 1,088.51 seconds wall time, including required artifact preparation. Slowest group was the database-backed plugin group at 293.59 seconds; it exercises real worker/database, replay, and lifecycle boundaries.node_modules/.bin/oxfmt --write <changed files>followed by--check: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0.git diff --check: passed.Hosted
openclaw/ci-gateis the broad merge gate. No Testbox lease requested or used: the selected proof runs locally and in PR CI.Per-shard replay inventory and original coverage evidence
Replay LOC/declaration counts below cover only touched tests. Declarations are static
it/testdeclarations (an each-table is one declaration), not expanded cases. Whole-shard coverage includes unchanged keeper files. Original x2038 coverage excluded an inherited-failure group; this batch makes no claim that an excluded group passed. Historical check-changed/dead-export and infrastructure gaps are not counted as current-head passes.x2025
Test LOC 4028 -> 3671 (-357); declarations 111 -> 97 (-14).
Original coverage:
covered statements 11747 -> 11738 (-9); branches 7313 -> 7297 (-16); functions 2243 -> 2240 (-3).Files:
src/infra/heartbeat-events-filter.test.ts: +12/-125src/infra/heartbeat-runner.exec-route-authority.test.ts: +1/-13src/infra/sqlite-busy-timeout.test.ts: +1/-26src/infra/sqlite-native-observer.test.ts: +3/-32src/infra/state-migrations.audit-logs.test.ts: +4/-18src/infra/update-immutable-generation.test.ts: +0/-3src/infra/update-run-contention.test.ts: +2/-29src/infra/update-run-continuation.test.ts: +1/-17src/infra/update-startup-refresh.test.ts: +2/-120x2005
Test LOC 15319 -> 13385 (-1934); declarations 299 -> 254 (-45).
Original coverage:
covered statements 7707 -> 7705 (-2); branches 6104 -> 6095 (-9).Files:
scripts/build-all.mts: +1/-1test/scripts/bench-gateway-concurrency.test.ts: +42/-180test/scripts/build-all.test.ts: +0/-24test/scripts/check-control-ui-lit-ratchet.test.ts: +0/-37test/scripts/ci-test-timings.test.ts: +29/-949test/scripts/code-mode-matrix-gateway.test.ts: +109/-765test/scripts/control-ui-parity.test.ts: +6/-32test/scripts/control-ui-plugin-i18n.test.ts: +0/-4test/scripts/docker-build-helper.test.ts: +0/-129x2026
Test LOC 6092 -> 5646 (-446); declarations 156 -> 147 (-9).
Original coverage:
covered statements 3957 -> 3957 (0); branches 3135 -> 3132 (-3); functions 680 -> 680 (0).Files:
src/daemon/launchd.test.ts: +84/-227src/daemon/schtasks.startup-fallback.test.ts: +0/-41src/daemon/systemd-stop.test.ts: +1/-3src/daemon/systemd.test.ts: +116/-376x2037
Test LOC 3922 -> 3735 (-187); declarations 88 -> 82 (-6).
Original coverage:
covered statements 6589 -> 6589 (0); branches 5104 -> 5103 (-1); functions 1263 -> 1263 (0).Files:
extensions/telegram/src/bot.create-telegram-bot.test.ts: +64/-149extensions/telegram/src/draft-stream.test.ts: +0/-66extensions/telegram/src/telegram-outbound.test.ts: +0/-36x2028
Test LOC 3566 -> 3464 (-102); declarations 124 -> 117 (-7).
Original coverage:
covered statements 2770 -> 2770 (0); branches 1695 -> 1695 (0); functions 503 -> 503 (0).Files:
extensions/browser/src/browser/cdp.helpers.test.ts: +2/-19extensions/browser/src/browser/chrome-mcp.test.ts: +0/-60extensions/browser/src/browser/pw-session.create-page.navigation-guard.test.ts: +9/-34x2038
Test LOC 3267 -> 2782 (-485); declarations 109 -> 86 (-23).
Original coverage:
covered statements 942 -> 942 (0); branches 772 -> 771 (-1); functions 179 -> 179 (0).Files:
extensions/llama-cpp/src/llama-server-install.test.ts: +7/-174extensions/llama-cpp/src/llama-server-preset.test.ts: +19/-49extensions/llama-cpp/src/managed-media.test.ts: +41/-69extensions/llama-cpp/src/media-catalog.test.ts: +9/-41extensions/llama-cpp/src/media-provider.test.ts: +97/-238extensions/llama-cpp/src/media-setup.test.ts: +37/-103extensions/llama-cpp/src/media-tool.test.ts: +20/-41x2039
Test LOC 4743 -> 4411 (-332); declarations 120 -> 108 (-12).
Original coverage:
covered statements 2516 -> 2516 (0); branches 2135 -> 2135 (0); functions 743 -> 743 (0).Files:
extensions/workboard/src/gateway.cards-list.test.ts: +0/-21extensions/workboard/src/lifecycle-sync.test.ts: +17/-130extensions/workboard/src/store.test.ts: +1/-199x2040
Test LOC 5745 -> 5576 (-169); declarations 115 -> 113 (-2).
Original coverage:
covered statements 3965 -> 3965 (0); branches 3498 -> 3498 (0); functions 693 -> 693 (0).Files:
extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts: +60/-133extensions/slack/src/monitor/message-handler/prepare.test.ts: +5/-101x2024
Test LOC 5265 -> 4600 (-665); declarations 130 -> 105 (-25).
Original coverage:
covered statements 14237 -> 14237 (0); branches 5323 -> 5320 (-3); functions 3028 -> 3028 (0).Files:
extensions/memory-wiki/src/chatgpt-import.test.ts: +0/-103extensions/voice-call/index.call-scope.test.ts: +15/-19extensions/voice-call/index.lifecycle.test.ts: +1/-57src/agents/auth-profiles/read-only-availability.test.ts: +6/-51src/agents/auth-profiles/shared-store-bootstrap.async.test.ts: +18/-37src/process/orphaned-process.test.ts: +11/-29src/skills/workshop/review-undo.test.ts: +0/-23src/talk/client-voice-session.worker.test.ts: +6/-50ui/src/components/solid/presentation-primitives.test.tsx: +0/-28ui/src/components/solid/settings-ui.test.tsx: +0/-37ui/src/pages/labs/labs-page.test.tsx: +9/-208ui/src/pages/logs/logs-page.test.tsx: +1/-25ui/src/pages/logs/view.test.tsx: +1/-66x2042
Test LOC 4067 -> 3809 (-258); declarations 106 -> 97 (-9).
Original coverage:
covered statements 939 -> 939 (0); branches 636 -> 634 (-2); functions 159 -> 159 (0).Files:
src/flows/doctor-health-contributions.test.ts: +0/-80src/flows/doctor-health-startup.test.ts: +5/-71src/flows/memory-setup.test.ts: +43/-155