Repository navigation
test(gateway, skills, cron): remove low-value tests (batch d262) - #176775
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. |
2410b39 to
8b2d065
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b2d065e2e
ℹ️ 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".
| expect(response.body).toContain('data-initials=""<"'); | ||
| expect(response.body).toContain(""Quoted <Name>"); | ||
| expect(response.body).not.toContain(hostileDisplay); | ||
| expect(response.body).toContain('src="https://avatars.githubusercontent.com/safe-login?s=40"'); |
There was a problem hiding this comment.
Retain hostile-display coverage for person pages
This replacement checks the safe GitHub login plus hostile display name only on the daily-report avatar (?s=40) and removes the differentiated /reports/people/safe-login/ case (?s=72). The remaining person-page assertion uses Alice for both login and display, while the hostile renderer fixture likewise uses the same value for both, so a regression that passes display as the avatar login specifically in renderPersonPage would now go undetected and break the user's GitHub avatar. Retain the safe-login/hostile-display assertion on the person-detail route.
AGENTS.md reference: AGENTS.md:L78-L80
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and removes repeated cases across Gateway, skills, cron, auth, boards, and Team Reports suites. Example: Team Reports renders /reports/people/safe-login/ with a hostile display name.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored cleanup open: the consolidation is useful, but it removes a distinct person-page avatar regression test. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherVitest fixtures drive production subsystem operations and compare their results, persisted state, transport output, and lifecycle events against expected contracts. flowchart LR
A[Vitest suites] --> B[Shared fixtures]
B --> C[Production subsystem owners]
C --> D[Results and persisted state]
D --> E[Contract assertions]
E --> F[Hosted CI gate]
Technical reviewBest possible solution: Keep the fixture consolidation while restoring the safe-login and hostile-display assertions through the person-detail HTTP route. Do we have a high-confidence way to reproduce the issue? Source comparison establishes the coverage loss: the person-detail request disappears, and remaining hostile-renderer fixtures cannot distinguish login from display; no tests were executed during this read-only review. Is this the best way to solve the issue? Shared fixtures and retained boundary cases are appropriate, but replacing coverage of one renderer with another does not preserve the original contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 05ba3b9f6489. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -154, Tests -2317. Total -2471 across 36 files. Added test files: 2. 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 18, 2026, 10:45 PM ET / October 19, 2026, 02:45 UTC. |
|
Settlement evidence for head The rebase includes #176799's sidebar import repair. All six originally failing type jobs now pass, and every selected test job passed in PR CI run 39190017756. The only remaining substantive failure is check-test-types / extension-test-types: TS2353 at The same job, step, file, line, and compiler error fail on the latest scheduled main CI: run 39191176869, job 117864340952, at main head Landing under the explicitly authorized proven-on-main exception. No timeout, skip, assertion, production behavior, or dependency changes were made during settlement. Plain oxlint, oxfmt, and |
…nclaw#176775) * test(skills): deslop x8156 tests * test(skills): deslop x8156 tests * test(skills): deslop x8156 tests * test(auto-reply): deslop x8155 tests * test(auto-reply): deslop x8155 tests * test(auto-reply): deslop x8155 tests * test(gateway): deslop x8159 tests * test(gateway): deslop x8159 tests * test(gateway): deslop x8159 tests * test(cron): deslop x8158 tests * test(cron): deslop x8158 tests * test(cron): deslop x8158 tests * test(auth-profiles): deslop x8161 tests * test(auth-profiles): deslop x8161 tests * test(auth-profiles): deslop x8161 tests * test(doctor): deslop x8160 tests * test(doctor): deslop x8160 tests * test(doctor): deslop x8160 tests * test(boards): deslop x8162 tests * test(boards): deslop x8162 tests * test(boards): deslop x8162 tests * test(team-reports): deslop x8164 tests * test(team-reports): deslop x8164 tests * test(team-reports): deslop x8164 tests * test(cron): deslop x8167 tests * test(boards): preserve standalone widget limit coverage * test: retain boundary coverage and repair batch fixture types * test: drop regressing fixture rewrites from cleanup batch
What Problem This Solves
Repeated fixture and assertion scaffolding makes these suites harder to maintain.
User Impact
No intended user-visible or production runtime change. Consolidates test fixtures and redundant cases while retaining distinct authorization, lifecycle, migration, protocol, and delivery assertions. No measured runtime speedup or coverage preservation percentage is claimed.
Why This Change Was Made
Replayed 25 of the 30 supplied commits onto pinned main
b3511e692904831a2fb01385b9dab4c33e379237, preserving their messages. Test/support LOC: +6077/-8548 (net -2471), across 36 files. Production runtime LOC: +0/-0. Gateway test helpers are counted as support, not runtime code.Replay decisions
c0f640558226aeab667fe5dcd5ac2f10a341ef40and50225f24b4f95d4a2bf2db8da9433f3800993965(x8157). Their coupled fixture rewrites conflict with main's newer request-start lifecycle structure and exact event-order assertions. Kept current main for the entire shard.src/auto-reply/reply/before-deliver.test.ts. Kept main's expanded raw/prepared dispatch, media-selection, and delivery-custody cases. The other six files replayed.f633ac3e289f9dc931b005c63a5dc4183004a908,e3ceab2b76da0b7547335beb9f68aa03d40d4727, and807995d1d0317516edd066f0b64955b6bdac6358(x8163). Main changed or retired the overlapping reload/subagent helpers; kept current main rather than restore removed paths.usage.write-admission.test.ts, preserving main's observation timestamp and admission cases. Kept the first commit's nonconflicting inherited-owner cleanup, but dropped later rewrites to that file to retain newer delayed-WHAM success/ordering coverage.board-store.test.ts: the new widget-limit test remains a separate top-level test, not nested inside the ownership table.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <36 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <36 changed TS files>: exit 0 after the board test-boundary correction.git diff --check b3511e692904831a2fb01385b9dab4c33e379237: passed.openclaw/ci-gateis the behavior/typecheck proof and merge gate. No Testbox leases created.Review and CI repairs
Initial CI: https://github.com/openclaw/openclaw/actions/runs/39186841833. Auto-merge was disabled while repairing batch-caused lint/type failures and five accepted independent-review findings.
Second CI: https://github.com/openclaw/openclaw/actions/runs/39187578656. All typecheck and mock-export failures from the first run were repaired. This run exposed runtime assertion/fixture regressions in cron persistence, Doctor normalization, and command-account policy, plus two type-aware lint errors.
Dropped the full cleanup of
src/cron/store.test.ts,src/commands/doctor/cron/store-migration.test.ts,src/auto-reply/reply/commands-account-policy.test.ts, andsrc/gateway/test-helpers.server-env.test.ts; each now exactly matches the pinned main base. This preserves normalization, provenance, command-cap, account-policy, and listener-error assertions instead of weakening expectations. Added an explicit numeric comparator for the boolean owner-presence sort in the persistence test. Changed-file format, plain oxlint (exit 0), and whitespace checks pass. The first correction review was clean at P0–P2; the final delta is reviewed separately.Shard inventory
Counts are recomputed against the pinned landing base for retained files. Declarations are static line-leading
it/testcalls, not expanded executed cases. Original reports predate later commits. Every source report says coverage was not run under CI-only mode; no statement/branch totals or <=1% coverage-drop proof is available.Retained files and original shard coverage statements
x8156
src/skills/library/persistence-child.test-support.tssrc/skills/library/persistence.test-support.tssrc/skills/library/persistence.test.tssrc/skills/library/resource-read.test.tssrc/skills/library/selection-authority.test.tssrc/skills/library/service.test.tsOriginal report: Plain oxlint exited 0; formatting and diff checks passed. Tests, coverage, and check-changed were not run, per CI-only mode; hosted CI remains pending.
x8155
src/auto-reply/reply/block-reply-pipeline.test.tssrc/auto-reply/reply/channel-run-admission.test.tssrc/auto-reply/reply/channel-run-admission.x-recovery.test.tsOriginal report: Formatting,
git diff --check, and plain oxlint passed (exit 0). Tests, coverage, and check-changed were not run, per CI-only instructions. No production or external test-support files changed; no bug/flake fixes. Hosted CI remains the validation gate.x8159
src/gateway/test-helpers.config-runtime.tssrc/gateway/test-helpers.listener.test.tssrc/gateway/test-helpers.openai-mock.tssrc/gateway/tool-resolution.cron-capture.test.tssrc/gateway/tool-resolution.test.tsOriginal report: Gates: formatting,
git diff --check, and plain oxlint passed (exit 0). Tests, coverage, and check-changed were not run, per CI-only mode; runtime validation remains for hosted CI.x8158
src/cron/store.definition-integrity.test.tssrc/cron/trigger-script.admission.test.tssrc/cron/trigger-script.mcp.test.tssrc/cron/trigger-script.preparation.test.tssrc/cron/trigger-script.test.tsOriginal report: Formatting, plain oxlint (exit 0), and
git diff --checkpassed. Tests and coverage were not run under CI-only mode. No production/support changes or bug fixes.x8161
src/agents/auth-profiles/usage-state.test.tssrc/agents/auth-profiles/usage.inherited-owner.test.tssrc/agents/auth-profiles/usage.test.tsOriginal report: Formatting,
git diff --check, and plain oxlint passed. Tests, coverage, and check-changed were not run, per CI-only mode. Hosted CI remains pending; no bugs or flakes were fixed.x8160
src/commands/doctor/cron/inference-binding-migration.test.tssrc/commands/doctor/cron/schema-safety.test.tsOriginal report: Formatting, plain oxlint, and
git diff --checkpassed. Tests, coverage, and check-changed were not run, per CI-only instructions.x8162
src/boards/board-generated-identity.test.tssrc/boards/board-store.fixtures.test-support.tssrc/boards/board-store.test.tssrc/boards/sqlite-board-store.outcomes.test.tssrc/boards/sqlite-board-store.worker.test.tsOriginal report: Formatting, plain oxlint (exit 0), and diff checks passed. Tests, coverage, and check-changed were not run under CI-only mode.
x8164
extensions/team-reports/src/aggregate.test.tsextensions/team-reports/src/http.test.tsextensions/team-reports/src/reports-data.test-support.tsextensions/team-reports/src/scheduler.test.tsextensions/team-reports/src/summaries.test.tsOriginal report: Plain oxlint exited 0; formatting and
git diff --checkpassed. Tests, coverage, and typechecking were not run under CI-only instructions; hosted CI remains pending.x8167
src/cron/service.restart-catchup-pacing.test.tssrc/cron/service.stream-validation.test.tsOriginal report: Formatting,
git diff --check, and plain oxlint passed. Tests, coverage, and typechecks were not run, per CI-only mode. No production/support changes or bug fixes. Coordinator handoff: hosted CI remains pending, and this shard falls short of the reduction target.Exact diff accounting