Commit 909d1c8
committed
aitools: make update-prune acceptance test hermetic
The update-prune acceptance test detected Claude Code (~/.claude), so
`aitools update` tried to migrate raw skills to the native databricks
plugin by shelling out to `claude plugin install`. The captured output
depended on whether `claude` was on the host PATH: developer machines
with claude installed recorded the marketplace "install-failed" error,
while CI runners (no claude) produced a "cli-not-on-path" error, so the
golden diverged and the build job failed on every platform.
Detect Cursor instead, a skills-only agent with no databricks plugin, so
update exercises the raw-skill prune path (the test's actual subject)
without touching any plugin-capable agent's CLI. The plugin migration
path is already covered hermetically by unit tests in cmd/aitools.
The test now passes with or without claude on PATH.
Co-authored-by: Isaac1 parent 77fbdb0 commit 909d1c8
2 files changed
Lines changed: 7 additions & 5 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
0 commit comments