@devries-cameron20 / composio-1 / commits / b9a715e05
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(e2e): pack core's workspace dependency in the openai-zod4 fixture (#4097)

The `openai-zod4-compat` E2E fixture fails on every release branch that bumps an internal workspace package. It is currently blocking the Python 0.18.2 / TypeScript 0.15.0 train (https://github.com/ComposioHQ/composio/pull/4038). ## Root cause The fixture packs `@composio/core` and `@composio/openai` and installs the tarballs. `pnpm pack` rewrites `@composio/core`'s `workspace:*` dependency on `@composio/json-schema-to-zod` to the exact workspace version, so the tarball carries a hard pin: ```json "@composio/json-schema-to-zod": "0.2.2" ``` On `next` that pin points at an already-published version, so the install resolves from the registry and the fixture passes. On a release branch it points at the version about to be published, which does not exist yet: ``` npm error code ETARGET npm error notarget No matching version found for @composio/json-schema-to-zod@0.2.2. ``` The setup step then exits non-zero and all 7 assertions fail with empty output. That is exactly what https://github.com/ComposioHQ/composio/pull/4038 shows: `@composio/json-schema-to-zod` is bumped to `0.2.2` there, which is the first release train to bump an internal dependency of `@composio/core` since this fixture was added. ## Fix Pack `@composio/json-schema-to-zod` alongside the other two and install all three tarballs. npm satisfies core's pin from the top-level tarball, so the fixture resolves entirely from local builds and no longer depends on publication order. Behavior on `next` is unchanged — it just prefers the local build over the identical published one. ## Verification Reproduced and fixed against the release branch (`changeset-release/next` @ `8068225d7`, core `0.15.0` / json-schema-to-zod `0.2.2`) in a local worktree, since Docker was not available to run the containerized suite here: - packing core alone and running the fixture's install command reproduces the ETARGET failure verbatim - packing all three and installing them succeeds; `node_modules/@composio/json-schema-to-zod` resolves to `0.2.2` and `@composio/core`'s pin is satisfied locally - `node ts/scripts/validate-changesets.mjs` passes; no changeset needed, the fixture is a private package CI runs the real containerized suite on this PR.

Alberto Schiabel committed Aug 7, 2026 at 22:04 UTC b9a715e055dccd464c159b63b8a7c84cac3cc0e9
2 files changed +10 -2
ts/e2e-tests/runtimes/node/openai-zod4-compat/README.md
+9 -1
@@ -26,9 +26,17 @@ fixtures/
26 └── tsconfig.json # Strict consumer compiler settings
27 ```
28
29 -The setup phase packs both Composio packages, installs them with explicit
29 +The setup phase packs the Composio packages, installs them with explicit
30 OpenAI 7 and Zod 4 versions, and typechecks without `skipLibCheck`.
31
32 +`@composio/json-schema-to-zod` is packed alongside `@composio/core` and
33 +`@composio/openai` even though the fixture never imports it directly. `pnpm
34 +pack` rewrites `@composio/core`'s `workspace:*` dependency on it to the exact
35 +workspace version, so installing the core tarball alone makes npm fetch that
36 +version from the registry. On a release branch the workspace version is the
37 +one about to be published and does not exist yet, which fails the install.
38 +Packing it locally keeps the fixture resolvable before publication.
39 +
40 ## Setup
41
42 The runtime phase constructs clients with fake keys and never makes a network
ts/e2e-tests/runtimes/node/openai-zod4-compat/fixtures/package.json
+1 -1
@@ -2,7 +2,7 @@
2 "private": true,
3 "type": "module",
4 "scripts": {
5 - "install:composio": "pnpm --dir /app/ts/packages/core pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/providers/openai pack --pack-destination \"$PWD\" --silent >/dev/null && npm install --ignore-scripts --package-lock=false ./composio-core-*.tgz ./composio-openai-*.tgz",
5 + "install:composio": "pnpm --dir /app/ts/packages/json-schema-to-zod pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/core pack --pack-destination \"$PWD\" --silent >/dev/null && pnpm --dir /app/ts/packages/providers/openai pack --pack-destination \"$PWD\" --silent >/dev/null && npm install --ignore-scripts --package-lock=false ./composio-json-schema-to-zod-*.tgz ./composio-core-*.tgz ./composio-openai-*.tgz",
6 "typecheck": "tsc --noEmit && echo openai v7 compatibility typecheck passed"
7 },
8 "dependencies": {