Commit Graph

21 Commits

Author SHA1 Message Date
Gregory Szorc
61b22ffc3d Bug 1469999 - Use yaml.safe_load() in taskgraph; r=dustin
yaml.load() can evaluate arbitrary Python code via syntax such as
`!!python/object/apply:os.system`. Seriously.

Let's switch taskgraph to yaml.safe_load(), which is reasonable
about limiting magic.

Differential Revision: https://phabricator.services.mozilla.com/D1736
2018-06-25 21:34:30 +00:00
Chris AtLee
280a2c7b21 Bug 1450029: Remove buildbot/buildbot-bridge references from taskcluster r=aki,tomprince
MozReview-Commit-ID: Hu9ju4XVQpA
2018-05-01 16:07:19 -04:00
Aki Sasaki
4a027d465c bug 1423081 - desktop release update/final verify support. r=callek
MozReview-Commit-ID: AJsterLOwYg
2017-12-05 19:21:21 -08:00
Andrew Halberstadt
153caad1f2 Bug 1414919 - [taskgraph] Create a 'rebuild' morph template, r=dustin
This template takes a single integer as input, and sets the 'task_duplicates'
attribute on any tasks that were explicitly specified by try_task_config.json.
This means dependent tasks or 'always_target' tasks will not be rebuilt.

To support this template, the apply_jsone_templates morph now requires the
entire try_task_config object instead of just the templates.

MozReview-Commit-ID: DwxUtlC5VD5
2017-11-07 10:22:35 -05:00
Andrew Halberstadt
6844837bf2 Bug 1414919 - [taskgraph] Allow morph templates to also modify task attributes, r=dustin
The motivation for this change is to create a 'rebuild' template that sets
'attributes.task_duplicates'. A nice side effect is that if any of 'task'
or 'attributes' aren't explicitly set, we can ignore the result which means
we don't need to have a whole bunch of 'else' clauses in the templates.

MozReview-Commit-ID: DX3UyFGb4ff
2017-11-07 10:18:56 -05:00
Dustin J. Mitchell
d08f492fb6 Bug 1383880: parse try config during the decision task; r=ahal
This sets the try_mode property, and parses the try message (if given), early
in the decision task and puts the results into the parameters.

The proximate need is to set optimze_target_tasks for some try modes and not
others. This also replaces the existing logic for parsing messages for certain
kinds, and makes the distinction between the different try modes a little
clearer.

MozReview-Commit-ID: AXJEGLh6pEV
2017-08-21 23:14:14 +00:00
Phil Ringnalda
b76b48b887 Backed out 12 changesets (bug 1383880) for decision task bustage
CLOSED TREE

Backed out changeset fd3615e7e0a3 (bug 1383880)
Backed out changeset 8cceb6a82bfb (bug 1383880)
Backed out changeset 571a6c9054a5 (bug 1383880)
Backed out changeset ec2b8ba5a949 (bug 1383880)
Backed out changeset 8e5847d9acda (bug 1383880)
Backed out changeset b354fdf6e233 (bug 1383880)
Backed out changeset ebdd6ccbcfca (bug 1383880)
Backed out changeset ebcc9d20981a (bug 1383880)
Backed out changeset 97eedc84d6e8 (bug 1383880)
Backed out changeset a3116da52b4e (bug 1383880)
Backed out changeset b3eb0c939720 (bug 1383880)
Backed out changeset 7c07cb798530 (bug 1383880)

MozReview-Commit-ID: EPDuQHr7w2y
2017-09-20 19:57:39 -07:00
Dustin J. Mitchell
a7457a95f7 Bug 1383880: parse try config during the decision task; r=ahal
This sets the try_mode property, and parses the try message (if given), early
in the decision task and puts the results into the parameters.

The proximate need is to set optimze_target_tasks for some try modes and not
others. This also replaces the existing logic for parsing messages for certain
kinds, and makes the distinction between the different try modes a little
clearer.

MozReview-Commit-ID: AXJEGLh6pEV
2017-08-21 23:14:14 +00:00
Ryan VanderMeulen
c41dc43ff0 Backed out 9 changesets (bug 1383880) for decision task bustage.
Backed out changeset 53f5d47a7cb0 (bug 1383880)
Backed out changeset a0abda41172a (bug 1383880)
Backed out changeset 729a7e2091e8 (bug 1383880)
Backed out changeset a33f5a14a471 (bug 1383880)
Backed out changeset 5b10d321cfee (bug 1383880)
Backed out changeset 8056488d8aed (bug 1383880)
Backed out changeset e62c90e3c1e8 (bug 1383880)
Backed out changeset 91f116ce6c2a (bug 1383880)
Backed out changeset 045498bc36c4 (bug 1383880)
2017-09-01 15:37:08 -04:00
Dustin J. Mitchell
464d6eeb31 Bug 1383880: parse try config during the decision task; r=ahal
This sets the try_mode property, and parses the try message (if given), early
in the decision task and puts the results into the parameters.

