bug 1423014 - fix l10n rstrip bug. r=callek draft
authorAki Sasaki <asasaki@mozilla.com>
Mon, 04 Dec 2017 16:50:03 -0800
changeset 707274 75d32888b855f307ec9415f3dfd944f3b213e4a9
parent 707249 f2cf6d1473808039be5ecd8727cc3791d5d7d2d4
child 707275 109c28db7f42217306c082718ed2210f72e2e4e7
push id92066
push userasasaki@mozilla.com
push dateTue, 05 Dec 2017 02:03:03 +0000
reviewerscallek
bugs1423014
milestone59.0a1
bug 1423014 - fix l10n rstrip bug. r=callek 'win64-devedition-nightly'.rstrip('-nightly') gives us 'win64-deveditio' Changing to a .replace() fixes this. MozReview-Commit-ID: 37cS4IrSuRg
taskcluster/taskgraph/transforms/l10n.py
--- a/taskcluster/taskgraph/transforms/l10n.py
+++ b/taskcluster/taskgraph/transforms/l10n.py
@@ -278,17 +278,17 @@ def handle_keyed_by(config, jobs):
         for field in fields:
             resolve_keyed_by(item=job, field=field, item_name=job['name'])
         yield job
 
 
 @transforms.add
 def all_locales_attribute(config, jobs):
     for job in jobs:
-        locales_platform = job['attributes']['build_platform'].rstrip("-nightly")
+        locales_platform = job['attributes']['build_platform'].replace("-nightly", "")
         locales_with_changesets = _parse_locales_file(job["locales-file"],
                                                       platform=locales_platform)
         locales_with_changesets = _remove_locales(locales_with_changesets,
                                                   to_remove=job['ignore-locales'])
 
         locales = sorted(locales_with_changesets.keys())
         attributes = job.setdefault('attributes', {})
         attributes["all_locales"] = locales