Skip to content

test(compass-agent): widen the type-surface containment test budget to 130s (RIG-3784) - #1213

Merged
trunk-io[bot] merged 2 commits into
mainfrom
compass-agent/rig-3784-export-surface-budget
Sep 13, 2026
Merged

trunk-io[bot] merged 2 commits into
mainfrom
compass-agent/rig-3784-export-surface-budget

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

export-surface.test.ts shells out to a cold tsc --declaration emit over
the package, then walks a second TS program over the output. That is ~5s
locally but 45-68s on a contended CI runner (~12-18x), and the 60s body
budget left no headroom -- it timed out at 67.8s on an unrelated PR (#1190)
and bounced other lanes.

The emit is near its floor: scoping it to the index import-closure (5.47s)
and in-process emit (8.52s) both measured slower than the current
whole-package subprocess emit (3.2-4.2s). So the budget is the correct
lever. Raise it to the house ceiling for slow bodies on this runner
(cli.config-passthrough.test.ts), ~2x the worst observed run, with a
why-comment distinguishing a body BUDGET from the RIG-3611 slow-cleanup
DETECTOR.

…o 130s (RIG-3784)

`export-surface.test.ts` shells out to a cold `tsc --declaration` emit over
the package, then walks a second TS program over the output. That is ~5s
locally but 45-68s on a contended CI runner (~12-18x), and the 60s body
budget left no headroom -- it timed out at 67.8s on an unrelated PR (#1190)
and bounced other lanes.

The emit is near its floor: scoping it to the index import-closure (5.47s)
and in-process emit (8.52s) both measured slower than the current
whole-package subprocess emit (3.2-4.2s). So the budget is the correct
lever. Raise it to the house ceiling for slow bodies on this runner
(cli.config-passthrough.test.ts), ~2x the worst observed run, with a
why-comment distinguishing a body BUDGET from the RIG-3611 slow-cleanup
DETECTOR.
@linear-code

linear-code Bot commented Sep 13, 2026

Copy link
Copy Markdown

RIG-3784

@trunk-io

trunk-io Bot commented Sep 13, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

… comment (RIG-3784)

Review nit: the comment said ~12-18x but the quoted 5s local / 45-68s CI
anchors give ~9-14x. Match the multiplier to the anchors; no behavior change.
@github-actions

github-actions Bot commented Sep 13, 2026

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-agent-rig-3784-expor.compass-eng-docs.pages.dev

Deployed from compass-agent/rig-3784-export-surface-budget at 4fe2e10.

@trunk-io
trunk-io Bot merged commit 7d22c69 into main Sep 13, 2026
15 checks passed
@trunk-io
trunk-io Bot deleted the compass-agent/rig-3784-export-surface-budget branch September 13, 2026 22:29
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.

2 participants