@devries-cameron20 / composio-1 / commits / 01da1820e
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): pre-build Docker image in CI to prevent build stampede

When Turbo runs 9 Node.js e2e test packages concurrently, each one independently calls ensureNodeImage() which triggers a Docker build. Nine concurrent builds saturate the CI runner (2 CPUs, 7GB RAM), causing Docker container execution to time out at TIMEOUTS.FIXTURE. Fix by pre-building the Docker image once in the CI workflow before Turbo spawns the test packages. Also bump TIMEOUTS.FIXTURE from 60s to 120s as a safety net for slow Docker operations under load.

jkomyno committed Feb 18, 2026 at 01:49 UTC 01da1820edb31cf063684fa148a5f9b72134ed79
4 files changed +13 -3
.github/workflows/ts.test-e2e.yml
+10
@@ -41,6 +41,16 @@ jobs:
41 - name: Build
42 run: pnpm run build:packages
43
44 + - name: Pre-build Docker image for e2e tests
45 + run: |
46 + docker build -f ts/e2e-tests/_utils/Dockerfile.node \
47 + --build-arg NODE_VERSION=${{ matrix.node-version }} \
48 + --label composio.e2e=true \
49 + --label composio.runtime=node \
50 + --label "composio.node_version=${{ matrix.node-version }}" \
51 + -t "composio-e2e-node:${{ matrix.node-version }}" \
52 + .
53 +
54 - name: Run Node.js E2E Tests
55 run: pnpm run test:e2e:node
56
ts/e2e-tests/_utils/README.md
+1 -1
@@ -152,7 +152,7 @@ it('calls LLM', async () => {
152 | Constant | Value | Use Case |
153 | ----------- | --------- | ------------------------------------------ |
154 | `DEFAULT` | `5_000` | Standard test operations |
155 -| `FIXTURE` | `60_000` | `beforeAll` hooks that call `runFixture()` |
155 +| `FIXTURE` | `120_000` | `beforeAll` hooks that call `runFixture()` |
156 | `LLM_SHORT` | `30_000` | Quick LLM calls |
157 | `LLM_LONG` | `60_000` | Complex LLM operations |
158
ts/e2e-tests/_utils/src/const.ts
+1 -1
@@ -17,7 +17,7 @@ export const WELL_KNOWN_DENO_VERSIONS = ['2.6.7', 'current'] as const;
17
18 export const TIMEOUTS = {
19 DEFAULT: 5_000,
20 - FIXTURE: 60_000,
20 + FIXTURE: 120_000,
21 LLM_SHORT: 30_000,
22 LLM_LONG: 60_000,
23 } as const;
ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts
+1 -1
@@ -23,7 +23,7 @@ e2e(import.meta.url, {
23 defineTests: ({ runFixture }) => {
24 let result: E2ETestResultWithSetup;
25
26 - // npm install inside Docker needs more time than the default TIMEOUTS.FIXTURE (60s)
26 + // npm install inside Docker needs more time than the default TIMEOUTS.FIXTURE (120s)
27 beforeAll(async () => {
28 result = await runFixture({
29 filename: 'index.mjs',