-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[release/v7.5] Add version in description and pass store task on failure. #26896
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
Open
TravisEz13
wants to merge
1
commit into
PowerShell:release/v7.5
Choose a base branch
from
TravisEz13:backport/release/v7.5/26885-7311378cf
base: release/v7.5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,8 +57,15 @@ jobs: | |
|
|
||
| $json.listings.'en-us'.baseListing.releaseNotes = $message | ||
|
|
||
| # Add PowerShell version to the top of the description | ||
| $description = $json.listings.'en-us'.baseListing.description | ||
| $version = "$(ReleaseTag)" | ||
| $updatedDescription = "Version: $version`n`n$description" | ||
| $json.listings.'en-us'.baseListing.description = $updatedDescription | ||
| Write-Verbose -Verbose "Updated description: $updatedDescription" | ||
|
|
||
| $json | ConvertTo-Json -Depth 100 | Set-Content $jsonPath -Encoding UTF8 | ||
| displayName: 'Update Release Notes in JSON' | ||
| displayName: 'Add Changelog Link and Version Number to SBJSON' | ||
|
|
||
| - task: PowerShell@2 | ||
| inputs: | ||
|
|
@@ -115,7 +122,8 @@ jobs: | |
|
|
||
| - task: MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3 | ||
| 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 | ||
| inputs: | ||
| serviceEndpoint: 'StoreAppPublish-Stable' | ||
| appId: '$(AppID)' | ||
|
|
@@ -128,7 +136,8 @@ jobs: | |
|
|
||
| - task: MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3 | ||
| 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 | ||
|
||
| inputs: | ||
| serviceEndpoint: 'StoreAppPublish-Preview' | ||
| appId: '$(AppID)' | ||
|
|
||
Oops, something went wrong.
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.
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.
Using
continueOnError: trueon a critical publishing task is concerning. According to the PR description, this is added "because it always fails," but this suggests an underlying issue that should be investigated rather than suppressed.Publishing to the Microsoft Store is a critical operation - if it's failing, the pipeline should alert on that failure so it can be investigated. Using
continueOnError: truemeans the pipeline will appear to succeed even if publishing actually fails, which could result in releases not being published without anyone noticing.Recommended approach:
continueOnError: truefor non-critical diagnostic steps, not for critical operations like publishingIf there's a legitimate reason why this task should continue on error (e.g., the store has manual approval steps that cause the task to timeout but the submission still succeeds), that should be documented in a comment explaining the rationale.