Skip to content

fix(auto): make the @traceai/auto suite pass and run it in CI - #619

Merged
nik13 merged 1 commit into
devfrom
fix/auto-test-suite
Nov 8, 2026
Merged

nik13 merged 1 commit into
devfrom
fix/auto-test-suite

Conversation

@nik13

@nik13 nik13 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Why

@traceai/auto 0.1.0 is on npm, but its own suite had 4 failing test files on dev, and no CI workflow ran it. This PR makes the suite pass and adds that workflow.

Failure Cause Fix
config.test: registry covers every package (expected 69, got 48) #609 added 21 coding-agent packages under typescript/packages/traceai_*. Those are set up with npx @traceai/agents, not loaded by the zero-code agent. Exclude @traceai/agent-core and every package that depends on it.
safety.test: TS2345, Buffer is not BodyInit Three new Response(bytes) calls no longer type-check against current @types/node. new Response(new Uint8Array(bytes)), as line 76 of the same file already does.
privacy-catalog S6: byte identity of fi-core dist/src/privacy.json fi-core's tsconfigs include src/**/*.json. Every consumer's tsc --build reference to fi-core re-emits dist/src/privacy.json reserialized, after fi-core's postbuild has written the byte-exact copy. Remove src/**/*.json from fi-core's three tsconfigs. tsc no longer emits the catalog, so the postbuild copies are the only ones. The published 1.2.0 tarball was byte-identical; it was packed before any consumer rebuild.
round6-boundary B3 Vercel Needs @traceai/vercel built. A filtered @traceai/auto... build skips it because it is a root workspace dependency. Passes once the workspace is built in order, which the new workflow does.

New workflow .github/workflows/auto-typescript-tests.yml:

  • Steps: pnpm install --frozen-lockfile --ignore-scripts, then pnpm run build:ordered, then pnpm --filter @traceai/auto test.
  • Runs on PRs touching auto, fi-core, semconv, spec/auto-instrumentation or any traceai_* manifest, and on every push to dev.

How it was tested

E2B, Node 22.18, pnpm install --frozen-lockfile --ignore-scripts + pnpm run build:ordered:

Tree @traceai/auto suite fi-core suite fi-core dist/*/privacy.json vs spec
dev before #609 (84e24e0) 3 failed files (S6, B3, safety) — —
origin/dev (2c3a6e8) 4 failed files, 1274 passed 60/60 dist/src differs
this branch 33/33 files, 1310 passed, 12 skipped 60/60, 1733 passed; provider-lifecycle 19/0 all three identical

The workflow itself runs on this PR, since it changes its own file.

🤖 Generated with Claude Code

The suite had 4 failing files on dev and nothing ran it on PRs:

- config.test counted every typescript/packages/traceai_* directory as an
  instrumentation; the coding-agent packages (@traceai/agent-core and the
  plugins built on it) are set up with `npx @traceai/agents`, not by the
  zero-code agent. Exclude them by that dependency.
- safety.test passed a Buffer to `new Response()`, which no longer
  type-checks against current @types/node; wrap it in a Uint8Array as the
  same file already does on line 76.
- privacy-catalog S6: fi-core listed src/**/*.json in its tsconfig
  includes, so every consumer's `tsc --build` reference to fi-core
  re-emitted dist/src/privacy.json reserialized, after fi-core's postbuild
  had written the byte-exact copy. tsc no longer emits the catalog; the
  postbuild copies are the only ones (published 1.2.0 bytes were correct).
- round6-boundary B3 needs @traceai/vercel built; it passes once the
  workspace is built in order, as the new workflow does.

Adds .github/workflows/auto-typescript-tests.yml: install, build:ordered,
then the auto suite, on PRs touching auto/fi-core/semconv/spec or any
traceai_* manifest, and on every push to dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nik13
nik13 merged commit 7ebbbff into dev Nov 8, 2026
105 of 122 checks passed
@nik13
nik13 deleted the fix/auto-test-suite branch November 8, 2026 10:53
nik13 added a commit that referenced this pull request Nov 8, 2026
Include the fi-core build corrections from #619 before repeating the baseline and oversized-content regression proofs.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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