Skip to content

test(slack,cron,hooks): remove low-value tests (batch d437) - #180371

Merged
steipete merged 23 commits into
mainfrom
tcr/land-d437-1792650224
Oct 22, 2026
Merged

steipete merged 23 commits into
mainfrom
tcr/land-d437-1792650224

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Frozen-lockfile install passed using the existing Node 26.12.1 runtime. The default Node 26.12.0 was correctly rejected by main's preinstall minimum.
  • Direct node_modules/.bin/oxfmt --write <changed files> and oxfmt --check <changed files>: passed.
  • Direct 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.
  • Per operator CI-only instruction: no local Vitest, check-changed, tsgo, or Testbox execution. Hosted openclaw/ci-gate is the runtime/typecheck proof.
  • Independent review completed: four accepted coverage findings restored (session scopes, operator scopes, bootstrap normalization, migrated cron jobs). The correction review is clean.
  • Two hook findings were rejected after source verification: install.runtime.ts directly reexports the unchanged shared install owners. src/infra/install-source-utils.test.ts asserts npm script suppression; install-from-npm-spec.test.ts asserts integrity rejection; install-package-dir.test.ts asserts dependency script suppression; archive.test.ts covers ZIP and TAR traversal.
  • First-head CI found a lost media-tool union narrowing, an excess-property fixture error, and recursive SQLite query-observer mocks. All three were repaired from the logs. The query observer uses the prior-main native-method wrappers; its focused correction review is clean. No failing test was deleted or weakened to repair CI.
  • The Slack join-runtime mock now preserves original exports before overriding its one fixture function; the ratchet correction review is clean. The three obsolete mock-baseline rows for the deleted member/pin suites were removed after CI identified them.
  • A subsequent CI run caught an incorrect bootstrap expectation introduced during review correction. The shared device-auth normalizer deliberately expands admin to read/write. The bootstrap test file is now identical to pinned main, retaining all its original cases and expectations.

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/test declaration counts, not expanded or executed case counts.

Shard Test/support LOC before → after Declarations before → after Coverage report
y0469 3475 → 3171 79 → 72 Not measured (CI-only)
y0470 2214 → 2003 65 → 63 Not measured (CI-only)
y0471 4120 → 3679 103 → 96 Not measured (CI-only)
y0472 3747 → 3594 78 → 75 Not measured (CI-only)
y0473 2197 → 2146 41 → 41 Not measured (CI-only)
y0474 2182 → 2065 93 → 91 Not measured (CI-only)
y0475 1688 → 1661 24 → 24 Not measured (CI-only)
y0476 0 → 0 0 → 0 Skipped; no diff
y0477 2829 → 2571 47 → 45 Not measured (CI-only)
y0479 3614 → 3200 93 → 78 Not measured (CI-only)

y0469

  • extensions/slack/src/monitor/events/agent.test.ts
  • extensions/slack/src/monitor/events/home.test.ts
  • extensions/slack/src/monitor/events/interactions.test.ts
  • extensions/slack/src/monitor/events/members.test.ts
  • extensions/slack/src/monitor/events/pins.test.ts
  • extensions/slack/src/monitor/events/reactions.test.ts

y0470

  • extensions/llama-cpp/src/llama-server-extract.test.ts
  • extensions/llama-cpp/src/llama-server-install.test.ts
  • extensions/llama-cpp/src/llama-server-vc-runtime.test.ts
  • extensions/llama-cpp/src/managed-media.test.ts
  • extensions/llama-cpp/src/media-catalog.test.ts
  • extensions/llama-cpp/src/media-provider.test.ts
  • extensions/llama-cpp/src/media-tool.test.ts

y0471

  • src/hooks/gmail-ops.test.ts
  • src/hooks/gmail-setup-utils.test.ts
  • src/hooks/gmail-watcher.integration.test.ts
  • src/hooks/gmail-watcher.test.ts
  • src/hooks/gmail.test.ts
  • src/hooks/hooks-install.test.ts
  • src/hooks/hooks-lifecycle.e2e.test.ts
  • src/hooks/install-policy-warning.test.ts
  • src/hooks/install.test.ts
  • src/hooks/installs.test.ts
  • src/hooks/loader.test.ts
  • src/hooks/message-hook-mappers.test.ts
  • src/hooks/plugin-hooks.e2e.test.ts
  • src/hooks/plugin-hooks.test.ts
  • src/hooks/workspace.test.ts

y0472

  • src/transcripts/auto-start-retry.test.ts
  • src/transcripts/library.query-budget.test-support.ts
  • src/transcripts/library.query-budget.test.ts
  • src/transcripts/library.search.test.ts
  • src/transcripts/library.test.ts
  • src/transcripts/status.producer.test.ts
  • src/transcripts/status.test.ts
  • src/transcripts/store.test.ts

