@devries-cameron20 / composio-1 / commits / 558d1344d
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.

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

The /install/<shell> variant routes still 404 in production, so the harness's prod mode now selects the shell with COMPOSIO_INSTALL_SHELL on the base /install route, and the scheduled matrix gains a fish leg. The Docker harness invocation stays in place; a workflow comment records how to restore variant-route coverage once the routes ship.

jkomyno committed Aug 4, 2026 at 00:16 UTC 558d1344dd2768086459a8822e92997ac1eb6db0
2 files changed +16 -5
.github/workflows/cli.install-e2e.yml
+7
@@ -30,6 +30,11 @@ permissions:
30 contents: read
31
32 jobs:
33 + # The shell-variant routes (/install/bash, /install/zsh, /install/fish) are not
34 + # provisioned in production yet — they 404. Until they ship, the harness's prod
35 + # mode installs through the base /install route and selects the shell with
36 + # COMPOSIO_INSTALL_SHELL (see ts/e2e-tests/cli/install/e2e.test.ts); restore the
37 + # variant-route coverage there once the routes are live.
38 production:
39 name: Production install (${{ matrix.shell }}, ${{ matrix.version }})
40 if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
@@ -43,6 +48,8 @@ jobs:
48 version: latest
49 - shell: zsh
50 version: latest
51 + - shell: fish
52 + version: latest
53 - shell: zsh
54 version: '@composio/cli@0.3.1'
55
ts/e2e-tests/cli/install/e2e.test.ts
+9 -5
@@ -352,15 +352,19 @@ if (config.mode === 'prod' && config.version === 'latest') {
352 it(
353 'makes composio available in a fresh login shell',
354 async () => {
355 - const route = config.shell === 'bash' ? 'install' : 'install/zsh';
355 + // The /install/<shell> variant routes are not provisioned in production
356 + // yet (404); select the shell through COMPOSIO_INSTALL_SHELL on the base
357 + // route until they ship.
358 + const loginShell = (script: string) =>
359 + config.shell === 'fish' ? `fish -l -c '${script}'` : `${config.shell} -ilc '${script}'`;
360 const result = await run(`
361 set -eu
362 test ! -d "$HOME/.local/bin"
359 -curl -fsSL "$INSTALL_BASE_URL/${route}" | SHELL=/bin/${config.shell} sh
363 +curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} SHELL=/bin/${config.shell} sh
364 test -x "$HOME/.composio/composio"
365 test -L "$HOME/.local/bin/composio"
362 -test "$(${config.shell} -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
363 -${config.shell} -ilc 'composio --version'
366 +test "$(${loginShell('command -v composio')})" = "$HOME/.local/bin/composio"
367 +${loginShell('composio --version')}
368 `);
369 assertSuccess(result);
370 },
@@ -382,7 +386,7 @@ if "$HOME/.composio/composio" install --help | grep -q -- '--shell'; then
386 exit 1
387 fi
388 test "$(grep -Fc '# Composio CLI' "$HOME/.${config.shell}rc")" = 1
385 -curl -fsSL "$INSTALL_BASE_URL/install/${config.shell}" | sh -s -- "$E2E_VERSION"
389 +curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} sh -s -- "$E2E_VERSION"
390 test "$(grep -Fc '# Composio CLI' "$HOME/.${config.shell}rc")" = 1
391 test "$(${config.shell} -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
392 ${config.shell} -ilc 'composio --version'