Commit 393d158
ci: validate embedded-cli bundle build on macOS / Linux / Windows
The default `cargo test` job in rust-sdk-tests.yml runs on all three
supported platforms but does not set `COPILOT_CLI_VERSION` — which
means `build.rs` short-circuits immediately and the embedded-cli
bundle path (download + SHA-256 verify + extract + zstd compress +
embed) is never exercised in CI. After the recent switch from
shelling out to `curl` over to `ureq` with retry logic in
`build.rs`, that gap matters: the new HTTP client + cross-platform
TLS code path needs cross-platform CI coverage before it ships.
Adds a parallel `bundle` job to the same workflow:
- 3-OS matrix: ubuntu-latest, macos-latest, windows-latest.
- Reads the pinned CLI version from `nodejs/package.json` so the
bundle test always tracks the same version the rest of the SDK
ships against — no separate version source to drift.
- Caches the downloaded archive in `./rust/.bundled-cli-cache` keyed
on OS + CLI version, so steady-state CI doesn't refetch ~130 MB
on every run. Cache miss (e.g. first run after a CLI bump)
exercises the full download path end-to-end, which is the
regression surface this job is meant to catch.
- Runs `cargo build --features embedded-cli` to drive `build.rs`
through the full pipeline. Doesn't run `cargo test` — the test
job already covers runtime behavior; this job is specifically
validating the bundle build.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7a5f57e commit 393d158
1 file changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
0 commit comments