Skip to content

Fix LocProject.json tests and trigger CIs on changes to LocProject.json - #27988

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:loc-test
Sep 9, 2026
Merged

Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
daxian-dbw:loc-test

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

Fix LocProject.json tests and trigger CIs on changes to LocProject.json.

PR Checklist

Copilot AI lite review requested due to automatic review settings September 8, 2026 19:28
@daxian-dbw
Dongbo Wang (daxian-dbw) requested a review from a team as a code owner September 8, 2026 19:28
@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 the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Sep 8, 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.

🟢 Approval recommended

The changes are small, targeted, and align with the current LocProject.json structure; remaining feedback is limited to minor test-robustness improvements.

Pull request overview

This PR updates the localization configuration validation to account for the single .xml entry in Localize/LocProject.json, and ensures CI path filtering treats changes to LocProject.json as “source” changes so relevant workflows run.

Changes:

  • Adjust LocProject.Tests.ps1 to validate .resx vs .xml LocItems with the correct OutputPath/CopyOption expectations.
  • Update the resource count test to compare .resx items against the repo’s src/**/resources/**/*.resx count and assert the expected .xml item count.
  • Extend the path-filters composite action so edits to Localize/LocProject.json trigger “source” CI.
File summaries
File Description
test/powershell/engine/ResourceValidation/LocProject.Tests.ps1 Fixes/extends Pester assertions to handle both .resx and the single .xml localization entry, and corrects the total-resource-count validation.
.github/actions/infrastructure/path-filters/action.yml Treats Localize/LocProject.json changes as “source” changes to trigger CI appropriately.
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
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