Skip to content

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

jkomyno01da1820edb3
diff --git a/.github/workflows/ts.test-e2e.yml b/.github/workflows/ts.test-e2e.yml
index afffda129..9dc06ae2a 100644
--- a/.github/workflows/ts.test-e2e.yml
+++ b/.github/workflows/ts.test-e2e.yml
@@ -41,6 +41,16 @@ jobs:
- name: Build
run: pnpm run build:packages
+ - name: Pre-build Docker image for e2e tests
+ run: |
+ docker build -f ts/e2e-tests/_utils/Dockerfile.node \
+ --build-arg NODE_VERSION=${{ matrix.node-version }} \
+ --label composio.e2e=true \
+ --label composio.runtime=node \
+ --label "composio.node_version=${{ matrix.node-version }}" \
+ -t "composio-e2e-node:${{ matrix.node-version }}" \
+ .
+
- name: Run Node.js E2E Tests
run: pnpm run test:e2e:node
diff --git a/ts/e2e-tests/_utils/README.md b/ts/e2e-tests/_utils/README.md
index df7b15304..d97873861 100644
--- a/ts/e2e-tests/_utils/README.md
+++ b/ts/e2e-tests/_utils/README.md
@@ -152,7 +152,7 @@ it('calls LLM', async () => {
| Constant | Value | Use Case |
| ----------- | --------- | ------------------------------------------ |
| `DEFAULT` | `5_000` | Standard test operations |
-| `FIXTURE` | `60_000` | `beforeAll` hooks that call `runFixture()` |
+| `FIXTURE` | `120_000` | `beforeAll` hooks that call `runFixture()` |
| `LLM_SHORT` | `30_000` | Quick LLM calls |
| `LLM_LONG` | `60_000` | Complex LLM operations |
diff --git a/ts/e2e-tests/_utils/src/const.ts b/ts/e2e-tests/_utils/src/const.ts
index e4a034d9f..7efdc41a5 100644
--- a/ts/e2e-tests/_utils/src/const.ts
+++ b/ts/e2e-tests/_utils/src/const.ts
@@ -17,7 +17,7 @@ export const WELL_KNOWN_DENO_VERSIONS = ['2.6.7', 'current'] as const;
export const TIMEOUTS = {
DEFAULT: 5_000,
- FIXTURE: 60_000,
+ FIXTURE: 120_000,
LLM_SHORT: 30_000,
LLM_LONG: 60_000,
} as const;
diff --git a/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts b/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts
index 88c4caf20..76da162e6 100644
--- a/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts
+++ b/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts
@@ -23,7 +23,7 @@ e2e(import.meta.url, {
defineTests: ({ runFixture }) => {
let result: E2ETestResultWithSetup;
- // npm install inside Docker needs more time than the default TIMEOUTS.FIXTURE (60s)
+ // npm install inside Docker needs more time than the default TIMEOUTS.FIXTURE (120s)
beforeAll(async () => {
result = await runFixture({
filename: 'index.mjs',