Skip to content

fix(ci): keep isolated Gateway tests out of methods inventory - #199304

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-main-red-plan-activity-20260919
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-main-red-plan-activity-20260919

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes inherited main CI failures in “gates Gateway method workers without changing complete coverage”: the planner selects 591 entries while the executable Gateway methods configs select 590.

Why

Commit 55b5905ff83aed24f81dee5657e1ed39ac261b2b moved test/plugins/deep-research-recovery.gateway.test.ts from database workers into isolated Gateway server tests. It updated the executable methods exclusions, but the planner's plugin filter still excluded only database workers. The recovery file became an extra, non-executable methods entry while retaining its legitimate isolated owner.

Use the existing canonical gatewayMethodsTestExclude in that filter. The methods inventory now exactly matches its executable configs, and recovery remains once under the isolated server owner. Existing coverage and worker assertions are unchanged. This is the same one-line correction already included in pending #198943; this focused repair excludes that PR's separate test consolidation.

User Impact

No product behavior changes. Complete test coverage and the research test's required process isolation remain intact. No new cache, configuration, schema, runner, timeout or test skip. CI tooling +1/−1; product and test LOC delta zero.

The separately reported Activity failures are already repaired on current main. #199157 (a4fb1430366739903cdd037516b927e846b64a06) intentionally removed Activity image galleries but left remote-image E2E assertions behind. #199168 (a806af1be280ea36b593eee9ccaf9f8002371e00) removed those obsolete cases/fixtures while retaining desktop/mobile recap and pull-request-preview checks. Both retained cases pass on this PR's main parent; no additional UI change is justified. The Usage removals in #199161 and #199170 are unrelated.

Evidence

Pinned main parent: 7f7b16cdc243309cc9d78e3aa2c961b68739ff6c.

  • pnpm test test/scripts/ci-node-test-plan.test.ts: baseline 159 passed / 2 failed with exactly the reported 591-versus-590 mismatch; fixed 161/161 passed. Existing failing regression assertions are untouched. Wall time 104.47s before / 98.69s after; no speedup claim.
  • Inventory comparison: 590 planned / 590 executable; zero extra or missing paths. Research recovery has zero methods entries and exactly one isolated-server entry.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/activity-polish.e2e.test.ts: current main 2/2 passed at 1440 and 390 px (21.31s wall).
  • Fresh independent Codex autoreview, P0–P2, reviewed the full local diff plus complete inventory and Gateway ownership source: scoped-clean, no actionable findings. Simplification retains the one-line canonical-owner correction.
  • git diff --check and the required tooling-test typecheck pass. The changed-check outcome is recorded below.

A/A/B cold inventory measurements over the 65,076-file source checkout: wall 1217.1/1215.8/1169.5 ms, process CPU 1100.8/1079.1/1044.6 ms, V8 sampled allocations 240.5/237.1/243.3 MB. These are diagnostic samples, not a performance benefit claim. This CI owner reads source-test inventory; runtime database/workspace benchmarks do not exercise the changed path.

node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental passes. pnpm check:changed completed with all selected gates passing except the full-tree unused-export scan: scrollRemainder in ui/src/e2e/activity-assertions.test-support.ts and createActivityGatewayStub in ui/src/pages/activity/activity-page.test-support.ts. #199168 removes both final external consumers; the second helper retains a same-file caller. These are additional main regressions, not planner failures or dismissed noise. The exact-parent reproduction is recorded below.

Exact-parent attribution is now verified: with the sole planner change temporarily reversed, clean main 7f7b16cdc243309cc9d78e3aa2c961b68739ff6c fails the same full-tree Knip command on exactly those two exports. #199168's parent has both external consumers; its diff removes them. The identical reviewed planner patch was restored afterward. This separate regression is recorded for follow-up; no check is represented as green.

