Repository navigation
test(compliance): give the 3.2.x validate_input gap case a 30 s timeout - #9000
Conversation
The fixture-unavailable case in compliance-validate-input-gates builds two compliance results. On 3.2.x each one loads its pinned storyboard from the hosted bundle without a cache (main has had one since #8507), so the case takes 2.5-7 s on a CI runner. On the 3.2.11 release push (Build Check 43436688553) one variant hit 10,023 ms against the 10 s default, although the tree was identical to the green Version Packages head. Test-only; no changeset. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — test-only change, no blocking findings.
This PR touches a single file (tests/addie/compliance-validate-input-gates.test.ts): a 30s per-test timeout and a load-bearing comment on the keeps fixture-unavailable coverage untested case, accommodating the uncached hosted-bundle storyboard load. No protocol surface (static/schemas/source/**), docs, dist artifact, or schema touched — so no changeset is required and 3.1.x/3.2.x patch-eligibility concerns do not apply. No high-risk paths, no gated paths, no author team gate, and no prior decision. Reviewer found no Critical/High/Medium findings.
Decision table: rows 1–8 do not fire (no findings, high_risk false, gated_paths false, no team match, zero medium findings). Falls through to row 9 → approve.
Brings the published 3.2.12 release records to main. Resolved: - package.json, package-lock.json, static/schemas/source/index.json: main's. - static/compliance/published-versions.json: main's in this merge; the registration commit adds 3.1.34 and 3.2.12 after qualification. - CHANGELOG.md: main's plus the 3.2.12 block (forward-merge-release-records.cjs changelog). - dist/schemas/index.json, latest.json: 3.2.x's, regenerated in the next commit. - docs/governance/campaign/audit-trail.mdx and tasks/sync_plans.mdx: main's. adcontextprotocol#8980 is the 3.2 backport of adcontextprotocol#8931, which main carries in full. - tests/addie/compliance-validate-input-gates.test.ts: reverted to main's. adcontextprotocol#9000's 30 s timeout is 3.2.x-only; main caches the storyboard lookup (adcontextprotocol#8507). adcontextprotocol#9128 (3.2.x backport of adcontextprotocol#8894) auto-merged with no net change: 3.2.x's webhook-emission files equal main's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Test-only change for
3.2.x. The case "keeps fixture-unavailable coverage untested without masking independent validator failures" intests/addie/compliance-validate-input-gates.test.tsnow has a 30 s timeout instead of the rootvitest.config.tsdefault of 10 s.Why
On the 3.2.11 release push, Build Check 43436688553 failed Canonical tests (4/4) on exactly this case: the
source/ctv-experience-validate-inputvariant ran 10,023 ms. The release commit9df1dd7b1bhas the same tree (3ab2bbb3f0) as the Version Packages headeb6a02c6f6, which passed the same shard 30 minutes earlier. A failed-jobs re-run of the release push passed.The case is synchronous and CPU-bound. It builds two compliance results. For each one,
deriveStoryboardStatusesandcomplianceResultToDbInputcallpinnedStoryboard. On 3.2.x that runs the SDK'sgetComplianceStoryboardByIdagainst the hosted bundle, and the only cache is a per-resultWeakMap. Its four variants (source/published bundle× two storyboards) ran:So it was never far from the 10 s ceiling, and runner load pushed it over. The other cases in the file stay under about 2.2 s.
Why not main, and why not backport the cache
Main has looked these storyboards up through
getCachedComplianceStoryboardByIdsince #8507. On main's green Build Check 43424141523, only one variant of this case shows as slow (2.7 s); the rest are under vitest's 300 ms slow threshold. #8507 changes 16 server files, more than a maintenance-line test flake justifies. A per-test timeout is the proportionate fix.Change
}, 30_000);on that oneit, with a three-line comment saying why. The assertions are unchanged.Verification
npx vitest run tests/addie/compliance-validate-input-gates.test.ts: 12/12 pass.No changeset: test-only, nothing release-relevant, so it does not regenerate a Version Packages PR.
🤖 Generated with Claude Code