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.

ci(cli): keep scheduled prod install E2E off unprovisioned shell routes

jkomyno558d1344dd27
diff --git a/.github/workflows/cli.install-e2e.yml b/.github/workflows/cli.install-e2e.yml
index d72bb616c..90b7d696e 100644
--- a/.github/workflows/cli.install-e2e.yml
+++ b/.github/workflows/cli.install-e2e.yml
@@ -30,6 +30,11 @@ permissions:
contents: read
jobs:
+ # The shell-variant routes (/install/bash, /install/zsh, /install/fish) are not
+ # provisioned in production yet — they 404. Until they ship, the harness's prod
+ # mode installs through the base /install route and selects the shell with
+ # COMPOSIO_INSTALL_SHELL (see ts/e2e-tests/cli/install/e2e.test.ts); restore the
+ # variant-route coverage there once the routes are live.
production:
name: Production install (${{ matrix.shell }}, ${{ matrix.version }})
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
@@ -43,6 +48,8 @@ jobs:
version: latest
- shell: zsh
version: latest
+ - shell: fish
+ version: latest
- shell: zsh
version: '@composio/[email protected]'
diff --git a/ts/e2e-tests/cli/install/e2e.test.ts b/ts/e2e-tests/cli/install/e2e.test.ts
index f56051f0c..681ffb084 100644
--- a/ts/e2e-tests/cli/install/e2e.test.ts
+++ b/ts/e2e-tests/cli/install/e2e.test.ts
@@ -352,15 +352,19 @@ if (config.mode === 'prod' && config.version === 'latest') {
it(
'makes composio available in a fresh login shell',
async () => {
- const route = config.shell === 'bash' ? 'install' : 'install/zsh';
+ // The /install/<shell> variant routes are not provisioned in production
+ // yet (404); select the shell through COMPOSIO_INSTALL_SHELL on the base
+ // route until they ship.
+ const loginShell = (script: string) =>
+ config.shell === 'fish' ? `fish -l -c '${script}'` : `${config.shell} -ilc '${script}'`;
const result = await run(`
set -eu
test ! -d "$HOME/.local/bin"
-curl -fsSL "$INSTALL_BASE_URL/${route}" | SHELL=/bin/${config.shell} sh
+curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} SHELL=/bin/${config.shell} sh
test -x "$HOME/.composio/composio"
test -L "$HOME/.local/bin/composio"
-test "$(${config.shell} -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
-${config.shell} -ilc 'composio --version'
+test "$(${loginShell('command -v composio')})" = "$HOME/.local/bin/composio"
+${loginShell('composio --version')}
`);
assertSuccess(result);
},
@@ -382,7 +386,7 @@ if "$HOME/.composio/composio" install --help | grep -q -- '--shell'; then
exit 1
fi
test "$(grep -Fc '# Composio CLI' "$HOME/.${config.shell}rc")" = 1
-curl -fsSL "$INSTALL_BASE_URL/install/${config.shell}" | sh -s -- "$E2E_VERSION"
+curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} sh -s -- "$E2E_VERSION"
test "$(grep -Fc '# Composio CLI' "$HOME/.${config.shell}rc")" = 1
test "$(${config.shell} -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
${config.shell} -ilc 'composio --version'