Commit Graph

12 Commits

Author SHA1 Message Date
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
Dustin J. Mitchell
a9378c6eb6 Bug 1326547: require that regexps in by-* match entire string; r=Callek
MozReview-Commit-ID: GxVAGHtCrzf
2017-01-03 18:43:48 -05:00
Dustin J. Mitchell
cf95e9c69c Bug 1326547: replace get_keyed_by with resolve_keyed_by; r=Callek
MozReview-Commit-ID: FS1nbVyykXV
2017-01-05 13:42:14 -05:00
Dustin J. Mitchell
c12b3058e6 Bug 1302192: fix python lint; a=me
MozReview-Commit-ID: LiCkvZYHBaX
2016-12-28 15:40:47 +00:00
Dustin J. Mitchell
11fe5483ff Bug 1302192: ensure that only one option matches by-*; r=wcosta
If an item matches exactly, it is always selected.  This will catch the case
where multiple regular expressions match (the previous version would silently
pick one based on dictionary order).

I was worried this was occurring, but because exact matches items are selected,
it is not; still, best to be sure.

MozReview-Commit-ID: EtZBTr61SvE
2016-12-23 21:20:51 +00:00
Dustin J. Mitchell
31c2d2d209 Bug 1325465: add schema helper optionally_keyed_by; r=jmaher
MozReview-Commit-ID: 8CgYe2F3uxY
2016-12-22 21:02:29 +00:00
Andrew Halberstadt
96cea74a5f Bug 1318438 - [taskcluster] "job" tasks should have ability to run on multiple platforms, r=dustin
This adds an optional "platforms" key to the job description. It can be used in conjunction with
"by-platform" like so:

platforms:
    - linux
    - windows
worker-type:
    by-platform:
        linux: ...
        windows: ...
worker:
    by-platform:
        linux: ...
        windows: ...

MozReview-Commit-ID: JwL1NAR4bnY
2016-11-18 15:07:56 -05:00
Dustin J. Mitchell
481f9b7242 Bug 1321330: fix some aliasing issues; r=jmaher
Always copy objects after schema validation applies defaults, in case the
defaults are mutable (`.., default=[]`)

When duplicating objects for e10s, copy *before* yielding, as the object will
be mutated before the yield returns.

As a consequence of the previous point, tests have not yet had `extra-options`
expanded via `by-test-platform` when it comes time to append to it, so perform
that expansion early.  This will get cleaner when bug 1302192 is completd.

MozReview-Commit-ID: 76z4OlqZg82
2016-11-30 18:45:55 +00:00
Dustin J. Mitchell
6b0aa907ab Bug 1286075: dump data that fails validation; r=wcosta
This was Wander's idea, in fact!

MozReview-Commit-ID: fGBjfYwPv8
2016-08-31 20:10:19 +00:00
Geoff Brown
4ece27a16a Bug 1295225 - Allow regex in taskcluster by-test-platform; r=dustin 2016-08-16 14:56:46 -06:00
Geoff Brown
187c773a93 Bug 1280440 - Add TC Android x86 tests, tier 2; r=dustin 2016-08-02 09:37:44 -06:00
Dustin J. Mitchell
7f8ec1b437 Bug 1281004: Specify test tasks more flexibly; r=gps; r=gbrown
This introduces a completely new way of specifying test task in-tree,
completely replacing the old spider-web of YAML files.

The high-level view is this:

 - some configuration files are used to determine which test suites to run
   for each test platform, and against which build platforms

 - each test suite is then represented by a dictionary, and modified by a
   sequence of transforms, duplicating as necessary (e.g., chunks), until
   it becomes a task definition

The transforms allow sufficient generality to support just about any desired
configuration, with the advantage that common configurations are "easy" while
unusual configurations are supported but notable for their oddness (they
require a custom transform).

As of this commit, this system produces the same set of test graphs as the
existing YAML, modulo:

  - extra.treeherder.groupName -- this was not consistent in the YAML
  - extra.treeherder.build -- this is ignored by taskcluster-treeherder anyway
  - mozharness command argument order
  - boolean True values for environment variables are now the string "true"
  - metadata -- this is now much more consistent, with task name being the label

Testing of this commit demonstrates that it produces the same set of test tasks for
the following projects (those which had special cases defined in the YAML):

  - autoland
  - ash (*)
  - willow
  - mozilla-inbound
  - mozilla-central
  - try:
    -b do -p all -t all -u all
    -b d -p linux64,linux64-asan -u reftest -t none
    -b d -p linux64,linux64-asan -u reftest[x64] -t none[x64]

(*) this patch omits the linux64/debug tc-M-e10s(dt) test, which is enabled on
ash; ash will require a small changeset to re-enable this test.

IGNORE BAD COMMIT MESSAGES (because the hook flags try syntax!)

MozReview-Commit-ID: G34dg9f17Hq
2016-07-11 23:27:14 +00:00