Commit Graph

26 Commits

Author SHA1 Message Date
Nick Alexander
4c24977226 Bug 1407672 - Add docker-image and toolchain support to l10n leaf jobs. r=Callek
This approach allows to specify the `docker-image` and set of
`toolchains` to the l10n leaf jobs using the `by-platform:` override
mechanism.  We don't support anything but in-tree docker images at
this time, and the schema will warn if a different type of docker
configuration block is used.  It wouldn't be hard to grow the
additional blocks, but let's reduce duplication for now.

It might be considered better to inherit the `docker-image` and set of
`toolchains` from the underlying `dependent-task`, but we don't do
that for two reasons.  The main reason is that it's an explicit goal
to be able to "cross repack": to repack, say, a Windows binary on a
Linux worker.  In that situation, the docker-image and toolchains
differ between the builder and the repack worker.

A smaller technical obstruction is that by the time the l10n transform
sees the dependent task, the docker image and set of toolchains have
been processed.  The l10n transform would have to "reconstitute" the
docker image changes and the set of toolchains; it would be very
fragile.

Taken together, it's better to be explicit, reduce unexpected
interactions, and repeat the information in the l10n leaf tasks.

MozReview-Commit-ID: TmgJyYU5dx
2017-10-10 15:57:57 -07:00
Aki Sasaki
f5286670d1 bug 1345619 - sorted locales. r=Callek
Diffing `target-graph`s was difficult because the locales kept shuffling.
This patch will keep the locales in alphabetical order.

MozReview-Commit-ID: GvGYF7j9ftq
2017-09-25 10:17:07 -07:00
Aki Sasaki
f5c3f232fa bug 1345619 - look for build_platform in l10n-changesets.json. r=Callek
Stop hardcoding `android`, since we want to use this for desktop too.
We could potentially remove the `android` platform from the bumper configs
at this point.

We strip `-nightly` from the `build_platform` before comparing against the
`l10n-changesets.json` platform list. If we want to support different sets
of ci and nightly locales, we could either:

- point at a second changesets file for ci. This could either be a flatfile
or json; either works. or,
- explicitly name `win32-nightly` etc. in the platform list, and stop removing
the `-nightly` from the `build_platform` before comparing. This means some
locales may have up to 10 different platforms listed. This may get unwieldy,
but would be explicit.

MozReview-Commit-ID: Fvpby92cXdg
2017-09-25 10:16:32 -07:00
Aki Sasaki
b848447c40 bug 1394130 - point osx l10n at the repackage task to avoid re-signing widevine. r=callek
The signing pool is a limited resource. We already have logic to avoid re-signing
widevine if the .sig files are there, and we're taking advantage of that on linux
and windows. OSX was the lone desktop os still pointing at the unsigned bits for
l10n.

We're pointing at repackage instead of signing because the l10n logic expects a dmg.

MozReview-Commit-ID: FtWa4o5s7aJ
2017-08-30 09:50:07 -07:00
Aki Sasaki
b9eb30d090 bug 1390266 - l10n repack the linux signed tarball. r=Callek
MozReview-Commit-ID: LAJoFkS9jga
2017-08-14 16:10:43 -07:00
Aki Sasaki
32d40e5783 bug 1389260 - split by max # of locales per chunk. fix nightly l10n. r=bustage a=merge
MozReview-Commit-ID: Z4fW5rugEP
2017-08-10 17:25:46 -07:00
Justin Wood
14eae019ef Bug 1386332 - Clarify signing tasks. r=dustin
MozReview-Commit-ID: 3v0gXy4PXfy
2017-08-01 13:23:12 -04:00
Justin Wood
035a8232f4 Bug 1386332 - Clarify repackage-signing tasks. r=dustin
MozReview-Commit-ID: BAgZWf6ril5
2017-08-01 12:13:37 -04:00
Justin Wood
f36b5e1b4e Bug 1381577 - Part U; Add tc win l10n to the taskgraph, and don't try to sign it yet. r=kmoir
Land date changes to support windows nightlies onto central

MozReview-Commit-ID: EK4JQI4Rqgo
2017-07-18 14:22:15 -04:00
Andrew Halberstadt
bce781d9b8 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr
2017-06-15 12:10:59 -04:00
Dustin J. Mitchell
f3f59ca1c7 Bug 1359976: base worker payload generation on worker-type; r=wcosta r=aki
To date we have variously specified both worker-type and worker-implementation,
often manually coordinated. We also embedded a few awkward assumptions such as
that the native engine only runs on OS X.

But a worker type has one and only one implementation, and that implementation
is stable over time (as changing it would require simultaneous landings on all
trees).

Instead, this change makes worker-type the primary configuration, and derives
both a worker implementation (defining the payload format) and worker OS
(determining what to include in the payload) from that value. The derivation
occurs when deciding how to implement a particular job, where the run_using
functions are distinguished by worker implementation.

The two-part logic to determine how and where to run a test task based on its
platform is combined into a single transform, `set_worker_type`.

This contains some other related changes:
 - MOZ_AUTOMATION is set in specific jobs, rather than everywhere docker-worker
   is used
 - the URL to test packages is factored out into a shared function
 - docker-worker test defaults are applied in `mozharness_test.py`
 - the WORKER_TYPE array in `task.py`, formerly mixing two types of keys, is
   split
 - the 'invalid' workerType is assigned an 'invalid' implementation
 - all tasks that do not use job descriptions but use docker-worker, etc. have
   `worker.os` added

