commit bb26065e590f22367c4eabc3cfcc0e460b7dceb3
parent fb06302042ba9edd6781f1598837b4eb4858dfa8
Author: Eemeli Aro <eemeli@gmail.com>
Date: Wed, 26 Nov 2025 04:45:45 +0000
Bug 2002243 - Replace compare-locales with moz.l10n in Android linting r=android-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D273992
Diffstat:
3 files changed, 49 insertions(+), 49 deletions(-)
diff --git a/taskcluster/kinds/source-test/android-compare-locales.yml b/taskcluster/kinds/source-test/android-compare-locales.yml
@@ -1,48 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
----
-task-defaults:
- description: 'Validate android strings.xml with compare-locales'
- run-on-repo-type: [hg]
- run:
- using: run-task
- cwd: '{checkout}'
- command: 'pip install --break-system-packages --user "compare-locales>=5.0.2,<6.0" && /builds/worker/.local/bin/compare-locales --validate l10n.toml .'
- worker-type: t-linux-docker-amd
- platform: lint/opt
- treeherder:
- kind: other
- tier: 2
- worker:
- docker-image: {in-tree: lint}
- max-run-time: 1800
- use-python: system
-
-
-compare-locales-android-components:
- optimization:
- skip-unless-changed:
- - "mobile/android/android-components/**"
- run:
- cwd: '{checkout}/mobile/android/android-components'
- treeherder:
- symbol: compare-locales(AC)
-
-compare-locales-focus:
- optimization:
- skip-unless-changed:
- - "mobile/android/focus-android/**"
- run:
- cwd: '{checkout}/mobile/android/focus-android'
- treeherder:
- symbol: compare-locales(focus)
-
-compare-locales-fenix:
- optimization:
- skip-unless-changed:
- - "mobile/android/fenix/**"
- run:
- cwd: '{checkout}/mobile/android/fenix'
- treeherder:
- symbol: compare-locales(fenix)
diff --git a/taskcluster/kinds/source-test/android-l10n-lint.yml b/taskcluster/kinds/source-test/android-l10n-lint.yml
@@ -0,0 +1,48 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+---
+task-defaults:
+ description: 'Validate android strings.xml with moz.l10n'
+ run-on-repo-type: [hg]
+ run:
+ using: run-task
+ cwd: '{checkout}'
+ command: 'pip install --break-system-packages --user "moz.l10n[xml]~=0.10.1" && /builds/worker/.local/bin/l10n-lint --config ./l10n.toml'
+ worker-type: t-linux-docker-amd
+ platform: lint/opt
+ treeherder:
+ kind: other
+ tier: 2
+ worker:
+ docker-image: {in-tree: lint}
+ max-run-time: 1800
+ use-python: system
+
+
+l10n-lint-android-components:
+ optimization:
+ skip-unless-changed:
+ - "mobile/android/android-components/**"
+ run:
+ cwd: '{checkout}/mobile/android/android-components'
+ treeherder:
+ symbol: compare-locales(AC)
+
+l10n-lint-focus:
+ optimization:
+ skip-unless-changed:
+ - "mobile/android/focus-android/**"
+ run:
+ cwd: '{checkout}/mobile/android/focus-android'
+ treeherder:
+ symbol: compare-locales(focus)
+
+l10n-lint-fenix:
+ optimization:
+ skip-unless-changed:
+ - "mobile/android/fenix/**"
+ run:
+ cwd: '{checkout}/mobile/android/fenix'
+ treeherder:
+ symbol: compare-locales(fenix)
diff --git a/taskcluster/kinds/source-test/kind.yml b/taskcluster/kinds/source-test/kind.yml
@@ -21,7 +21,7 @@ kind-dependencies:
- build-fat-aar
tasks-from:
- - android-compare-locales.yml
+ - android-l10n-lint.yml
- android-detekt.yml
- android-lint.yml
- buildconfig.yml