Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 17:15 UTC
ci(cli): avoid unavailable installer routes
jkomyno committed
Aug 4, 2026 at 18:17 UTC
4a179f8fdc0ec102a032348b57eb28c4a6a59613
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
@@ -242,15 +242,19 @@ if (config.mode === 'prod' && config.version === 'latest') {
242
it(
243
'makes composio available in a fresh login shell',
244
async () => {
245
- const route = config.shell === 'bash' ? 'install' : 'install/zsh';
245
+ // The /install/<shell> variant routes are not provisioned in production
246
+ // yet (404); select the shell through COMPOSIO_INSTALL_SHELL on the base
247
+ // route until they ship.
248
+ const loginShell = (script: string) =>
249
+ config.shell === 'fish' ? `fish -l -c '${script}'` : `${config.shell} -ilc '${script}'`;
250
const result = await run(`
251
set -eu
252
test ! -d "$HOME/.local/bin"
249
-curl -fsSL "$INSTALL_BASE_URL/${route}" | sh
253
+curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} SHELL=/bin/${config.shell} sh
254
test -x "$HOME/.composio/composio"
255
test -L "$HOME/.local/bin/composio"
252
-test "$(${config.shell} -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
253
-${config.shell} -ilc 'composio --version'
256
+test "$(${loginShell('command -v composio')})" = "$HOME/.local/bin/composio"
257
+${loginShell('composio --version')}
258
`);
259
assertSuccess(result);
260
},
@@ -271,7 +275,7 @@ if "$HOME/.composio/composio" install --help | grep -q -- '--shell'; then
275
echo 'expected the pinned CLI to predate install --shell' >&2
276
exit 1
277
fi
274
-curl -fsSL "$INSTALL_BASE_URL/install/${config.shell}" | sh -s -- "$E2E_VERSION"
278
+curl -fsSL "$INSTALL_BASE_URL/install" | COMPOSIO_INSTALL_SHELL=${config.shell} sh -s -- "$E2E_VERSION"
279
test "$(grep -Fc '# Composio CLI' "$HOME/.zshrc")" = 1
280
test "$(zsh -ilc 'command -v composio')" = "$HOME/.local/bin/composio"
281
zsh -ilc 'composio --version'