Final-head CI run 43651375339 passed on its original ready-PR attempt: 35 successful jobs, no failures, including all ten selected Node shards. ClawSweeper final review covers 4d2dfa4d15163bd11473677437bf42c1a0b605d8: no findings, no before-merge items, zero open checkboxes. Native preparation retained the reviewed head without rebasing or another push. Ordinary landing; no admin CI exception needed. The local full-tree export failure above remains explicitly recorded and is not covered by a selected hosted dead-export job.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 14, 2026
@steipete
steipete marked this pull request as ready for review November 14, 2026 23:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T23:06:31.188878Z 4d2dfa4 Draft marked ready
ℹ️ 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

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please review the one-line inventory correction at 4d2dfa4d15163bd11473677437bf42c1a0b605d8. The 161 planner tests pass; the exact main parent reproduces the two coverage failures. The PR body also records the separate, exact-parent unused Activity export failures. Verify complete coverage and retained isolated ownership of the research recovery test.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR filters plugin tests through the canonical Gateway methods exclusions when constructing the CI inventory.

Example: CI plans test/plugins/deep-research-recovery.gateway.test.ts.

  • Before: The planner includes it under Gateway methods even though that executable config excludes it.
  • After: It remains under the isolated Gateway server owner and is excluded from the methods inventory.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical-owner correction supported by existing full-inventory regression coverage and reported before-and-after validation.
Proof confidence 🐚 platinum hermit (4/6) This CI inventory correction changes no shipped user behavior; supplied validation reports the unchanged planner regression passing after repair, and the inspected Activity and Usage screenshots concern separate UI work.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter failing CI coverage assertions because planned Gateway methods entries disagree with executable test ownership.
Reason: The maintainer-authored correction restores an existing inventory contract without changing product behavior or test isolation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes the smallest complete correction to the Gateway methods inventory while preserving isolated research recovery coverage; no actionable patch defects were found.

Priority: P2
Reviewed head: 4d2dfa4d15163bd11473677437bf42c1a0b605d8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI inventory maps canonical test ownership into planner file selections, which are executed through the corresponding Vitest configs.

flowchart LR
  A[Canonical Gateway paths] --> B[Methods inventory]
  A --> C[Isolated server inventory]
  B --> D[CI planner]
  C --> D
  D --> E[Vitest configs]
  E --> F[Test execution]
Loading

Technical review

Best possible solution:

Use the canonical methods exclusion list in the existing plugin filter and retain the isolated server owner unchanged.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes the extra methods entry and the existing full-inventory assertion that detects it; the supplied baseline reports 591 planned versus 590 executable entries, but no tests were run during this read-only review.

Is this the best way to solve the issue?

The one-line change fixes the inventory producer using its existing canonical owner, preserves the intentional isolation boundary, and needs no additional machinery or tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 67ecf6bf352d.

Provenance checked

  • Whole-config Gateway methods inventory keeps the original intent (1b6ba2c: Canonical enumeration supported release-tier selection while preserving complete coverage and worker policy.)
  • Research recovery isolation keeps the original intent (55b5905: Native SDK imports could retain a preceding shared worker's retired SQLite lifecycle; isolated forks preserve the required module and process state.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1b6ba2c adds scripts/lib/ci-node-test-inventory.mts:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1b6ba2c038f9; files: scripts/lib/ci-node-test-inventory.mts)
  • Vincent Koc: Raw commit dcafc6e adds scripts/lib/ci-node-test-inventory.mts:189 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: dcafc6e1d66e; files: scripts/lib/ci-node-test-inventory.mts)

PR surface

Other 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: This fixes a concrete CI planning coverage mismatch without changing shipped product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This fixes a concrete CI planning coverage mismatch without changing shipped product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 6:08 PM ET / 23:08 UTC.

@steipete
steipete merged commit 491c294 into main Nov 14, 2026
187 of 190 checks passed
@steipete
steipete deleted the steipete/perf-micro-main-red-plan-activity-20260919 branch November 14, 2026 23:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant