Skip to content

Commit 15e9714

Browse files
committed
test(spec): the two type-graph test files declare their measured CI budget
scoped-context.test.ts and connector-author-shape.test.ts each build one ts.createProgram over the spec entry barrels and read every probe from it. Each now carries one header line in the third test-budget class, "compiles the package type graph once", at the slowest of the 9 hourly runs on 2026-10-16 that executed the spec local project, x 1.25, rounded up to the next 10 s: 17.1 s and 21.8 s, so 30 s each. No assertion, timeout or project changes. Claude-Session: https://claude.ai/code/session_01LFqdRsuM5nkqoJdHd5ztVk Co-authored-by: Claude <noreply@anthropic.com>
1 parent 61a6809 commit 15e9714

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/spec/src/contracts/scoped-context.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 30 — compiles the package type graph once: every probe (the hook JSDoc calls through IScopedContext, the undeclared members it must reject by name, and the harness control) is compiled in one ts.createProgram over the spec entry barrels it imports, the first read pays that program's type-graph resolution and every later probe reads the same program; slowest of 9 executed hourly CI readings on 2026-10-16, 17.1 s (run 38865071010), x 1.25, rounded up
23

34
import { describe, it, expect } from 'vitest';
45
import ts from 'typescript';

‎packages/spec/src/integration/connector-author-shape.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 30 — compiles the package type graph once: every probe (the two SYNC_ARCHITECTURE.md connector examples, the retired keys a Connector must refuse, the Connector / ConnectorParsed pair, and their controls) is compiled in one ts.createProgram over the spec entry barrels it imports, the first read pays that program's type-graph resolution and every later probe reads the same program; slowest of 9 executed hourly CI readings on 2026-10-16, 21.8 s (run 38904808867), x 1.25, rounded up
23

34
import { describe, it, expect } from 'vitest';
45
import ts from 'typescript';

0 commit comments

Comments
 (0)