Tested to not produce a substantially different taskgraph for a regular push, a
try push, or a nightly cron.

MozReview-Commit-ID: LDHrmrpBo7I
2017-05-08 22:53:50 +00:00
Justin Wood
1d20026caa Bug 1357867 - add support for 'ignore-locales' in tc l10n jobs. r=dustin
MozReview-Commit-ID: ENKm5mOG3BH
2017-04-19 10:35:18 -04:00
Johan Lorenzo
54f32a1bed Bug 1352477 - taskgraph ignores run-on-project for fennec-nightlies r=aki
MozReview-Commit-ID: 2cdNTV11gdn
2017-04-03 14:53:08 +02:00
Dustin J. Mitchell
a94a910f43 Bug 1337360: remove unnecessary schema for attributes; r=Callek
MozReview-Commit-ID: H3TXMIUn7OT
2017-03-22 18:00:03 +00:00
Dustin J. Mitchell
63883a08b2 Bug 1337360: move chainOfTrust into extra; r=Callek
MozReview-Commit-ID: 2bo60MFPoDG
2017-03-22 16:48:40 +00:00
Dustin J. Mitchell
b7a652c5b1 Bug 1337360: check for schema elements that aren't dashed-identifiers, with whitelist; r=Callek
MozReview-Commit-ID: FirYCrjFXAS
2017-03-22 16:24:38 +00:00
Johan Lorenzo
f3e8ab6cfe Bug 1337825 - Schedule l10n repacks for fennec with specified locale revisions using an intree changesets file r=aki
MozReview-Commit-ID: 1DEIjFYAx74
2017-02-17 15:57:11 +01:00
Carsten "Tomcat" Book
9ec4955bc9 Backed out changeset c7c9f7712163 (bug 1337825) for flake8 failure 2017-02-17 15:52:10 +01:00
Johan Lorenzo
afb10b4dc6 Bug 1337825 - Schedule l10n repacks for fennec with specified locale revisions using an intree changesets file r=aki
MozReview-Commit-ID: 1DEIjFYAx74
2017-02-14 15:04:54 +01:00
Dustin J. Mitchell
7182ad3228 Bug 1334167: allow by-project for cron jobs' when property; r=Callek
This requires moving the schema utilities to their own util module.

MozReview-Commit-ID: KR5xSJ9ak5Y
2017-02-01 00:30:52 +00:00
Justin Wood
bd9add02d6 Bug 1333531 - chunkify.chunkify breaks if less locales are in all-locales than chunks in decision task. r=aki
MozReview-Commit-ID: Hr7KgyHIMlc
2017-01-27 15:47:30 -05:00
Justin Wood
ed12e363bb Bug 1301495 - Taskcluster l10n indexing should match mozharness' l10n indexing. r=dustin a=RyanVM
Adds l10n and nightly indexing, matching (better) what Buildbot is currently doing with these types of tasks
(This patch is against `date`, will be grafted on review for real landing, using autoland)

MozReview-Commit-ID: K0BYwaCm6xL
2017-01-09 16:23:04 -05:00
Justin Wood
ff228ab664 Bug 1322041 - Add chain of trust to l10n jobs. r=dustin
Involved work which landed on the date project branch with:
* No Bug, by asasaki@mozilla.com (https://hg.mozilla.org/projects/date/rev/b82459a453a6)
* Bug 1326093, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/f64a03d94ac7)

MozReview-Commit-ID: Fmg2nouDedc
2016-12-04 16:37:05 -10:00
Justin Wood
57c425aefe Bug 1322041 - Nightly l10n support, and docs. r=dustin
Involved work which landed on the date project branch with:

* No Bug, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/e7af20515b1c,
                               https://hg.mozilla.org/projects/date/rev/d7f0f1c6d564,
                               https://hg.mozilla.org/projects/date/rev/db530d7a4672)
* Bug 1171738, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/a906f6997731,
                                    https://hg.mozilla.org/projects/date/rev/ada87315d4c0,
                                    https://hg.mozilla.org/projects/date/rev/fbee52f145e9,
                                    https://hg.mozilla.org/projects/date/rev/2939b68e59fc)
* Bug 1312000, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/79a2f66ff5c0)
* Bug 1312396, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/dc06c58a5663)
* Bug 1312585, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/7cf267b61752)
* Bug 1316527, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/cc2d9365d9b9)
* Bug 1318068, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/7cb11cb76a09)
* Bug 1326093, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/f64a03d94ac7)

MozReview-Commit-ID: Fhom5OcIWru
2017-01-06 09:13:41 -05:00
Justin Wood
e8b093b677 Bug 1322041 - Add Docs for L10n and add locales_file parsing. r=dustin
Involved work which landed on the date project branch with:
* Bug 1312585, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/dc1926812404,
                                    https://hg.mozilla.org/projects/date/rev/7cf267b61752)
* Bug 1171738, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/a906f6997731)
* Bug 1314008, by Callek@gmail.com (https://hg.mozilla.org/projects/date/rev/bbc7608106c0,
                                    https://hg.mozilla.org/projects/date/rev/a80373508881)

MozReview-Commit-ID: 3MVTRgzLYc0
2016-12-13 11:06:48 -05:00
Justin Wood
841a2bce27 Bug 1306598 - update l10n kind to not hardcode 'try' in options. r=dustin
MozReview-Commit-ID: Hmj51RZSkf6
2016-09-29 14:59:49 -04:00