Fix SSMS VSIX release step + bump to 1.11.2 (#343)#346
Merged
Conversation
The v1.11.1 release attempt exposed two bugs in the VSIX step added in #344: 1. The "Warn if SSMS extension build failed" step had `(issue #343)` in a single-line `run:` value. YAML treated ` #343)"` as a comment, leaving pwsh an unterminated string. The step failed, and because it was not continue-on-error it failed the whole job - skipping signing, Velopack, and every artifact upload. v1.11.1 was created empty and has been deleted. 2. The VSIX build itself failed: `msbuild -t:Restore,Build` evaluates the project once before Restore writes the package-generated props, so VSToolsPath never got redirected into the Microsoft.VSSDK.BuildTools package and the VSSDK targets could not be found (MSB4226). Fixes: - Build the VSIX with `msbuild -restore -t:Build` so Restore runs in its own evaluation and the VSSDK targets resolve without the VS workload. - Remove the separate warn step. The build step now only sets a `BUILT` output on success and the upload is gated on it - nothing in the SSMS path can fail the job anymore. - Drop non-ASCII characters from the run-block strings. - Bump version to 1.11.2 (1.11.1 is burned). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the SSMS VSIX release step from #344. The v1.11.1 release attempt was the test that exposed both bugs.
What went wrong with v1.11.1
YAML comment ate part of a command. The
Warn if SSMS extension build failedstep had(issue #343)in a single-linerun:value. YAML treats#as the start of a comment, so the command became an unterminated pwsh string and the step failed. That step was notcontinue-on-error, so it failed the wholereleasejob — skipping signing, Velopack, and every artifact upload. v1.11.1 was created empty and has since been deleted (release + tag).The VSIX build genuinely failed with
MSB4226: ...Microsoft.VsSDK.targets was not found.msbuild -t:Restore,Buildevaluates the project once before Restore writes the package-generated props, soVSToolsPathwas never redirected into theMicrosoft.VSSDK.BuildToolspackage — the runner has no VS extension-development workload, so the VSSDK targets were unreachable.Fixes
msbuild -restore -t:Build— Restore runs in its own evaluation, so theMicrosoft.VSSDK.BuildToolspackage props are in place before Build and the VSSDK targets resolve without the VS workload.BUILToutput on success; the upload is gated on it. Nothing in the SSMS path can fail thereleasejob anymore — worst case is a release without the VSIX plus a CI warning.run:-block strings.Test plan
main, the v1.11.2 release run should attachPlanViewer.Ssms.vsix+InstallSsmsExtension.exeand complete signing/Velopack/zip uploads. The-restorefix for the VSIX is a strong diagnosis but is verified only by that run; if it still fails, the release now completes cleanly without the VSIX instead of breaking.🤖 Generated with Claude Code