Skip to content

Add values-car pruning regression test#746

Open
mokagio wants to merge 1 commit into
add/prune-orphaned-translationsfrom
mokagio/pr734-values-car-regression
Open

Add values-car pruning regression test#746
mokagio wants to merge 1 commit into
add/prune-orphaned-translationsfrom
mokagio/pr734-values-car-regression

Conversation

@mokagio

@mokagio mokagio commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What does it do?

Adds test-only coverage showing that android_prune_orphaned_translations currently treats values-car as a locale directory and prunes car UI mode resources.
No production fix is included; this is stacked on #734 to make the review finding executable.

Expected failure:

bundle exec rspec spec/android_prune_orphaned_translations_spec.rb

The new example, leaves car UI mode qualifier directories untouched, fails with expected: 0, got: 1.

Checklist before requesting a review

  • Run bundle exec rubocop to test for code style violations and recommendations.
  • Add Unit Tests (aka specs/*_spec.rb) if applicable.
  • Run bundle exec rspec to run the whole test suite and ensure all your tests pass.
  • Make sure you added an entry in the CHANGELOG.md file to describe your changes under the appropriate existing ### subsection of the existing ## Trunk section.
  • If applicable, add an entry in the MIGRATION.md file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

Android's `car` qualifier represents UI mode, not a locale, so the pruning action should leave `values-car` resources untouched.
This is intentionally test-only coverage; the production fix is not included.

---

Generated with the help of Codex, https://openai.com/codex

Co-Authored-By: Codex GPT-5 <noreply@openai.com>
@mokagio mokagio self-assigned this Jun 26, 2026
@dangermattic

dangermattic commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator
1 Warning
⚠️ Please add an entry in the CHANGELOG.md file to describe the changes made by this PR

Generated by 🚫 Danger

@mokagio mokagio requested a review from oguzkocer June 26, 2026 03:26
@mokagio mokagio marked this pull request as ready for review June 26, 2026 03:26
Copilot AI review requested due to automatic review settings June 26, 2026 03:26

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants