-
Notifications
You must be signed in to change notification settings - Fork 687
Build aspire extension and allow acquisition from pr cli shell script #11245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build aspire extension and allow acquisition from pr cli shell script #11245
Conversation
🚀 Dogfood this PR with: curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 11245 Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 11245" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for building the VS Code Aspire extension as part of the build process and enables downloading and installing the extension through the get-aspire-cli-pr.sh
script. The changes support dogfooding workflows by making it easier to test extension builds from CI.
Key changes:
- Adds
--build-extension
parameter to build scripts for building the VS Code extension - Extends
get-aspire-cli-pr.sh
to download and install the Aspire extension from CI artifacts - Configures publishing of extension artifacts in the build pipeline
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
extension/package.json | Minor formatting cleanup for debug configuration |
eng/scripts/get-aspire-cli-pr.sh | Adds extension download and installation functionality with new CLI options |
eng/common/build.sh | Implements extension build functionality for Unix platforms |
eng/common/build.ps1 | Implements extension build functionality for Windows platforms |
eng/build.sh | Adds --build-extension parameter handling for the main build script |
eng/build.ps1 | Adds -buildExtension parameter handling for Windows build script |
eng/Publishing.props | Configures publishing of .vsix extension files as build artifacts |
these CI errors are really confusing me |
@@ -21,10 +21,13 @@ jobs: | |||
- name: Checkout code | |||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |||
|
|||
- name: Install VSCE tool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much time does this add to the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it adds a about a minute. It's not the long pole on the overall build (spread across acquisition and the publish operation itself). It isn't the long pole by any stretch so probably OK.
Some of the failures are because the |
c070f8d
to
7c50ca5
Compare
} | ||
|
||
# Function to install VS Code extension | ||
install_aspire_extension() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some team members use code-insiders
I think it would be good to allow people to target code insiders for specific builds.
This looks good overall. Good to have this happening as part of the build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one comment and +1 for code-insiders. other than LGTM!
eng/scripts/get-aspire-cli-pr.sh
Outdated
@@ -60,6 +64,7 @@ USAGE: | |||
--os OS Override OS detection (win, linux, linux-musl, osx) | |||
--arch ARCH Override architecture detection (x64, x86, arm64) | |||
--hive-only Only install NuGet packages to the hive, skip CLI download | |||
--skip-extension-install Skip VS Code extension download and installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit suggestion - Maybe --skip-extension
for fewer characters?
Description
Adds a parameter to the build scripts to build the aspire extension.
Allows acquisition of the CI aspire-extension vsix from the aspire-cli-pr shell script.
Adds the artifact to
Packaging.props
so it can eventually be downloaded inget-aspire-cli
scripts.@radical is there anything else necessary and does this all look right?? I want to make dogfooding easier and get to the point where we can install the extension from
get-aspire-cli
.Planning on following up with changes to
get-aspire-cli
.Checklist
<remarks />
and<code />
elements on your triple slash comments?doc-idea
templatebreaking-change
templatediagnostic
template