Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
md 13 lines 811 Bytes
Rendered Raw
1 # CLI `composio upgrade` Test
2
3 Verifies that the compiled Linux CLI atomically replaces its running executable.
4
5 The suite covers both the installed `/usr/local/bin/composio` path and a copied executable. Each case checks the inode replacement, executable bit, upgrade result, absence of Linux busy-file errors, and a subsequent `composio version` invocation.
6
7 Those bundles carry no `release-manifest.json`, so the CLI checks them against the companion names compiled into itself. Two more bundles carry one: a bundle that omits the generation runtime and every legacy placeholder still upgrades and runs, and installs its manifest; a bundle whose manifest requires a newer CLI than the installed `release-tag.txt` records is refused with the install left untouched.
8
9 ## Running
10
11 ```bash
12 pnpm test:e2e:cli
13 ```