Skip to content

Fix the localization tests for Release Automation - #27944

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:release-automation-tests
Sep 1, 2026
Merged

Fix the localization tests for Release Automation#27944
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:release-automation-tests

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

Fix the localization tests for Release Automation.

  • LocProject.json tests depend on the LocProject.json file is available, which is not the case for Release Automation. So, they should be skipped for Release Automation.
  • Satellite assembly tests depend on the running PowerShell has those resource assemblies. Since we only ship resource assemblies in MSIX package, we should only enable them for test runs with MSIX installed PowerShell.

@daxian-dbw
Dongbo Wang (daxian-dbw) requested a review from a team as a code owner September 1, 2026 22:05
Copilot AI lite review requested due to automatic review settings September 1, 2026 22:05
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@daxian-dbw Dongbo Wang (daxian-dbw) added CL-Test Indicates that a PR should be marked as a test change in the Change Log Backport-7.6.x-Consider labels Sep 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new skip conditions are partly gated on a newly introduced pipeline environment variable and don’t fully implement the PR’s stated “MSIX-installed pwsh only” behavior outside Release Automation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates localization-focused Pester tests so they don’t fail in Release Automation scenarios where required repo artifacts or installed satellite resources aren’t present.

Changes:

  • Add conditional skipping for LocProject.json validation tests intended to run only from a full local repo checkout.
  • Add conditional skipping for satellite assembly validation so it only runs when appropriate for the installed PowerShell context.
File summaries
File Description
test/powershell/engine/ResourceValidation/LocProject.Tests.ps1 Adds Release-Automation-aware skipping and makes JSON loading errors terminating.
test/powershell/engine/ResourceValidation/LocalizedResource.Tests.ps1 Adds conditional skip logic for satellite assembly validation based on environment/install type.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/powershell/engine/ResourceValidation/LocProject.Tests.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.6.x-Done CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants