TypeScript integ metrics fail on full-suite runs: test names exceed --max-test-names 1500
Any PR that triggers the full TypeScript integ suite now fails upload-metrics, because the suite reports 1,501 distinct test names and the publisher refuses anything above 1,500. Smaller PRs run a subset (~1,358) and pass, so this shows up only on PRs touching package.json or shared code (e.g. #5617, and agent-tasks/4949 on vitest 4). The dashboards themselves are fine: the largest partition is 264 of its 450-series budget. The cap is just stale, and the suite is also much bigger than it needs to be.
Proposal: raise the cap now to unblock full-suite PRs, then shrink the interventions matrix, which is 41% of the names and 39% of integ test time.
Details for agents
What fails
.github/workflows/typescript-integration-test.ymlpasses--max-test-names 1500to.github/scripts/upload-integ-test-metrics.py, which exits 1 above that count (1501 distinct TestName values ... exceed --max-test-names 1500). Example: run 40749880767 on #5617; identical count on run 40718754956 (vitest 4).- The workflow comment says "about 850 names each" project; the real split is integ-node 849, integ-browser 654 (1,503 testcases, 1,501 distinct names).
Where the names come from (full-suite run, 1,503 testcases)
| Source | Names | Test time |
|---|---|---|
test/integ/interventions.test.ts: 52 tests x 6 providers x 2 projects |
624 | 1,367 s of 3,515 s |
test/integ/agent.test.ts: provider matrix x 2 projects |
228 | 665 s |
| Same test in both integ-node and integ-browser | 648 shared (node-only 200, browser-only 5) | |
| Same test repeated per provider (node only) | 461 across 154 templates |
Dashboard headroom (test-infra/dashboards/generate.py TS_PARTITIONS, simulated on this run's names)
browser/agent 210, browser/interventions 258, browser/other 185, node/agent 264, node/interventions 260, node/models 153, node/other 172. All under the 450 design limit and the 500 SEARCH cap. test-infra/dashboards/check_series.py is the per-partition guard; the publisher's cap is only a global cardinality-explosion check.
Option 1: raise the cap (unblocks today)
--max-test-names 2000intypescript-integration-test.yml, and fix the "about 850 names each" comment.- Safe while partitions stay under 450; growth is roughly linear in providers x projects, so it buys time without changing cost.
Option 2: consolidate redundant tests (reduces names and CI time)
- Interventions (
test/integ/interventions.test.ts:199,describe.each(allProviders)): deny/confirm/guide are hook logic, already unit-tested insrc/interventions/__tests__/registry.test.ts(41 tests). Run the full 52-test matrix on one provider (Bedrock), and on the other five keep only the cases whose outcome depends on the model (e.g. guide feedback triggering a retry, confirm resume). At ~6 cases per extra provider: 624 -> ~164 names, ~1,367 s -> ~360 s of test time. - Browser project: today it runs every shared
*.test.ts, duplicating 648 tests whose risk is model behavior, not the browser runtime. Restricting it to per-provider smoke tests plus browser-specific files would remove most of those 648. Needs a call on which files carry browser risk. agent.test.ts/agent.cancel.test.tsprovider matrices: same pattern, smaller payoff; revisit after 1 and 2.
Recommendation
Option 1 now (one-line change, low risk given partition headroom), then Option 2.1 as a follow-up (largest cut in names and runtime, keeps provider coverage where it matters). Option 2.2 needs an owner decision.
Done when
- A full-suite integ run publishes metrics (no
--max-test-namesfailure). check_series.py --sdk typescriptstays under its 400 threshold for every partition.
Looks like this was already addressed on main: .github/workflows/typescript-integration-test.yml now passes --max-test-names 2000 (comment notes a full-suite run publishes about 1500 names). OK to close if that matches the intended unblock?
Fixed by #5646.