y0473

  • ui/src/pages/cron/cron-page.lifecycle.test.ts
  • ui/src/pages/cron/cron-page.test.ts
  • ui/src/pages/cron/view-run-history.test.ts
  • ui/src/pages/cron/view.test-support.ts

y0474

  • src/shared/async-work-resources.test.ts
  • src/shared/async-work-scope.test.ts
  • src/shared/chat-message-content.test.ts
  • src/shared/config-eval.test.ts
  • src/shared/entry-status.test.ts
  • src/shared/global-singleton.test.ts
  • src/shared/json-schema-defaults.test.ts
  • src/shared/pid-alive.test.ts
  • src/shared/usage-aggregates.test.ts
  • src/shared/usage-overview.test.ts

y0475

  • extensions/openshell/src/backend.e2e.test.ts
  • extensions/openshell/src/backend.exec-workdir.test.ts
  • extensions/openshell/src/mirror.test.ts
  • extensions/openshell/src/openshell-fs.test-support.ts

y0476

No files changed; all three commits skipped.

y0477

  • src/proxy-capture/proxy-server.managed-proxy.test.ts
  • src/proxy-capture/proxy-server.test.ts
  • src/proxy-capture/runtime.compat.test-support.ts
  • src/proxy-capture/runtime.lifecycle.test.ts
  • src/proxy-capture/store-readonly.test.ts
  • src/proxy-capture/store.sqlite.test.ts

y0479

  • src/cron/active-jobs-manual-run.test.ts
  • src/cron/active-jobs.test.ts
  • src/cron/cli-thinking.gateway.test.ts
  • src/cron/command-runner.test.ts
  • src/cron/config-revision.test.ts
  • src/cron/delivery-preview.current-origin.test.ts
  • src/cron/delivery-preview.test.ts
  • src/cron/delivery.test.ts
  • src/cron/inference-binding-executor.test.ts
  • src/cron/inference-binding.test.ts
  • src/cron/public-job.test.ts
  • src/cron/schedule.test.ts
  • src/cron/scratch-store.test.ts

Additional shrink-only metadata: config/test-mock-exports-baseline.txt, scripts/lib/ci-proof-test-inventory.mts, scripts/lib/ci-test-native-bun-qualification.json, and test/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.

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.
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T06:53:35.323853Z b08160c New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:29
@steipete
steipete disabled auto-merge October 22, 2026 06:33
@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:39
@steipete
steipete disabled auto-merge October 22, 2026 06:44
@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +12 to +14
vi.mock("openclaw/plugin-sdk/channel-join-intro-runtime", () => ({
reportChannelRoomJoin: reportJoinMock,
}));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@steipete
steipete disabled auto-merge October 22, 2026 06:56
@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:58
@steipete

steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

The CI planner failure is pre-existing on main. The scheduled hourly run for main 4d294053ad54323a662390bdbfd2044e40d019d7 fails test/scripts/ci-changed-node-test-plan.source-owners.test.ts → retains affected owner tests for src/channels/message-access/operator-authority.test-support.ts at the same expectProtectedOwnerExpansion assertion, with the same unexpected src/auto-reply/reply/commands-plugin.scheduled-turns.test.ts entry.

Main proof: https://github.com/openclaw/openclaw/actions/runs/39736303636/job/119682867483
PR occurrence: https://github.com/openclaw/openclaw/actions/runs/39735952476/job/119682377027

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 2c72eef09969d3bbc2424c017d71dbd621268224: 54 CI jobs passed, including all changed-test jobs, typechecks, and baseline ratchets. The only substantive failure is the same planner assertion; the CI gate failure is its aggregate. Final-head occurrence: https://github.com/openclaw/openclaw/actions/runs/39738505703/job/119690374774

Current main was refreshed to 02dcc3dd417f5596a1a9c4e7bf7ecf34c1c7371d. A newer UI resource-projection test-helper refactor does not change this owner-expansion assertion or its missing scheduled-turns expected entry. The reported failure is still present in current source. All batch-caused failures are repaired. This is the operator-authorized inherited-only CI exception, not a claim that CI is green.

@steipete
steipete disabled auto-merge October 22, 2026 07:08
@steipete
steipete enabled auto-merge (squash) October 22, 2026 07:08
@steipete
steipete merged commit 04a0bdf into main Oct 22, 2026
135 of 138 checks passed
@steipete
steipete deleted the tcr/land-d437-1792650224 branch October 22, 2026 07:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant