Skip to content

Commit 24917fb

Browse files
Merge branch 'main' into feat/mcp-apps-support
2 parents 40ab151 + c5d9b82 commit 24917fb

471 files changed

Lines changed: 5294 additions & 18220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ jobs:
169169
run: sed -i -E 's/^version = ".*"$/version = "${{ needs.version.outputs.version }}"/' Cargo.toml
170170
- name: Snapshot CLI version + hashes for build.rs
171171
run: bash scripts/snapshot-bundled-cli-version.sh
172-
- name: Verify snapshot file exists
172+
- name: Verify cli-version.txt exists
173173
run: |
174-
if [[ ! -f bundled_cli_version.txt ]]; then
175-
echo "::error::bundled_cli_version.txt was not generated. The Snapshot step must run before packaging."
174+
if [[ ! -f cli-version.txt ]]; then
175+
echo "::error::cli-version.txt was not generated. The Snapshot step must run before packaging."
176176
exit 1
177177
fi
178178
- name: Package (dry run)

.github/workflows/rust-sdk-tests.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,38 @@ jobs:
7373
prefix-key: v1-rust-no-bin
7474
cache-bin: false
7575

76+
- name: Read pinned @github/copilot CLI version
77+
id: cli-version
78+
working-directory: ./nodejs
79+
run: |
80+
version=$(node -p "require('./package-lock.json').packages['node_modules/@github/copilot'].version")
81+
echo "version=$version" >> "$GITHUB_OUTPUT"
82+
echo "Pinned CLI version: $version"
83+
84+
# Share the bundled-CLI archive cache with the `bundle` job: build.rs
85+
# now downloads in both modes (embed for `bundle`, extract-to-cache
86+
# for this `test` job's `--no-default-features` build).
87+
- name: Cache bundled CLI tarball
88+
uses: actions/cache@v4
89+
with:
90+
path: ./rust/.bundled-cli-cache
91+
key: bundled-cli-${{ matrix.os }}-${{ steps.cli-version.outputs.version }}
92+
7693
- name: cargo fmt --check (nightly)
7794
if: runner.os == 'Linux'
7895
run: cargo +nightly-2026-04-14 fmt --all -- --config-path .rustfmt.nightly.toml --check
7996

8097
- name: cargo clippy
8198
if: runner.os == 'Linux'
99+
env:
100+
BUNDLED_CLI_CACHE_DIR: ${{ github.workspace }}/rust/.bundled-cli-cache
82101
run: cargo clippy --all-targets --features test-support -- --no-deps -D warnings -D clippy::unwrap_used -D clippy::disallowed_macros -D clippy::await_holding_invalid_type
83102

84103
- name: cargo doc
85104
if: runner.os == 'Linux'
86105
env:
87106
RUSTDOCFLAGS: "-D warnings"
107+
BUNDLED_CLI_CACHE_DIR: ${{ github.workspace }}/rust/.bundled-cli-cache
88108
run: cargo doc --no-deps --all-features
89109

90110
- name: Install test harness dependencies
@@ -101,9 +121,12 @@ jobs:
101121
RUST_E2E_CONCURRENCY: 4
102122
COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }}
103123
COPILOT_CLI_PATH: ${{ steps.setup-copilot.outputs.cli-path }}
104-
# `--no-default-features` disables the bundled-cli download; the
105-
# tests use the CLI provided by setup-copilot via COPILOT_CLI_PATH.
106-
# The dedicated `bundle` job below exercises the bundling pipeline.
124+
BUNDLED_CLI_CACHE_DIR: ${{ github.workspace }}/rust/.bundled-cli-cache
125+
# `--no-default-features` selects dev mode: build.rs still downloads
126+
# + verifies + extracts the CLI to the per-user cache, but doesn't
127+
# embed it. Tests exec against the setup-copilot CLI via
128+
# COPILOT_CLI_PATH (the env override wins over the dev cache).
129+
# The dedicated `bundle` job below exercises the embed pipeline.
107130
run: cargo test --no-default-features --features test-support -- --test-threads=4 --nocapture
108131

109132
# Validates the bundled-CLI build path on all three supported

.github/workflows/scenario-builds.yml

Lines changed: 0 additions & 237 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
docs/.validation/
44
.DS_Store
55

6-
# Rust scenario build artifacts
7-
test/scenarios/**/rust/target/
8-
test/scenarios/**/rust/Cargo.lock
96

107
# Visual Studio
118
.vs/

0 commit comments

Comments
 (0)