Repository navigation
test(runtime): remove low-value tests (batch d401) - #179728
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
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: ffb3e20955
ℹ️ 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".
| return { root, codexHome, reconcile }; | ||
| } | ||
|
|
||
| it("selects the first installed desktop marketplace", async () => { |
There was a problem hiding this comment.
Restore first-installed marketplace coverage
When both ChatGPT and legacy Codex desktop marketplaces are installed, this was the only case proving that ordered candidate discovery selects the first marketplace and caches its plugin version. The remaining tests provide only one explicit marketplace, so reversing or bypassing candidate priority could silently install the older bundled plugin while the suite stays green; keep this ordered-selection case at the plugin-local catalog boundary.
AGENTS.md reference: extensions/AGENTS.md:L23-L23
Useful? React with 👍 / 👎.
| timeoutMs: 60_000, | ||
| }); | ||
| }); | ||
|
|
||
| it.each([ |
There was a problem hiding this comment.
Restore periodic auto-repair coverage
When autoRepair is enabled and a scheduled health probe fails, this was the only health-monitor boundary test proving that the timer path reloads the MCP runtime and retries once. The readiness tests exercise repair directly but cannot catch the monitor dropping or overriding the option, which would leave periodic recovery inert while all remaining health tests pass.
AGENTS.md reference: AGENTS.md:L78-L78
Useful? React with 👍 / 👎.
| expect(publish.env?.NODE_AUTH_TOKEN).toBeUndefined(); | ||
| expect(publish.env?.NPM_TOKEN).toBeUndefined(); |
There was a problem hiding this comment.
Keep the OIDC credential-scrubbing contract covered
For the trusted-publisher route, these remaining assertions only prove that the step does not define token variables itself; removing the checks for unset NODE_AUTH_TOKEN NPM_TOKEN NODE_OPTIONS and the temporary NPM_CONFIG_USERCONFIG means inherited runner/job credentials or a user npmrc could reach npm publish without failing the workflow suite. The bootstrap route's checks do not cover this OIDC-only step, so retain these assertions or move them to the owner-level workflow test.
Useful? React with 👍 / 👎.
73403a6 to
dc42c40
Compare
|
The remaining test failure on head
This PR changes neither the failing test, the PostgreSQL test, nor either conflicting owner configuration. Fresh main |
* test(codex): deslop y0095 tests * test(codex): consolidate y0095 test families * test(codex): share y0095 authority and transcript fixtures * test(auto-reply): deslop y0097 tests * test(auto-reply): consolidate y0097 family tests * test(auto-reply): merge y0097 sibling suites * test(scripts): share y0092 fixture and assertion setup * test(browser): deslop y0099 tests * test(gateway): deslop y0098 tests * test(gateway): consolidate y0098 family fixtures * test(gateway): consolidate transcript and abort proof * test(ui): deslop y0100 tests * test(agents): deslop y0101 tests * test(subagents): deslop y0104 tests * test(gateway): deslop y0103 tests * test(gateway): consolidate y0103 owner coverage * test(gateway): consolidate y0103 sibling suites * test(scripts): deslop y0105 tests * test(scripts): consolidate y0105 family proof * test: retain boundary coverage and recognize shared UI fixture * test: retain current PR validation fixture * test: explain fixture-owned mock isolation * test: retain marketplace and release authority coverage * test: retain canonical planner suite and prune retired mock entries * test: repair extracted fixture types and stale lint directives
What Problem This Solves
Reduces repeated test setup and duplicate owner-level proof in campaign batch d401.
User Impact
No user-visible behavior or product-runtime code changes. Distinct authority, persistence, lifecycle, transport, and UI behavior remains the retention boundary. Consolidated tests keep their existing owner suites; deleted suite inventory entries follow those moves.
Why This Change Was Made
Replayed 19 of the 30 requested commits, then rebased onto pinned main
5f299889540f0f683fe89f29f21f332da2e8610bto include the canonical serial-projection expectation repair. The replay preserves current main where old fixture refactors conflict. Eleven commits were skipped instead of overwriting newer tests or landing half of a source-to-destination consolidation.Net diff: +7,248 / -11,132 lines (-3884) across 131 files. Product-runtime LOC: +0 / -0. Test/support LOC: +7,248 / -11,120 (includes the one-line UI ownership fixture classifier repair). CI test-routing and ratchet metadata: +0 / -12 (two inventory entries, two database-worker path entries for deleted suites, and eight obsolete mock-baseline entries). No direct CODEOWNERS-owned paths are changed.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <existing changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <existing changed TS/JS files>: exit 0.git diff --check 5f299889540f0f683fe89f29f21f332da2e8610b: passed.openclaw/ci-gateis the runtime proof and merge gate; CI seconds will be available in its run.Per-shard replay evidence and exact changed files
Static declarations below use the campaign AST counter against pinned main and the repaired replay, scoped only to changed files (including deleted files as zero after). They are not runtime case counts. All LOC includes test support.
y0092
Test/support LOC: +559 / -689 (net -130); static declarations 82 → 82.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
test/scripts/ci-changed-lint.test.tstest/scripts/ci-changed-node-test-plan.config-fallback.test.tstest/scripts/ci-changed-node-test-plan.process-owners.test.tstest/scripts/ci-changed-node-test-plan.selection.test.tstest/scripts/ci-changed-node-test-plan.test-support.tstest/scripts/ci-changed-type-graphs.test.tstest/scripts/ci-check-plan.test.tstest/scripts/ci-extension-lint-payload.test.tstest/scripts/ci-extension-lint-plan.test.tstest/scripts/pr-workflow-binding.test.tstest/scripts/pr-worktree-owner.test-support.tstest/scripts/pr-worktree-provision-error.test.tstest/scripts/pr-worktree-state.test.tstest/scripts/pr-wrappers.test.tsy0095
Test/support LOC: +2338 / -3257 (net -919); static declarations 202 → 186.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
extensions/codex/src/app-server/approval-bridge.test.tsextensions/codex/src/app-server/computer-use-cache.test.tsextensions/codex/src/app-server/computer-use-marketplace.test.tsextensions/codex/src/app-server/computer-use-service.test.tsextensions/codex/src/app-server/computer-use-startup.test.tsextensions/codex/src/app-server/computer-use.test-support.tsextensions/codex/src/app-server/computer-use.test.tsextensions/codex/src/app-server/config.test.tsextensions/codex/src/app-server/request-authority.test.tsextensions/codex/src/app-server/request.test.tsextensions/codex/src/app-server/transcript-history-projection.test.tsextensions/codex/src/app-server/transcript-mirror.test.tsextensions/codex/src/app-server/transcript-mirror.visibility.test.tsextensions/codex/src/app-server/turn-params.test.tsextensions/codex/src/app-server/turn-router-lifecycle.test.tsextensions/codex/src/app-server/turn-router.test.tsy0097
Test/support LOC: +791 / -1361 (net -570); static declarations 133 → 119.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
src/auto-reply/reply/agent-runner.misc.runreplyagent.test.tssrc/auto-reply/reply/agent-runner.private-final.runreplyagent.test.tssrc/auto-reply/reply/agent-runner.stalled-turn.test.tssrc/auto-reply/reply/commands-abort-trigger.test.tssrc/auto-reply/reply/commands-acp.channels.test-support.tssrc/auto-reply/reply/commands-acp.controller.test.tssrc/auto-reply/reply/commands-acp.owner.test.tssrc/auto-reply/reply/commands-acp.test.tssrc/auto-reply/reply/commands-allowlist.test.tssrc/auto-reply/reply/commands-approve.test.tssrc/auto-reply/reply/commands-btw.test.tssrc/auto-reply/reply/commands-compact-context-budget.test.tssrc/auto-reply/reply/commands-compact.lifecycle.test.tsy0098
Test/support LOC: +1199 / -2060 (net -861); static declarations 162 → 153.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
src/gateway/server-methods/chat-send-pending-inputs.test.tssrc/gateway/server-methods/chat-send-pre-admission.test.tssrc/gateway/server-methods/chat-send-profile-binding.test.tssrc/gateway/server-methods/chat-send-queued-identity.test.tssrc/gateway/server-methods/chat-send-steering-commit.test-support.tssrc/gateway/server-methods/chat-send-user-turn-family.test-support.tssrc/gateway/server-methods/chat-send-user-turn.audio-policy.test.tssrc/gateway/server-methods/chat-send-user-turn.audio.test.tssrc/gateway/server-methods/chat-send-user-turn.test.tssrc/gateway/server-methods/chat-startup-requester.test.tssrc/gateway/server-methods/chat-startup-short-reference.test.tssrc/gateway/server-methods/chat-transcript-persistence.generated-media.test.tssrc/gateway/server-methods/chat-transcript-persistence.mirrors.test.tssrc/gateway/server-methods/chat-webchat-acp-lifecycle.test.tssrc/gateway/server-methods/chat-webchat-media.test.tssrc/gateway/server-methods/chat.abort-authorization.test.tssrc/gateway/server-methods/chat.abort-cascade.test.tssrc/gateway/server-methods/chat.abort-cleanup-errors.test.tssrc/gateway/server-methods/chat.abort-errors.test.tssrc/gateway/server-methods/chat.abort-incarnation.test.tssrc/gateway/server-methods/chat.abort-persistence.test.tssrc/gateway/server-methods/chat.abort-registry.test-support.tssrc/gateway/server-methods/chat.abort-save-warning.test.tsy0099
Test/support LOC: +335 / -708 (net -373); static declarations 139 → 127.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
extensions/browser/src/browser/act-policy.test.tsextensions/browser/src/browser/cdp.helpers.test.tsextensions/browser/src/browser/cdp.test.tsextensions/browser/src/browser/client.test.tsextensions/browser/src/browser/config.test.tsextensions/browser/src/browser/control-auth.auto-token.test.tsextensions/browser/src/browser/extension-install-atomic.test.tsextensions/browser/src/browser/extension-install-fixture.test-support.tsextensions/browser/src/browser/navigation-guard.test.tsextensions/browser/src/browser/paths.test.tsy0100
Test/support LOC: +638 / -664 (net -26); static declarations 19 → 19.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
ui/src/e2e/chat-real-gateway.test-support.tsui/src/e2e/chat-steer-deferred-custody.real-gateway.e2e.test.tsui/src/e2e/chat-stop-finished-run.real-gateway.e2e.test.tsui/src/e2e/chat-stop-owned-exec.real-gateway.e2e.test.tsui/src/e2e/chat-swarm-lifecycle.e2e.test.tsui/src/e2e/chat-thinking-metadata.real-gateway.e2e.test.tsui/src/e2e/chat-wait-clock.real-gateway.e2e.test.tsui/src/e2e/chat-wait-clock.real-gateway.test-support.tsui/src/e2e/chat-youtube-embed.e2e.test.tsui/src/e2e/new-session-page.agent-identity.e2e.test.tsui/src/e2e/new-session-page.cloud-startup.e2e.test.tsui/src/e2e/new-session-page.cloud-startup.recovery.e2e.test.tsui/src/e2e/new-session-startup-family.test-support.tsy0101
Test/support LOC: +302 / -552 (net -250); static declarations 126 → 124.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
src/agents/agent-bundle-mcp-harness.test.tssrc/agents/agent-bundle-mcp-instructions-prompt.test.tssrc/agents/agent-bundle-mcp-manager.lifecycle.test.tssrc/agents/agent-bundle-mcp-manager.requester-connect.test.tssrc/agents/agent-bundle-mcp-manager.test-support.tssrc/agents/agent-bundle-mcp-runtime.test.tssrc/agents/agent-bundle-mcp-tools.materialize.test.tssrc/agents/agent-bundle-mcp-tools.request-boundary.test.tssrc/agents/agent-command-local.test.tsy0103
Test/support LOC: +685 / -1192 (net -507); static declarations 41 → 33.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
src/gateway/server.config-policy-response.test.tssrc/gateway/server.config-security-policy.test.tssrc/gateway/server.goal-child-authority.product.test.tssrc/gateway/server.health-store-scheduling.test.tssrc/gateway/server.health.test.tssrc/gateway/server.hooks-admission.test.tssrc/gateway/server.mcp-auth-login.commit-effects.test-support.tssrc/gateway/server.mcp-auth-login.forced-effects.test-support.tssrc/gateway/server.mcp-auth-login.test.tsy0104
Test/support LOC: +195 / -293 (net -98); static declarations 54 → 54.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
src/agents/subagents/registry/subagent-registry-task-replacement.test.tssrc/agents/subagents/registry/subagent-registry.announce-loop-guard.test.tssrc/agents/subagents/registry/subagent-registry.completed-followup-authority.test-support.tssrc/agents/subagents/registry/subagent-registry.completion-authority.test.tssrc/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.tssrc/agents/subagents/registry/subagent-registry.persistence.resume.test.tssrc/agents/subagents/registry/subagent-registry.persistence.test-support.tssrc/agents/subagents/registry/subagent-registry.persistence.test.tsy0105
Test/support LOC: +205 / -344 (net -139); static declarations 116 → 112.
Coverage report: not run under CI-only mode; no measured statement/branch totals supplied.
test/scripts/plugin-gateway-gauntlet.test.tstest/scripts/plugin-index-sqlite.test.tstest/scripts/plugin-lifecycle-measure.test.tstest/scripts/plugin-npm-prepared-release.test.tstest/scripts/plugin-npm-publication-readback.test-support.tstest/scripts/plugin-npm-registry-readback.test.tstest/scripts/plugin-prerelease-telegram-shards.test.tstest/scripts/plugin-prerelease.test-support.tstest/scripts/plugin-publication-artifact.test.tstest/scripts/plugin-release-pretag-pack-check.process-tree.test.tstest/scripts/plugin-release-pretag-pack-check.test.tstest/scripts/plugin-update-consent-scenario.test.tsy0096 and y0102
No replayed changes (whole shard commit skipped); LOC and declaration deltas are zero. Supplied reports also state coverage was not run.
Conflict resolution and skipped commits
Kept the pre-commit version of each file below; dropped that commit's entire file-level hunk, not current main's tests. All nonconflicting changes from these commits were kept.
330caf6319137:extensions/codex/src/app-server/scheduled-app-authority.test.ts.8d641b71cc283:approval-bridge.test.ts,config.test.ts,elicitation-bridge.test.ts,scheduled-app-authority.test.tsunderextensions/codex/src/app-server/.47acd530b76a1:config.test.ts,elicitation-bridge.test.ts,scheduled-app-authority.test.tsunder the same Codex directory.c54228e8dad17:agent-runner.private-final.runreplyagent.test.ts,agent-runner.runreplyagent.e2e.test.tsundersrc/auto-reply/reply/.edcad20bdd2e5,5a9824bfc8ee2:src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts.86d1492f4d12f:test/scripts/ci-changed-node-test-plan.source-owners.test.ts,test/scripts/pr-worktree-provision.test.ts.61fe80748614a:cdp-reachability-policy.blocklist.test.ts,extension-install-external.test.ts,extension-install-layout.test.ts,extension-install.test.tsunderextensions/browser/src/browser/.69f5a37fa0c5d:chat-transcript-disclosure-anchor.e2e.test.ts,chat-tts-supplement.real-gateway.e2e.test.ts,chat-video-gallery.e2e.test.ts,new-session-page.cloud-startup-failure.e2e.test.tsunderui/src/e2e/.cbdb866d0f303:src/agents/agent-bundle-mcp-manager.capacity.test.ts.0fb202ff3ebd9:subagent-registry.archive.e2e.test.tsandsubagent-registry.archive-cancellation.test-support.tsundersrc/agents/subagents/registry/; keep the existing support file.134d3e6d4ac05:src/gateway/server.config-patch.test.ts.c600aec784e0f:test/scripts/plugin-prerelease-test-plan.test.ts.Skipped in full:
3bd50fbd597745c687a944ac1ea8d8e97cba6370: browser sibling moves conflict with current installation/CDP suites.a2aec3af74839f63684d9177f7619ccaf2962aed: depends on the skipped browser consolidation and conflicts with current owner suites.43d6a5fa7283122a0b16b29f0a09872ab4511dd9: WhatsApp source/destination families changed on main; keep current lifecycle/transport coverage.19125a5c899db9516cd0f169231395bc6d066365: video consolidation conflicts with rewritten current gallery suite.813e9150cff2d5c22166f9c164b8d47b064f7b0e: depends on skipped UI consolidation and conflicts with current gallery/reconnect suites.8a75513b499d358b0402482e9e04ce1232667e61: MCP capacity destination rewritten; preserve current capacity and source suites together.c68e977dfcdf9d3620c183936464bd227c7b85c9: depends on skipped MCP consolidation and conflicts with current runtime/materialization suites.1df79c1381c22d1079ef5fbd909a1be2b417731e: archive/persistence lifecycle consolidation conflicts with current main.b16b7eb32924ac061e80fc781139edbe3f77f27b: depends on skipped lifecycle consolidation; archive/persistence fixture conflicts.dcbea267a24e1c5c1805f33033f7c81a3c1a30f9: prerelease source-to-destination merge conflicts with current planner suite.d4885ca2cc42604e7d6914f56638229beff5be60: sidebar family rewritten and session-suite helper deleted on main; no resurrection.Review Repairs and CI Diagnosis
Restored independent coverage for service/cache startup refresh, periodic auto-repair, device-token IDOR/scope escalation, standalone MCP ticket HTTP authorization, hooks allowlists, cross-device pairing approve/reject, same-run generated-media final-answer selection, and generated SDK evidence validation. The pairing source suite and its CI inventory entry are restored together; the consolidation destination is returned to main to avoid duplicate cases.
Rejected findings, with verified retained proof:
agent-bundle-mcp-stdio.test-support.tsdeclaresinputSchema?: unknown;Omit<FixtureTool, "name">has no required properties.ci-changed-node-test-plan.test.tssupply a string consumer; no undefined row remains.cdp-reachability-policy.blocklist.test.tscovers split/equal HTTP/WebSocket flags, overriding CDP URLs, and default/strict policy.commands-allowlist.owner.test.tsretains real-store default-account removal and legacy cleanup with revocation interleavings; an extra mocked two-call assertion duplicates that owner proof.pr-merge-hosted.test.tsretains exact OR-list merge rejection forrequired-api-errorandrequired-pendingwith no intent/dispatch.plugin-release-pretag-pack-check.process-tree.test.tsretains real timeout tests plus two-plugin independent build/pack budgets with a supplied timeout.Initial CI run 39640752675 found the batch-caused UI ownership guard failure in job 119364224225. The guard now recognizes
createChatGatewayInstance, restoring all three suites' existing private-server classification without changing the inventory or weakening the assertion. No local runtime tests were run; fresh-head CI will verify the repair.Fresh-head run 39642478789 confirmed the UI ownership repair and found a fixture mismatch in job 119370525852: the consolidated PR-validation fixture's fake GitHub CLI rejects the current
writer-logincommand. Dropped all changes totest/scripts/pr-review-artifact-validation.test.ts, restoring the exact pinned-main version, including its API-error and pending-check rows. No fixture guard was bypassed or assertion weakened.Run 39644216596 exposed five changed fingerprints for existing closed mocks. Added narrow
mock-isolationownership explanations to the existing cache/shared-client and ACP transport/runtime mocks; no baseline expansion or behavior change. Hosted review's marketplace precedence finding was accepted and restored in the consolidated startup suite. Its OIDC credential-scrubbing finding was accepted by dropping the entireplugin-npm-extended-stable-workflow.test.tshunk; its periodic auto-repair finding was already repaired. Independent review of the marketplace/release restoration was scoped-clean at P0–P2.The same run's planner expectation failure was fixed on main by
5f299889540f0f683fe89f29f21f332da2e8610b. Rebased onto that commit, preserving its serial-projection logic in the two overlapping planner fixture files. The unrelated duplicate PostgreSQL test-ownership failure is also present in hourly main job 119376938382; neither that test nor its conflicting owner configs is changed here.Run 39649033454 found another worker-budget assertion failure in the consolidated planner suite (job 119393585055). Rather than guessing at changed fixture semantics under CI-only validation, dropped the entire
ci-changed-node-test-plan.test.tshunk and restored pinned main exactly; removed the five helper exports consumed only by that hunk. Independent review of this rollback was scoped-clean at P0–P2. The earlier no-consumer review rejection is now superseded by restoring the original suite.The mock-isolation explanations passed the new-factory guard, but job 119393582905 required pruning eight obsolete grandfathered fingerprints. Removed precisely the eight entries listed by CI; no new exception was added. The same run also reported an unchanged
chat-page-pending-retention.test.tsfailure expectingPrevious transcript; it has not been classified as inherited. Fresh-head CI must decide the repaired candidate, with no red-check waiver for that failure.ClawSweeper's exact-review input scan refused the earlier patch with unclassified, unverified findings, so that automated review did not run. No scanner policy or safety hold was changed; the independent reviews above are separate evidence.
Run 39651207632 passed the restored planner suite, mock-baseline ratchets, and the previously failing UI shard. Hosted semantic lint found two now-unused trailing max-lines suppressions in the Codex config and ACP suites; removed them. Hosted type checks found the extracted lint fixture widening its
fullGroupsliteral and the new prerelease helper missingexpectDefined's required diagnostic label. The fixture now satisfies the actual owning function parameter type, and the helper supplies the label. Formatting/plain lint passed; independent review of all four edits was scoped-clean at P0–P2. No local typecheck or test was run. The duplicate PostgreSQL ownership error is still the exact hourly-main failure; it is not repaired or hidden by this batch.