Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
chore(ci): cache turbo, bun, and uv and cancel superseded pr runs (#3747)
Alberto Schiabel8d5823be87fa
diff --git a/.github/actions/setup-node-pnpm-bun/action.yml b/.github/actions/setup-node-pnpm-bun/action.ymlindex 905803a9a..2ca2820bc 100644--- a/.github/actions/setup-node-pnpm-bun/action.yml+++ b/.github/actions/setup-node-pnpm-bun/action.yml@@ -14,6 +14,10 @@ inputs:description: 'Enable pnpm/tool cache'required: falsedefault: 'true'+ enable-turbo-cache:+ description: 'Cache .turbo build outputs'+ required: false+ default: 'false'outputs:node-version:@@ -93,6 +97,17 @@ runs:restore-keys: |${{ runner.os }}-node${{ steps.pnpm-store.outputs.NODE_VERSION }}-pnpm-store-+ - name: Cache turbo build outputs+ if: inputs.enable-caching == 'true' && inputs.enable-turbo-cache == 'true'+ uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5+ with:+ path: .turbo/cache+ # Keyed per job: concurrent jobs save different task graphs under the+ # same commit, and actions/cache is first-writer-wins on exact keys.+ key: ${{ runner.os }}-turbo-${{ github.job }}-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-${{ github.job }}-+- name: Report versionsid: versionsshell: bashdiff --git a/.github/workflows/docs-check-links.yml b/.github/workflows/docs-check-links.ymlindex dd1622735..e75f88eab 100644--- a/.github/workflows/docs-check-links.yml+++ b/.github/workflows/docs-check-links.yml@@ -9,6 +9,10 @@ on:- 'mise.toml'- 'mise.lock'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:check-links:runs-on: ubuntu-latest@@ -23,6 +27,14 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ - name: Cache bun dependencies+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ~/.bun/install/cache+ key: ${{ runner.os }}-bun-${{ hashFiles('docs/bun.lock') }}+ restore-keys: |+ ${{ runner.os }}-bun-+- name: Install dependenciesrun: bun installdiff --git a/.github/workflows/docs-search-sync.yml b/.github/workflows/docs-search-sync.ymlindex 140a37113..3b14f71c1 100644--- a/.github/workflows/docs-search-sync.yml+++ b/.github/workflows/docs-search-sync.yml@@ -38,6 +38,14 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ - name: Cache bun dependencies+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ~/.bun/install/cache+ key: ${{ runner.os }}-bun-${{ hashFiles('docs/bun.lock') }}+ restore-keys: |+ ${{ runner.os }}-bun-+- name: Install dependenciesrun: bun installdiff --git a/.github/workflows/docs-tests.yml b/.github/workflows/docs-tests.ymlindex 120e677d9..ce4ac2bec 100644--- a/.github/workflows/docs-tests.yml+++ b/.github/workflows/docs-tests.yml@@ -9,6 +9,10 @@ on:- 'mise.toml'- 'mise.lock'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:test:runs-on: ubuntu-latest@@ -23,6 +27,14 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ - name: Cache bun dependencies+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ~/.bun/install/cache+ key: ${{ runner.os }}-bun-${{ hashFiles('docs/bun.lock') }}+ restore-keys: |+ ${{ runner.os }}-bun-+- name: Install dependenciesrun: bun installdiff --git a/.github/workflows/docs-typescript-check.yml b/.github/workflows/docs-typescript-check.ymlindex c695dd910..cbecf51ea 100644--- a/.github/workflows/docs-typescript-check.yml+++ b/.github/workflows/docs-typescript-check.yml@@ -9,6 +9,10 @@ on:- 'mise.toml'- 'mise.lock'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:typescript-check:runs-on: ubuntu-latest@@ -23,6 +27,14 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ - name: Cache bun dependencies+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ~/.bun/install/cache+ key: ${{ runner.os }}-bun-${{ hashFiles('docs/bun.lock') }}+ restore-keys: |+ ${{ runner.os }}-bun-+- name: Install dependenciesrun: bun installdiff --git a/.github/workflows/docs-update-data.yml b/.github/workflows/docs-update-data.ymlindex 96e866809..eaf1c2e82 100644--- a/.github/workflows/docs-update-data.yml+++ b/.github/workflows/docs-update-data.yml@@ -77,6 +77,14 @@ jobs:echo "Configured staging API endpoints"+ - name: Cache bun dependencies+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0+ with:+ path: ~/.bun/install/cache+ key: ${{ runner.os }}-bun-${{ hashFiles('docs/bun.lock') }}+ restore-keys: |+ ${{ runner.os }}-bun-+- name: Install dependenciesrun: bun installdiff --git a/.github/workflows/py.check.yaml b/.github/workflows/py.check.yamlindex d900f5f85..4b7bbaa22 100644--- a/.github/workflows/py.check.yaml+++ b/.github/workflows/py.check.yaml@@ -18,6 +18,10 @@ on:- 'mise.toml'- 'mise.lock'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:common-checks:runs-on: ubuntu-latestdiff --git a/.github/workflows/py.test.yml b/.github/workflows/py.test.ymlindex d7d85f38d..43d648a3f 100644--- a/.github/workflows/py.test.yml+++ b/.github/workflows/py.test.yml@@ -24,6 +24,10 @@ on:- 'python/pyproject.toml'- 'python/requirements*.txt'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:toolchain-versions:name: Read toolchain test matrix@@ -55,13 +59,13 @@ jobs:with:python-version: ${{ matrix.python-version }}- - name: Cache pip dependencies+ - name: Cache uv dependenciesuses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0with:- path: ~/.cache/pip- key: pip-${{ matrix.python-version }}-${{ hashFiles('python/pyproject.toml') }}+ path: ~/.cache/uv+ key: uv-${{ matrix.python-version }}-${{ hashFiles('python/pyproject.toml', 'mise.toml') }}restore-keys: |- pip-${{ matrix.python-version }}-+ uv-${{ matrix.python-version }}-- name: Install UVrun: |diff --git a/.github/workflows/ts.audit.yml b/.github/workflows/ts.audit.ymlindex 1c45d9624..dd5814bb7 100644--- a/.github/workflows/ts.audit.yml+++ b/.github/workflows/ts.audit.yml@@ -18,6 +18,10 @@ on:- 'mise.toml'- 'mise.lock'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+jobs:audit:name: Auditdiff --git a/.github/workflows/ts.build.yml b/.github/workflows/ts.build.ymlindex c697fee02..4c62188a5 100644--- a/.github/workflows/ts.build.yml+++ b/.github/workflows/ts.build.yml@@ -9,6 +9,7 @@ on:- '.github/workflows/ts.build.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'- 'package.json'- 'pnpm-lock.yaml'- 'pnpm-workspace.yaml'@@ -20,11 +21,16 @@ on:- '.github/workflows/ts.build.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'- 'package.json'- 'pnpm-lock.yaml'- 'pnpm-workspace.yaml'- 'tsdown.config.base.ts'+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+# Print Turborepo telemetry events to the logs instead of sending them.env:TURBO_TELEMETRY_DEBUG: 1@@ -40,6 +46,8 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfilediff --git a/.github/workflows/ts.test-e2e.yml b/.github/workflows/ts.test-e2e.ymlindex 512a31e97..c0ebaffdc 100644--- a/.github/workflows/ts.test-e2e.yml+++ b/.github/workflows/ts.test-e2e.yml@@ -20,6 +20,10 @@ on:- 'toolchain-versions.json'workflow_dispatch:+concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}+# Print Turborepo telemetry events to the logs instead of sending them.env:TURBO_TELEMETRY_DEBUG: 1@@ -78,6 +82,8 @@ jobs:- name: Setup Node.js, pnpm, Bunid: setup-toolchainuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfile@@ -164,6 +170,8 @@ jobs:- name: Setup Node.js, pnpm, Bunid: setup-toolchainuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfile@@ -201,6 +209,8 @@ jobs:- name: Setup Node.js, pnpm, Bunid: setup-toolchainuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfile@@ -250,6 +260,7 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bunwith:+ enable-turbo-cache: 'true'node-version: '22.22.3'- name: Install Dependenciesdiff --git a/.github/workflows/ts.test.yml b/.github/workflows/ts.test.ymlindex a81ff74df..981a09594 100644--- a/.github/workflows/ts.test.yml+++ b/.github/workflows/ts.test.yml@@ -9,6 +9,7 @@ on:- '.github/workflows/ts.test.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'pull_request:branches: [master, next]paths:@@ -17,6 +18,11 @@ on:- '.github/workflows/ts.test.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'++concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:test:@@ -31,6 +37,8 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfilediff --git a/.github/workflows/ts.typecheck.yml b/.github/workflows/ts.typecheck.ymlindex 9e01ea913..dd32bff8c 100644--- a/.github/workflows/ts.typecheck.yml+++ b/.github/workflows/ts.typecheck.yml@@ -9,6 +9,7 @@ on:- '.github/workflows/ts.typecheck.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'pull_request:branches: [master, next]paths:@@ -17,6 +18,11 @@ on:- '.github/workflows/ts.typecheck.yml'- 'mise.toml'- 'mise.lock'+ - 'turbo.jsonc'++concurrency:+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:typecheck:@@ -29,6 +35,8 @@ jobs:- name: Setup Node.js, pnpm, Bunuses: ./.github/actions/setup-node-pnpm-bun+ with:+ enable-turbo-cache: 'true'- name: Install Dependenciesrun: pnpm install --frozen-lockfilediff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0028416c5..c6b2dec32 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1607,6 +1607,10 @@ importers:zod-to-json-schema:specifier: 'catalog:'version: 3.25.2([email protected])+ devDependencies:+ '@composio/core':+ specifier: workspace:*+ version: link:../corets/packages/ts-builders:dependencies:diff --git a/ts/packages/slim/package.json b/ts/packages/slim/package.jsonindex fbdabd49d..a505bd91f 100644--- a/ts/packages/slim/package.json+++ b/ts/packages/slim/package.json@@ -78,7 +78,7 @@],"scripts": {"clean": "git clean -xdf dist generated node_modules",- "build": "pnpm --filter @composio/core build && rm -rf dist generated && cp -R ../core/dist ./dist && rm -rf dist/docs && if [ -d ../core/generated ]; then cp -R ../core/generated ./generated; fi",+ "build": "rm -rf dist generated && cp -R ../core/dist ./dist && rm -rf dist/docs && if [ -d ../core/generated ]; then cp -R ../core/generated ./generated; fi","test": "node -e \"import('./dist/index.mjs').then(() => console.log('@composio/slim import ok'))\""},"keywords": [@@ -94,6 +94,9 @@"peerDependencies": {"zod": "^3.25 || ^4"},+ "devDependencies": {+ "@composio/core": "workspace:*"+ },"dependencies": {"@composio/client": "catalog:","@composio/json-schema-to-zod": "workspace:*",diff --git a/turbo.jsonc b/turbo.jsoncindex 1a817cfa8..89b589ee1 100644--- a/turbo.jsonc+++ b/turbo.jsonc@@ -5,6 +5,10 @@// mise stays the single source of truth. Turbo then infers pnpm from// pnpm-lock.yaml for workspace resolution."dangerouslyDisablePackageManagerCheck": true,+ // The toolchain (node, bun, pnpm, tsgo host) is pinned by mise, not by+ // package.json/lockfile, so toolchain bumps must invalidate every task hash+ // or restored CI caches would skip the very runs meant to validate them.+ "globalDependencies": ["mise.toml", "mise.lock"],"tasks": {"build": {"dependsOn": ["^build"],@@ -13,14 +17,15 @@"tsdown.config.ts",// for core"../../../tsdown.config.base.ts",+ "../../../tsconfig.base.json",// for providers- "../../../../tsdown.config.base.ts"+ "../../../../tsdown.config.base.ts",+ "../../../../tsconfig.base.json"],"outputs": ["dist/"]},"test": {- "dependsOn": ["^build"],- "outputs": ["dist/"]+ "dependsOn": ["^build"]},"test:e2e": {"dependsOn": ["^build"],@@ -56,7 +61,15 @@},"typecheck": {"dependsOn": ["^build"],- "cache": false+ // package tsconfigs extend the root base config, which lives outside the+ // package dirs and is therefore not part of $TURBO_DEFAULT$+ "inputs": [+ "$TURBO_DEFAULT$",+ // for core+ "../../../tsconfig.base.json",+ // for providers+ "../../../../tsconfig.base.json"+ ]},"typecheck:tsc": {"dependsOn": ["^build"],