Repository navigation
test(scripts,channels,sessions): remove low-value tests (batch d398) - #179649
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
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: 271b86d770
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f2437c2340
ℹ️ 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".
a5efa75 to
bb6e8bb
Compare
…penclaw#179649) * test(scripts): consolidate y0064 owner coverage * test(scripts): further deslop y0064 fixtures * test(telegram): deslop y0063 tests * test(telegram): consolidate y0063 dispatch family * test(release): deslop y0065 tests * test(release): consolidate y0065 release test families * test(release): share y0065 assertion harnesses * test(auto-reply): deslop y0066 tests * test(auto-reply): deduplicate y0066 owner coverage * test(worktrees): deslop y0068 tests * test(feishu): deslop y0067 tests * test(update): deslop y0069 tests * test(update): consolidate y0069 sibling coverage * test(update): share y0069 custody and command fixtures * test(config): deslop y0071 tests * test(config): consolidate cold restoration publication proof * test(gateway): deslop y0073 tests * test(gateway): consolidate y0073 session families * test(gateway): compact y0073 fixtures * test(scripts): remove unused maturity assertion helpers * test: preserve distinct contracts during batch replay * test: align batch fixtures with current owners * test(telegram): preserve owned admission audit fixture * test(telegram): await resolved admission evidence * test(telegram): preserve final delivery regression contracts * test(telegram): align new commentary cases with shared fixture
What Problem This Solves
Reduces repeated test setup and overlapping assertions in batch d398 while retaining the current main contracts.
User Impact
No intended runtime behavior change. The replay changes tests, test support, and shrink-only test metadata; production code is unchanged.
Why This Change Was Made
Consolidates sibling coverage and fixtures across scripts/release, Telegram, Feishu, update handoff, session storage, gateway sessions, and auto-reply. Initially replayed onto pinned main
d19785dd6b93054c5b59b01749a5bb1a1750a60f, then rebased ontob5aa29b1ed0fcef44ec2367dd03eb2239e55511fto incorporate newer send-denial coverage; 19 of the 30 supplied commits were applied, with 11 skipped where the current test/fixture contracts diverged.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed existing files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0 after removing two unused maturity helpers.git diff --check b5aa29b1ed0fcef44ec2367dd03eb2239e55511f: passed.openclaw/ci-gateis the runtime/type gate. No Testbox lease was created.The source shard reports explicitly say coverage was not run under CI-only mode. They contain no measured coverage totals, so no <=1% coverage claim is made. Their original counts below are historical source-shard counts, not measurements of this rebased PR. Runtime and CI timings will come from hosted CI.
Replay decisions
Whole commits skipped:
e8088f3fbe364y0063: bot-thread/DM sibling merge conflicts with newer history/thread fixtures.ecc4082f055cfy0066: memory sibling merge conflicts with newer preflight and memory fixtures.1bb032f5e1336y0068: worktree sibling merge conflicts across current branch, canonical-path, acceleration, pending-slot and provisioned coverage.1af5c61e2daf1,353e7114f922ey0067: Feishu family/owner merges depend on divergent chat, channel, streaming, send and account fixtures.361dd6dd4f26b,71c554d924493,8925c8a180e5by0070: current ACP custody/abort/owner contracts diverged; entire family preserved.d18d826de745cy0071: current selection and patch-authority fixtures diverged.0837791299adc,eb85e94248fe0y0072: budget, compaction, owner-parity and model-context fixtures diverged; entire family preserved.Partial replay decisions:
No baseline conflict required broadening a baseline; metadata removals are shrink-only.
Review and CI corrections
The initial CI run (39627619284) exposed batch-caused fixture/runtime/type/lint failures. Logs were fetched once per failed job and reused. Corrections did not use retries, timeout increases, skips, or weaker assertions.
node:assert/strictimport in the consolidated command-custody suite. The ingress test now directly narrows its admission union and awaits the resolver's real asynchronous result.89378a1d6a970was replayed but now has no retained diff after restoring both cold-restoration publication files.The second CI run (39631847031) and third run (39634640360) exposed the remaining Telegram ingress-fixture failure: unknown audit evidence. The original explicit live host owner, enabled admission audit, and context builder are retained. Source inspection showed the resolver really returns a Promise; restored
awaitand replaced assertion-only union narrowing with an explicit rejected-admission guard. The targeted repair passed independent review with no actionable P0–P2 findings. Both evidence assertions and cleanup remain intact.The later changed-extensions CI job identified stale
textsandwaitForContainingreferences in send-denial cases added to main after the initial base. Rebased ontob5aa29b1ed0fcwithout conflicts and switched those three references to the shared HTTP fixture methods. All eight send-denial cases and assertions remain intact.The final repair diffs are reviewed; fresh-head hosted CI is required before merge. No old-head failures are claimed pre-existing or waived.
Per-shard final diff counts and source-report evidence
Final counts cover only changed test/support files, including deleted files. Declarations are static call-site estimates for it/test/itUnix, not expanded runtime cases.
y0063
Source report totals: 11,593 → 11,481 LOC; declarations 195 → 194; expanded cases 299 → 298. Coverage: not run (CI-only).
extensions/telegram/src/bot-handlers.inbound-authorization.test.tsextensions/telegram/src/bot-message-avatar.test.tsextensions/telegram/src/bot-message-dispatch.fallback-topic-media.test.tsextensions/telegram/src/bot-message-dispatch.preview.telegram-http.test.tsextensions/telegram/src/bot-message-dispatch.recovery.telegram-http.test.tsextensions/telegram/src/bot-message-dispatch.telegram-http.test-support.tsextensions/telegram/src/bot-native-command-dispatch.delivery.test.tsextensions/telegram/src/bot-native-command-login.test.tsextensions/telegram/src/bot-native-command-menu-sync.test.tsextensions/telegram/src/bot.create-telegram-bot.channel-post-media.test.tsextensions/telegram/src/bot.create-telegram-bot.disabled-bindings.test.tsy0064
Source report totals: 11,513 → 11,387 LOC; declarations 274 → 271; expanded cases 432 → 432. Coverage: not run (CI-only).
test/scripts/gateway-ws-client.test.tstest/scripts/render-maturity-docs.test.tstest/scripts/setup-pnpm-store-cache-image.test.tstest/scripts/update-first-hop-package-fixtures.test.tstest/scripts/validate-release-publish-approval.test.tsy0065
Source report totals: 11,151 → 10,837 LOC; declarations 242 → 238; expanded cases 479 → 479. Coverage: not run (CI-only).
test/scripts/release-check.test.tstest/scripts/release-clawhub-children.test.tstest/scripts/release-inventory-paths.test-support.tstest/scripts/release-plan-contract.test.tstest/scripts/release-plugin-marketplace-lifecycle.test.tstest/scripts/release-prepare.test.tstest/scripts/release-publish-children.test.tstest/scripts/release-publish-closeout-preflight.test.tstest/scripts/release-publish-parent.test.tstest/scripts/release-publish-preflight-evidence.test.tstest/scripts/release-publish-state.test.tstest/scripts/release-scenarios-assertions.test.tstest/scripts/release-stable-post.test.tstest/scripts/release-stable-validation.test.tsy0066
Source report totals: 11,344 → 11,115 LOC; declarations 178 → 176; expanded cases 312 → 311. Coverage: not run (CI-only).
src/auto-reply/reply/agent-runner-result-accounting.persistence.test-support.tssrc/auto-reply/reply/agent-runner-result-accounting.persistence.test.tssrc/auto-reply/reply/agent-runner-result-accounting.restoration.test.tssrc/auto-reply/reply/agent-runner-steer-adoption.question-recovery.test.tssrc/auto-reply/reply/agent-runner-steer-adoption.worker.test.tssrc/auto-reply/reply/agent-runner.final-media-runreplyagent.test.tssrc/auto-reply/reply/agent-runner.media-paths.test.tsy0067
Source report totals: 11,447 → 10,789 LOC; declarations 294 → 277; expanded cases 420 → 419. Coverage: not run (CI-only).
extensions/feishu/src/comment-dispatcher.test.tsextensions/feishu/src/comment-handler.test.tsextensions/feishu/src/comment-reaction.test.tsextensions/feishu/src/delivery-trace.test.tsextensions/feishu/src/drive-comments-loopback.test.tsextensions/feishu/src/media-upload-contract.test.tsextensions/feishu/src/media.test.tsextensions/feishu/src/outbound.send-authority.test.tsextensions/feishu/src/outbound.test.tsextensions/feishu/src/send.concurrent.test.tsextensions/feishu/src/send.reply-fallback.test.tsextensions/feishu/src/send.test.tsextensions/feishu/src/streaming-card.error-release.test.tsextensions/feishu/src/tool-account-routing.test.tsy0068
Source report totals: 10,099 → 10,042 LOC; declarations 196 → 196; expanded cases 297 → 297. Coverage: not run (CI-only).
src/agents/worktrees/service.apfs.test.tssrc/agents/worktrees/service.diagnostics.test.tssrc/agents/worktrees/service.gc-cli.test.tssrc/agents/worktrees/service.gc-performance.test.tsy0069
Source report totals: 11,398 → 11,324 LOC; declarations 194 → 194. Coverage: not run (CI-only).
src/infra/update-install-status.test.tssrc/infra/update-managed-command-custody.test.tssrc/infra/update-managed-service-handoff-boot.test.tssrc/infra/update-managed-service-handoff-command.test-support.tssrc/infra/update-managed-service-handoff-database-contention.test.tssrc/infra/update-managed-service-handoff-database-identity.test.tssrc/infra/update-managed-service-handoff-database-recovery.test.tssrc/infra/update-managed-service-handoff-engine.test.tssrc/infra/update-managed-service-handoff-fixture.test-support.tssrc/infra/update-managed-service-handoff-foreground.test.tssrc/infra/update-managed-service-handoff-identity.test.tssrc/infra/update-managed-service-handoff-lifecycle.test-support.tssrc/infra/update-managed-service-handoff-original-owner.test.tssrc/infra/update-managed-service-handoff-result.test-support.tsy0070
Source report totals: 11,767 → 11,404 LOC; declarations 188 → 187; expanded cases 334 → 333. Coverage: not run (CI-only).
No files retained from this shard; commits skipped as above.
y0071
Source report totals: 11,850 → 11,537 LOC; declarations 181 → 180; expanded cases 287 → 286. Coverage: not run (CI-only).
src/config/sessions/session-cold-storage.lifecycle.test.tssrc/config/sessions/session-cold-storage.sync-write.test.tssrc/config/sessions/session-entry-cohort.worker.test.tssrc/config/sessions/session-entry-current-check.test.tssrc/config/sessions/session-entry-patch.operations.test.tssrc/config/sessions/session-entry-patch.test.tssrc/config/sessions/session-entry-read.memory.test.tssrc/config/sessions/session-entry-read.worker.test.tsy0072
Source report totals: 11,519 → 11,363 LOC; declarations 170 → 169; expanded cases 284 → 283. Coverage: not run (CI-only).
No files retained from this shard; commits skipped as above.
y0073
Source report totals: 11,488 → 11,070 LOC; declarations 178 → 174; expanded cases 292 → 292. Coverage: not run (CI-only).
src/gateway/server-methods/sessions-fixed-store.test-support.tssrc/gateway/server-methods/sessions-read.test.tssrc/gateway/server-methods/sessions-reset-subagent-cleanup.test.tssrc/gateway/server-methods/sessions-rewind.handler.test-support.tssrc/gateway/server-methods/sessions-rewind.storage.test.tssrc/gateway/server-methods/sessions-rewind.test.tssrc/gateway/server-methods/sessions-rewind.upstream-harness.test.tssrc/gateway/server-methods/sessions-rewind.upstream.test.tssrc/gateway/server-methods/sessions-sharing.test.tssrc/gateway/server-methods/sessions.abort-agent-scope.test.tssrc/gateway/server-methods/sessions.abort-dedupe-currentness.test.ts