Skip to content

[release/v7.6.6] Fix the localization tests for Release Automation - #27945

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:release/v7.6.6from
daxian-dbw:backport/release/v7.6.6/27944-fcdb9f0c3
Sep 2, 2026
Merged

[release/v7.6.6] Fix the localization tests for Release Automation#27945
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:release/v7.6.6from
daxian-dbw:backport/release/v7.6.6/27944-fcdb9f0c3

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

Backport of #27944 to release/v7.6.6

Triggered by Dongbo Wang (@daxian-dbw) on behalf of Dongbo Wang (@daxian-dbw)

Original CL Label: CL-Test

/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)

Fixes LocProject.json and satellite-assembly Pester tests that fail in the Release Automation pipeline. LocProject.json tests now skip when running under Release Automation (file isn't available there), and satellite assembly tests now only run when the installed PowerShell is an MSIX package (which is the only package type that ships localized resource assemblies).

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Test-only change (Pester test files). Verified by running the updated tests both in a normal repo checkout (tests still execute/pass) and simulating the Release Automation environment variable (PIPELINE_REPOSITORY_NAME=Release-Automation) to confirm the tests are properly skipped.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Change is limited to test skip-logic in two Pester test files; no product/runtime code is touched. Narrow, well-scoped change with no customer-facing impact.

Copilot AI lite review requested due to automatic review settings September 2, 2026 05:32
@daxian-dbw Dongbo Wang (daxian-dbw) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Sep 2, 2026
@azure-pipelines

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

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.

🟢 Approval recommended

The changes are narrowly scoped to test skip-logic for a specific pipeline environment and don’t affect product/runtime behavior.

Pull request overview

Updates localization-related Pester tests on release/v7.6.6 to avoid failures when run under the Release Automation pipeline, where certain repo artifacts and installed-package contents differ from a normal repo checkout.

Changes:

  • Skip LocProject.json validation tests when running under Release Automation (where LocProject.json isn’t available).
  • Conditionally skip satellite-assembly validation in Release Automation unless the installed PowerShell appears to be an MSIX install.
  • Harden LocProject.json loading by using -ErrorAction Stop for file read and JSON parsing.
File summaries
File Description
test/powershell/engine/ResourceValidation/LocProject.Tests.ps1 Adds Release Automation skip logic and stricter file/JSON error handling for LocProject validation tests.
test/powershell/engine/ResourceValidation/LocalizedResource.Tests.ps1 Adds Release Automation MSIX detection to decide whether to run satellite assembly assertions.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit d208fb8 into PowerShell:release/v7.6.6 Sep 2, 2026
36 checks passed
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the backport/release/v7.6.6/27944-fcdb9f0c3 branch September 2, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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