Skip to content

[release/v7.6.7] Fix LocProject.json tests and trigger CIs on changes to LocProject.json - #28104

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:release/v7.6.7from
daxian-dbw:backport/release/v7.6.7/27988-0a64a2d92
Sep 25, 2026
Merged

Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:release/v7.6.7from
daxian-dbw:backport/release/v7.6.7/27988-0a64a2d92

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

Backport of #27988 to release/v7.6.7

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 broken LocProject.json tests and ensures CI pipelines trigger correctly when LocProject.json is modified, improving localization tooling reliability.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Original PR fixed the LocProject.json test suite and added CI triggers for changes to that file; verified by confirming the tests pass and CI runs on LocProject.json edits. Backport verified by confirming the cherry-pick applied cleanly with no conflicts on release/v7.6.7.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Low risk: fixes existing localization test coverage and ensures CI is triggered on LocProject.json changes. No product runtime code is modified.

Copilot AI lite review requested due to automatic review settings September 24, 2026 22:58
@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 24, 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.

Copilot review overview

🟡 Changes recommended

The critical resource-count test assertion cannot pass with the current repository layout.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Backports localization validation fixes and ensures CI runs when LocProject.json changes.

Changes:

  • Separates .resx and .xml validation and counts.
  • Adds LocProject.json to source-change detection.
File Summary
test/​powershell/​engine/​ResourceValidation/​LocProject.Tests.ps1 Updates validation, but the resource-count assertion remains unable to find nested resource directories.
.github/​actions/​infrastructure/​path-filters/​action.yml Includes LocProject.json in CI source detection.

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

}

$project.LocItems.Count | Should -Be $totalResourceCount
$resxLocItemCount | Should -Be $totalResourceCount
@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 2db50ea into PowerShell:release/v7.6.7 Sep 25, 2026
36 checks passed
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the backport/release/v7.6.7/27988-0a64a2d92 branch September 25, 2026 00:09
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.

2 participants