The proximate need is to set optimze_target_tasks for some try modes and not
others. This also replaces the existing logic for parsing messages for certain
kinds, and makes the distinction between the different try modes a little
clearer.

MozReview-Commit-ID: AXJEGLh6pEV
2017-08-21 23:14:14 +00:00
Andrew Halberstadt
91fd656da8 Bug 1387135 - Add ability to apply templates to task definitions via try_task_config.json, r=dustin
This provides a mechanism to modify the behaviour of tasks from a try push. The try_task_config.json
looks something like:

{
  "tasks": ["build-linux64/opt", "test-linux64/opt-mochitest-e10s-1"],
  "templates": {
    "artifact": {"enabled": 1}
  }
}

This tells taskgraph to apply the 'artifact' template to all tasks. Templates are JSONe based
.yml files that live under taskcluster/taskgraph/templates. Taskgraph will render every template
against every task definition. The templates themselves can then use JSONe condition statements to
filter out which tasks they should or shouldn't apply to.

MozReview-Commit-ID: J8HVZzOt4mX
2017-08-15 11:36:29 -04:00
Wander Lairson Costa
a34be664cd Bug 1367087: Update firefox.latest.macosx64-opt index. r=dustin
The current indexed task has a big rank number, we blocks a new indexed
task update.

Add an index rank to uploader task big enough to replace the old indexed
task.

MozReview-Commit-ID: Hg5Ya4D0qYt
2017-05-23 11:58:28 -03:00
Wander Lairson Costa
1b3a2d4deb Bug 1365350: make uploader task a dependency of tests. r=dustin,garndt
For some reason, tests sometimes start before uploader task is finished,
we then make it a dependency to avoid the bug.

MozReview-Commit-ID: JlA471DUYPN
2017-05-17 17:42:21 -03:00
Sebastian Hengst
b9bf939cba Backed out changeset 79027b4b7762 (bug 1365350) for frequently failing gecko decision task with 'Bad Request'. r=backout 2017-05-17 20:30:03 +02:00
Wander Lairson Costa
de48f60387 Bug 1365350: make uploader task a dependency of tests. r=garndt
For some reason, tests sometimes start before uploader task is finished,
we then make it a dependency to avoid the bug.

MozReview-Commit-ID: FDkmEnHlwKo
2017-05-17 09:09:14 -03:00
Wander Lairson Costa
3149975d7c Bug 1362949: Fix macosx64-opt index routes. r=dustin
The macosx64-opt build task executes through buildbot-bridge, and there
is a specific task in which artifacts are uploaded.

MozReview-Commit-ID: GTOXBwBdwfM
2017-05-09 08:36:05 -07:00
Wander Lairson Costa
ef0ed2d437 Bug 1350413 part 1: move macosx64/opt build to buildbot-bridge. r=dustin
Because of bug 1338651, we need to stick to BBB macosx64 builds for now.

MozReview-Commit-ID: AwQc5r6ikUN
2017-05-02 16:12:51 -03:00
Dustin J. Mitchell
98f195cf5c Bug 1353456: summarize index routes to avoid scope bloat; r=jonasfj
MozReview-Commit-ID: 6ACnfKy2g0z
2017-04-04 19:26:15 +00:00
Justin Wood
a131a22dfd Bug 1347889 - use 'relative-datestamp' instead of typo 'relative-timestamp' in morphs, to unbreak task submission. r=dustin
MozReview-Commit-ID: 8GCKi6r4WUD
2017-03-16 09:44:36 -04:00
Dustin J. Mitchell
dd9b29eae7 Bug 1347569: don't add optmized tasks to task.dependencies; r=Callek
`task.dependencies` is part of the internal taskgraph calculations, so it must
only refer to tasks that are being created, and not to those which already
exist.  `task.task['dependencies']`, on the other hand, is what is given to
`queue.createTask` and expresses all dependencies.

MozReview-Commit-ID: GJ6JVj6JMBz
2017-03-15 14:54:12 +00:00
Dustin J. Mitchell
cef5efbeff Bug 1333255: introduce graph morphs, use them to make index tasks; r=jonasfj
Graph morphs modify the graph after optimization, without changing its meaning.
In this case, that means adding index tasks that will insert paths into the
index beyond the relatively limited number afforded in task.routes.

MozReview-Commit-ID: AJy4exX7q2v
2017-03-07 20:39:27 +00:00