Repository navigation
fix(auto): make the @traceai/auto suite pass and run it in CI - #619
Merged
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
@traceai/auto0.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.config.test: registry covers every package (expected 69, got 48)typescript/packages/traceai_*. Those are set up withnpx @traceai/agents, not loaded by the zero-code agent.@traceai/agent-coreand every package that depends on it.safety.test: TS2345,Bufferis notBodyInitnew 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-catalogS6: byte identity of fi-coredist/src/privacy.jsonsrc/**/*.json. Every consumer'stsc --buildreference to fi-core re-emitsdist/src/privacy.jsonreserialized, after fi-core's postbuild has written the byte-exact copy.src/**/*.jsonfrom 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-boundaryB3 Vercel@traceai/vercelbuilt. A filtered@traceai/auto...build skips it because it is a root workspace dependency.New workflow
.github/workflows/auto-typescript-tests.yml:pnpm install --frozen-lockfile --ignore-scripts, thenpnpm run build:ordered, thenpnpm --filter @traceai/auto test.spec/auto-instrumentationor anytraceai_*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:@traceai/autosuitedist/*/privacy.jsonvs specdist/srcdiffersThe workflow itself runs on this PR, since it changes its own file.
🤖 Generated with Claude Code