Make marketplace publish reruns tolerant of duplicate package failures#9516
Merged
Conversation
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update pipeline to handle duplicate package publish errors
Make marketplace publish reruns tolerant of duplicate package failures
Jul 9, 2026
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
…kout Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
JoeRobich
reviewed
Jul 9, 2026
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release pipeline publishing logic to be resilient to reruns where VSIX packages were already published, by centralizing the publish behavior in a PowerShell helper that can interpret vsce output and apply retry/backoff rules.
Changes:
- Replace direct
vsce publishinvocation inrelease.ymlwith aPublish-Vsix.ps1helper that supports duplicate-package detection and retries with 1/3/5 minute backoff. - Remove the global
@vscode/vsceinstall step and runvscevianpxinside the helper script. - Ensure
Publish-Vsix.ps1is included in the build artifact (Packages) so the release pipeline can execute it.
Show a summary per file
| File | Description |
|---|---|
| azure-pipelines/release.yml | Switches marketplace publishing to run Publish-Vsix.ps1 (with PreRelease/DryRun/CI flags) and sets isPrerelease output. |
| azure-pipelines/Publish-Vsix.ps1 | New script that publishes signed VSIXes via npx @vscode/vsce, detects duplicate-package errors, and retries failures with backoff. |
| azure-pipelines/build-vsix.yml | Copies Publish-Vsix.ps1 into the Packages artifact so it’s available during release publishing. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 2
Comment on lines
+162
to
+163
| $vsceArgs += '--azure-credential' | ||
|
|
Member
There was a problem hiding this comment.
I have run this locally and did not run into any issue here.
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
akhera99
approved these changes
Jul 10, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
|
||
| $publishArgs += '-CI' | ||
|
|
||
| Write-Host "##[command]& $publishScript $($publishArgs -join ' ')" |
akhera99
approved these changes
Jul 10, 2026
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.
PublishToMarketplaceStepcurrently fails hard when a rerun encounters packages that were already published. This updates the release pipeline to treat the known duplicate-packagevsceerror as success, while still retrying real publish failures with the requested 1/3/5 minute backoff schedule.Publish step resiliency
vsce @publishArgsso the step can inspect both command output and exit code before deciding whether to fail, retry, or continue.vscecommand logging.Duplicate publish detection
vsceduplicate-package error line shape, e.g.ERROR ... v<version> already exists.Retry behavior for real failures
Failure handling
parameters.test == truebehavior unchanged.