Skip to content

test(compliance): give the 3.2.x validate_input gap case a 30 s timeout - #9000

Merged
bokelley merged 1 commit into
3.2.xfrom
fix/3.2.x-validate-input-gates-timeout
Nov 14, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
fix/3.2.x-validate-input-gates-timeout

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Test-only change for 3.2.x. The case "keeps fixture-unavailable coverage untested without masking independent validator failures" in tests/addie/compliance-validate-input-gates.test.ts now has a 30 s timeout instead of the root vitest.config.ts default 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-input variant ran 10,023 ms. The release commit 9df1dd7b1b has the same tree (3ab2bbb3f0) as the Version Packages head eb6a02c6f6, 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, deriveStoryboardStatuses and complianceResultToDbInput call pinnedStoryboard. On 3.2.x that runs the SDK's getComplianceStoryboardById against the hosted bundle, and the only cache is a per-result WeakMap. Its four variants (source / published bundle × two storyboards) ran:

Run Variant times
Green VP head (43432888535) 3.1, 2.5, 4.4, 7.0 s
Release push, attempt 1 10.02, 2.8, 4.8, 2.9 s

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 getCachedComplianceStoryboardById since #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 one it, 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.
  • The normal pre-commit hooks passed.

No changeset: test-only, nothing release-relevant, so it does not regenerate a Version Packages PR.

🤖 Generated with Claude Code

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]>
@bokelley
bokelley marked this pull request as ready for review November 13, 2026 22:58

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit e4a8925 into 3.2.x Nov 14, 2026
28 checks passed
@bokelley
bokelley deleted the fix/3.2.x-validate-input-gates-timeout branch November 14, 2026 13:01
KonstantinMirin pushed a commit to KonstantinMirin/adcp that referenced this pull request Nov 21, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant