feat(engine): split copilot CLI install path by compile target#584
Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/eb129b79-de79-40cb-8d16-950d16644d40 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
| )); | ||
| } | ||
|
|
||
| Ok(format!( |
There was a problem hiding this comment.
@copilot depending on version (i.e. latest/specific version), please have two separate steps. This bash script is unweildy
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/8ae2f8d4-e2d0-430b-98b6-5c63d8555544 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
/rust-review |
|
✅ Rust PR Reviewer completed successfully! |
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/8ae2f8d4-e2d0-430b-98b6-5c63d8555544 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
🔍 Rust PR ReviewSummary: Looks good overall — the target-aware split is well-structured and the SHA256 verification is a solid security addition. A few things worth addressing before merge. Findings🐛 Bugs / Logic Issues
|
|
@copilot implement review feedback and suggestions |
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/14275add-688b-4cc5-bfac-afc3db1a0567 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Implemented the rust-review feedback in 65e2a91: updated stale install/version comments, added debug listing after tar extraction, and added tests for 1ES Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Are these covered by our bash linter? |
Yes. |
Summary
Standalone pipelines previously depended on a 1ES-only NuGet feed to install Copilot CLI, which breaks for customers without that feed. This PR aligns installation behavior with gh-aw by using GitHub Releases for non-1ES targets while preserving NuGet-based install for 1ES.
Install strategy split by target
target: 1eskeeps the existingNuGetAuthenticate@1+NuGetCommand@2flow.standalone/job/stageinstall Copilot CLI fromgithub/copilot-clirelease artifacts withSHA256SUMS.txtverification.Compiler wiring update
Engine::install_stepsis target-aware.front_matter.targetinto install-step generation.Follow-up from review feedback
latest(.../releases/latest/download).../releases/download/vX.Y.Z)normalize_version_taghelperRuntime contract preserved
/tmp/awf-tools/copilotfor AWF execution, so downstream invocation behavior is unchanged.Additional test coverage
target: 1eswithengine.version: latestto ensure-Versionis omitted.v-prefixed pinned versions.normalize_version_tagno double-prefix behavior.Test plan
cargo test engine_version_cargo test engine_install_onees_uses_nuget_feedcargo test engine_install_onees_latest_omits_version_argumentcargo test engine_version_accepts_valid_with_v_prefixcargo test normalize_version_tag_does_not_double_prefix_vcargo buildcargo testcargo clippy --all-targets --all-featuresparallel_validation(Code Review passed; CodeQL timed out in tool run)