[release/v7.5] Update metadata.json to update the Latest attribute with a better name#26826
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request backports changes from #26380 to the release/v7.5 branch, standardizing release metadata property naming by renaming "Latest" to "PublishToChannels" in metadata.json and all pipeline templates that reference it. This change corrects a previous typo in the LTSRelease object ("PulishToChannels") and ensures consistent naming conventions across the release pipeline infrastructure.
Changes:
- Updated metadata.json to rename "Latest" property to "PublishToChannels" for both LTSRelease and StableRelease objects
- Updated pipeline templates (channelSelection.yml, release-prep-for-ev2.yml, release-upload-buildinfo.yml) to reference the new PublishToChannels property
- Additional environmental improvements including DOTNET_NOLOGO variable update and environment variable output formatting
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tools/metadata.json | Renamed "Latest" property to "PublishToChannels" in LTSRelease and StableRelease objects; updated version tags for v7.5.4 release |
| .pipelines/templates/release-upload-buildinfo.yml | Updated references from .Latest to .PublishToChannels; added new variables for release metadata; improved environment variable display |
| .pipelines/templates/release-prep-for-ev2.yml | Updated LTSRelease.Latest reference to LTSRelease.PublishToChannels; removed trailing whitespace |
| .pipelines/templates/channelSelection.yml | Updated both LTSRelease.Latest and StableRelease.Latest to use PublishToChannels; reorganized variable definitions for better clarity |
| $metadata = Get-Content -LiteralPath "$toolsDirectory/metadata.json" -ErrorAction Stop | ConvertFrom-Json | ||
| $stableReleaseTag = $metadata.StableReleaseTag -Replace 'v','' | ||
|
|
||
| $currentReleaseTag = $buildInfo.ReleaseTag -Replace 'v','' |
There was a problem hiding this comment.
This line references $buildInfo before it's defined. The $buildInfo variable is not created until line 69, so this line will fail at runtime with an error about using an undefined variable. This line appears to be a duplicate of line 71 and should be removed.
| $currentReleaseTag = $buildInfo.ReleaseTag -Replace 'v','' |
Backport of #26380 to release/v7.5
Triggered by @daxian-dbw on behalf of @adityapatwardhan
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
Updates release pipeline templates to use standardized 'PublishToChannels' property instead of 'Latest' in metadata.json. Required for proper release channel selection in LTS and Stable releases.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Validated through existing CI/CD pipeline tests. The metadata property rename from 'Latest' to 'PublishToChannels' is referenced in pipeline templates and will be exercised during release pipeline execution.
Risk
REQUIRED: Check exactly one box.
This is a metadata property rename to standardize naming conventions. The change is isolated to release pipeline templates and metadata configuration files. No runtime code changes.
Merge Conflicts
Resolved conflicts in .pipelines/templates/release-upload-buildinfo.yml and tools/metadata.json due to version-specific differences in the release branch.