Skip to content

[release/v7.4] Add version in description and pass store task on failure.#26895

Merged
jshigetomi merged 2 commits intoPowerShell:release/v7.4from
TravisEz13:backport/release/v7.4/26885-7311378cf
Mar 2, 2026
Merged

[release/v7.4] Add version in description and pass store task on failure.#26895
jshigetomi merged 2 commits intoPowerShell:release/v7.4from
TravisEz13:backport/release/v7.4/26885-7311378cf

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Feb 25, 2026

Backport of #26895 and #26920 to release/v7.4

Triggered by @jshigetomi

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Improves the v7.4 MSIX release pipeline by adding version information to app description and enabling error continuation in store publish tasks for better error handling and release visibility.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Verified by running MSIX release pipeline on main branch. Changes to store publish tasks have been tested and confirmed to improve pipeline resilience and release note visibility without breaking existing functionality.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This modifies critical MSIX release pipeline steps. However, the changes have been tested in main and are localized to improving store publishing error handling and release note visibility. The variable syntax update aligns with best practices.

@TravisEz13 TravisEz13 requested a review from a team as a code owner February 25, 2026 21:05
Copilot AI review requested due to automatic review settings February 25, 2026 21:05
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Feb 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backport to release/v7.4 that updates the MSIX Store publish template to improve Store listing clarity (by adding version info to the app description) and to make Store publish steps non-blocking when the Store publish task fails.

Changes:

  • Prepends ReleaseTag version information to the Store listing description inside the SBJSON payload.
  • Updates Store publish task conditions to use variables['...'] syntax.
  • Marks Store publish tasks with continueOnError: true so the job can proceed even if publishing fails.

displayName: 'Publish StoreBroker Package (Preview)'
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq('$(PREVIEW)', 'true'))
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['PREVIEW'], 'true'))
continueOnError: true
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern as above: continueOnError: true on the Preview Store publish task deviates from the repo’s typical usage (diagnostics-only) and can hide an actual publish outage.

If tolerating failures is required, please document the rationale inline (and/or gate via a parameter) so future maintainers don’t assume Store publishing is optional.

Suggested change
continueOnError: true

Copilot uses AI. Check for mistakes.

# Add PowerShell version to the top of the description
$description = $json.listings.'en-us'.baseListing.description
$version = "$(ReleaseTag)"
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor maintainability: $version = "$(ReleaseTag)" duplicates $tagString which was already set from $(ReleaseTag) earlier in the same script. Reusing the existing $tagString (or deriving version from it once) reduces duplication and ensures the changelog link and description are always based on the exact same value.

Suggested change
$version = "$(ReleaseTag)"
$version = $tagString

Copilot uses AI. Check for mistakes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I trade with you,??

Comment on lines 108 to +110
displayName: 'Publish StoreBroker Package (Stable/LTS)'
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), or(eq('$(STABLE)', 'true'), eq('$(LTS)', 'true')))
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), or(eq(variables['STABLE'], 'true'), eq(variables['LTS'], 'true')))
continueOnError: true
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continueOnError: true is typically only used in this repo for non-critical diagnostic steps (e.g., “Capture Downloaded Artifacts” in .pipelines/templates/linux-package-build.yml / packaging/windows/package.yml). Using it on the actual Store publish task risks masking a real publish failure and letting the stage complete without a clear signal.

Consider either (1) adding an explicit comment here explaining the known/expected failure mode that makes this safe, or (2) gating continueOnError behind a parameter so it’s only enabled when you intentionally want to tolerate Store publish failures, while keeping the default behavior strict.

Copilot uses AI. Check for mistakes.
@jshigetomi jshigetomi merged commit f4ff81d into PowerShell:release/v7.4 Mar 2, 2026
35 checks passed
jshigetomi added a commit to jshigetomi/PowerShell that referenced this pull request Mar 2, 2026
@elon62094-ship-it
Copy link

Send me your email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants