Repository navigation
test(slack,cron,hooks): remove low-value tests (batch d437) - #180371
Conversation
Keep resource cancellation in async-work-scope foreground-settlement tests and cleanup retention in the resources GC test. Keep repeated map resets in gateway-cli/run-loop SIGUSR2 restart coverage. Keep bootstrap allowlist and mobile-full normalization in infra/device-bootstrap issuance and binding tests. Keep full session-create and patch authorization in Gateway workspace-policy and method-scopes tests, malformed placement admission in server-methods.placement-authorization, and Talk scope implications in method-scopes.own-session and server-plugin-in-process-dispatch.scopes. Usage model collision aggregation retains the direct identity checks. No production changes; CI-only validation: oxfmt, plain oxlint, and diff-check.
Move usage aggregate cases into the overview suite and async resource cases into the scope suite, sharing their existing fixtures and lifecycle cleanup. Retain all cases and the embedded GC probe unchanged. Reuse exact-path procfs fixtures for dynamic PID reads. Both source and destination test files use the existing shared-core and unit-fast glob routing. Remove only the deleted aggregate file from native Bun qualification. CI-only validation: oxfmt, plain oxlint, and diff-check; no test or coverage runs.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
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: b08160ca8f
ℹ️ 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".
| vi.mock("openclaw/plugin-sdk/channel-join-intro-runtime", () => ({ | ||
| reportChannelRoomJoin: reportJoinMock, | ||
| })); |
There was a problem hiding this comment.
Reconcile the moved mock with the ratchet baseline
When the mandatory check:test-mock-exports ratchet runs, this new closed first-party mock is an unapproved addition, while config/test-mock-exports-baseline.txt still contains three allowances for the deleted members.test.ts and pins.test.ts files. The checker treats the new factory as added debt and the stale allowances as an unpruned shrink, returning failure; preserve the real exports or add the required isolation justification, then prune the deleted-file entries.
AGENTS.md reference: AGENTS.md:L98-L98
Useful? React with 👍 / 👎.
|
The CI planner failure is pre-existing on main. The scheduled hourly run for main Main proof: https://github.com/openclaw/openclaw/actions/runs/39736303636/job/119682867483 This batch does not change the failing test or the owner-expansion implementation. Its protected-inventory edit only removes the deleted Slack member/pin files; it does not change the scheduled-turns owner. Final head Current main was refreshed to |
…#180371) * test(slack): deslop y0469 tests * test(llama-cpp): deslop y0470 tests * test(hooks): deslop y0471 tests * test(hooks): consolidate y0471 owner proof * test(hooks): remove shared-owner replays in y0471 * test(transcripts): deslop y0472 tests * test(transcripts): consolidate y0472 family fixtures * test(transcripts): consolidate y0472 legacy fixtures * test(shared): deslop y0474 tests * test(shared): remove duplicated y0474 boundary coverage Keep resource cancellation in async-work-scope foreground-settlement tests and cleanup retention in the resources GC test. Keep repeated map resets in gateway-cli/run-loop SIGUSR2 restart coverage. Keep bootstrap allowlist and mobile-full normalization in infra/device-bootstrap issuance and binding tests. Keep full session-create and patch authorization in Gateway workspace-policy and method-scopes tests, malformed placement admission in server-methods.placement-authorization, and Talk scope implications in method-scopes.own-session and server-plugin-in-process-dispatch.scopes. Usage model collision aggregation retains the direct identity checks. No production changes; CI-only validation: oxfmt, plain oxlint, and diff-check. * test(shared): consolidate y0474 usage and async families Move usage aggregate cases into the overview suite and async resource cases into the scope suite, sharing their existing fixtures and lifecycle cleanup. Retain all cases and the embedded GC probe unchanged. Reuse exact-path procfs fixtures for dynamic PID reads. Both source and destination test files use the existing shared-core and unit-fast glob routing. Remove only the deleted aggregate file from native Bun qualification. CI-only validation: oxfmt, plain oxlint, and diff-check; no test or coverage runs. * test(openshell): deslop y0475 tests * test(cron): deslop y0473 tests * test(proxy-capture): deslop y0477 tests * test(proxy-capture): consolidate y0477 fixtures * test(cron): deslop y0479 tests * test(cron): consolidate y0479 test families * test(cron): consolidate y0479 public projection fixtures * test: preserve reviewed boundary coverage and fixture narrowing * test(transcripts): retain native query observers and open input fixture * test(shared): retain canonical bootstrap scope expectations * test(slack): preserve join runtime exports in moved mock * test(slack): prune mock baselines for deleted event suites
What Problem This Solves
Consolidates repeated test fixtures and removes duplicate owner-level proof from campaign batch d437.
User Impact
No production behavior change. This is test/support maintenance; runtime production LOC is unchanged. Distinct authority, cleanup, migration, and recovery regressions remain protected.
Why This Change Was Made
Replayed 18 of the 30 supplied commits onto pinned main
47eaf429b321cc60ab0fbe89be8e3002dc48c44b. Conflicting dependent consolidations were dropped rather than reverting newer main coverage. The retained changes share fixture setup, move related cases into existing suites, remove duplicate assertions, and shrink deleted-file test-routing entries.Conflict resolutions retained main's shared Slack helpers and session-event API, llama.cpp missing-library diagnostics and current artifact resolver, the entire newer transcript-summary suite, newline-preserving message extraction, the OpenShell core suite, and three current cron UI suites. Proxy capture retains main's current lifecycle/store setup while sharing equivalent terminal-record and persisted-capture assertions. Cron public projections retain all scheduler-private fields in the fixture and assert the complete public state plus nonmutation.
No CODEOWNERS-listed restricted path is touched.
Evidence
node_modules/.bin/oxfmt --write <changed files>andoxfmt --check <changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0 (62 changed TS/JS files, including subsequent focused corrections).git diff --check 47eaf429b321cc60ab0fbe89be8e3002dc48c44b: passed.openclaw/ci-gateis the runtime/typecheck proof.install.runtime.tsdirectly reexports the unchanged shared install owners.src/infra/install-source-utils.test.tsasserts npm script suppression;install-from-npm-spec.test.tsasserts integrity rejection;install-package-dir.test.tsasserts dependency script suppression;archive.test.tscovers ZIP and TAR traversal.The supplied shard reports explicitly say tests and coverage were not run under CI-only mode. No measured coverage totals or <=1% coverage-loss claim are available for these shards. The original reduction targets were not met; distinct contracts were retained rather than deleting toward a percentage.
Diff LOC: test files +4035/-6057; test support +162/-116; test routing/baseline metadata +0/-10; production +0/-0. Net reduction: 1,986 lines.
Per-shard current-main replay accounting and touched files
Counts below cover only files changed in this PR, including deleted files. Declarations are static
it/testdeclaration counts, not expanded or executed case counts.y0469
extensions/slack/src/monitor/events/agent.test.tsextensions/slack/src/monitor/events/home.test.tsextensions/slack/src/monitor/events/interactions.test.tsextensions/slack/src/monitor/events/members.test.tsextensions/slack/src/monitor/events/pins.test.tsextensions/slack/src/monitor/events/reactions.test.tsy0470
extensions/llama-cpp/src/llama-server-extract.test.tsextensions/llama-cpp/src/llama-server-install.test.tsextensions/llama-cpp/src/llama-server-vc-runtime.test.tsextensions/llama-cpp/src/managed-media.test.tsextensions/llama-cpp/src/media-catalog.test.tsextensions/llama-cpp/src/media-provider.test.tsextensions/llama-cpp/src/media-tool.test.tsy0471
src/hooks/gmail-ops.test.tssrc/hooks/gmail-setup-utils.test.tssrc/hooks/gmail-watcher.integration.test.tssrc/hooks/gmail-watcher.test.tssrc/hooks/gmail.test.tssrc/hooks/hooks-install.test.tssrc/hooks/hooks-lifecycle.e2e.test.tssrc/hooks/install-policy-warning.test.tssrc/hooks/install.test.tssrc/hooks/installs.test.tssrc/hooks/loader.test.tssrc/hooks/message-hook-mappers.test.tssrc/hooks/plugin-hooks.e2e.test.tssrc/hooks/plugin-hooks.test.tssrc/hooks/workspace.test.tsy0472
src/transcripts/auto-start-retry.test.tssrc/transcripts/library.query-budget.test-support.tssrc/transcripts/library.query-budget.test.tssrc/transcripts/library.search.test.tssrc/transcripts/library.test.tssrc/transcripts/status.producer.test.tssrc/transcripts/status.test.tssrc/transcripts/store.test.tsy0473
ui/src/pages/cron/cron-page.lifecycle.test.tsui/src/pages/cron/cron-page.test.tsui/src/pages/cron/view-run-history.test.tsui/src/pages/cron/view.test-support.tsy0474
src/shared/async-work-resources.test.tssrc/shared/async-work-scope.test.tssrc/shared/chat-message-content.test.tssrc/shared/config-eval.test.tssrc/shared/entry-status.test.tssrc/shared/global-singleton.test.tssrc/shared/json-schema-defaults.test.tssrc/shared/pid-alive.test.tssrc/shared/usage-aggregates.test.tssrc/shared/usage-overview.test.tsy0475
extensions/openshell/src/backend.e2e.test.tsextensions/openshell/src/backend.exec-workdir.test.tsextensions/openshell/src/mirror.test.tsextensions/openshell/src/openshell-fs.test-support.tsy0476
No files changed; all three commits skipped.
y0477
src/proxy-capture/proxy-server.managed-proxy.test.tssrc/proxy-capture/proxy-server.test.tssrc/proxy-capture/runtime.compat.test-support.tssrc/proxy-capture/runtime.lifecycle.test.tssrc/proxy-capture/store-readonly.test.tssrc/proxy-capture/store.sqlite.test.tsy0479
src/cron/active-jobs-manual-run.test.tssrc/cron/active-jobs.test.tssrc/cron/cli-thinking.gateway.test.tssrc/cron/command-runner.test.tssrc/cron/config-revision.test.tssrc/cron/delivery-preview.current-origin.test.tssrc/cron/delivery-preview.test.tssrc/cron/delivery.test.tssrc/cron/inference-binding-executor.test.tssrc/cron/inference-binding.test.tssrc/cron/public-job.test.tssrc/cron/schedule.test.tssrc/cron/scratch-store.test.tsAdditional shrink-only metadata:
config/test-mock-exports-baseline.txt,scripts/lib/ci-proof-test-inventory.mts,scripts/lib/ci-test-native-bun-qualification.json, andtest/vitest/vitest.database-worker-core-paths.mjs.Skipped commits and retained-main decisions
2f75cc7c5d871: Slack event-suite moves conflict with newer channel migration and shared harness; preserve main.f5438a42bf0af: Home-handler follow-up depends on the skipped event-suite move; existing Home suite retained.1b23385cdffce: Slack workspace/rejection fixture follow-up depends on skipped suite moves.dccca67cb96bc: llama.cpp setup consolidation conflicts with current setup harness and authored-model coverage.22bbb19b12ed7: llama.cpp owner deduplication depends on the skipped consolidation and conflicts with current setup/media coverage.f05aff20dcb86: OpenShell suite moves conflict with newer filesystem recovery and canonical backend-owner proof.0039da467f797: OpenShell fixture follow-up depends on skipped suite moves.5ff92ab0010c0: Cron UI suite moves conflict with current linked-run scrolling, metadata and reactive fixtures.ecec7226a18c5: Cron UI follow-up depends on skipped suite moves.4871f779159a9: Config suite moves conflict with current field-discard harness and cleanup.af00eba496203: Config lifecycle follow-up depends on skipped suite moves.d85c1c5687051: Config scenario follow-up depends on skipped suite moves.