Commit Graph
10 Commits
Author SHA1 Message Date
Tom Prince 1b5387cfd8 Bug 1507898: [taskgraph] Factor out schema validation in transformations; r=dustin
Most jobs include at least one transform that verifies the input of all the
tasks against a schema. This code is duplicated in each transform. Refactor it,
so that we only need one copy of the logic.

Differential Revision: https://phabricator.services.mozilla.com/D12165
2018-11-20 23:44:12 +00:00
Narcis Beleuzu 87aec3eb00 Backed out changeset e947694d0ed7 (bug 1507898) for Linting failure. CLOSED TREE 2018-11-21 00:29:17 +02:00
Tom Prince e6b2bfdab7 Bug 1507898: [taskgraph] Factor out schema validation in transformations; r=dustin
Most jobs include at least one transform that verifies the input of all the
tasks against a schema. This code is duplicated in each transform. Refactor it,
so that we only need one copy of the logic.

Differential Revision: https://phabricator.services.mozilla.com/D12165
2018-11-20 22:09:34 +00:00
Tom Prince c49d27180d Bug 1502253: [taskgraph] Remove some single-variant Any schemas; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D9885
2018-10-26 19:10:42 +00:00
Ionut Goldan 7e61adcdbe Bug 1472979 - Add Web Tooling Benchmark as a jsshell-bench test r=jmaher
Add Web Tooling Benchmark & (WIP) setup fetch task

Differential Revision: https://phabricator.services.mozilla.com/D2646
2018-08-13 07:29:07 +00:00
Gregory Szorc 8dd22437bc Bug 1467359 - Derive Treeherder symbol names for fetch jobs; r=tomprince
Having to define them explicitly feels too redundant for my liking.

I believe we didn't do this before because we were defining things
in terms of "using: fetch-url." Now that we are using a custom
transform, we can have nice things.

Differential Revision: https://phabricator.services.mozilla.com/D1575
2018-06-06 20:46:56 -07:00
Gregory Szorc 38e5b52239 Bug 1467359 - Implement fetch-url jobs using a transform; r=tomprince
Previously, the fetch kind was defined by a job "using" flavor.

An upcoming commit will need to derive new tasks from fetch job
definitions. In order to do this, we require a transform. And
this transform would need access to the original data from the
job description. But by the time the "using" transform runs, a
lot of this data is thrown away. It would be possible to stuff
the meaningful metadata inside attributes on the created task.
But this would result in the fetch logic being fragmented across
multiple Python modules (a fetch-specific transform and a job/using-
specific transform). I think it is better to keep all that logic
in a single Python module.

This commit converts the "using: fetch-url" job transform to a
dedicated transform for the fetch kind.

Since we're now using a dedicated transform, we no longer need
to use the normal job schema for defining fetch jobs. So we
refactor the schema a little so it is simpler.

I verified the taskgraph output is nearly identical to before by
diffing the JSON output of `mach taskgraph full`. Aside from the
additions of ['worker']['implementation'] and ['worker']['os']
fields (which seem to be required by a schema somewhere), everything
was identical.

Differential Revision: https://phabricator.services.mozilla.com/D1574
2018-06-20 16:25:34 -07:00
Cosmin Sabou 5ca0084256 Backed out 2 changesets (bug 1467359) for linting opt failure on taskgraph/transforms/fetch.py. CLOSED TREE
Backed out changeset 3bb31648056b (bug 1467359)
Backed out changeset d22981772dd9 (bug 1467359)
2018-07-30 22:07:55 +03:00
Gregory Szorc 1eb4f361bc Bug 1467359 - Derive Treeherder symbol names for fetch jobs; r=tomprince
Having to define them explicitly feels too redundant for my liking.

I believe we didn't do this before because we were defining things
in terms of "using: fetch-url." Now that we are using a custom
transform, we can have nice things.

Differential Revision: https://phabricator.services.mozilla.com/D1575
2018-06-06 20:46:56 -07:00
Gregory Szorc 184942b6ae Bug 1467359 - Implement fetch-url jobs using a transform; r=tomprince
Previously, the fetch kind was defined by a job "using" flavor.

An upcoming commit will need to derive new tasks from fetch job
definitions. In order to do this, we require a transform. And
this transform would need access to the original data from the
job description. But by the time the "using" transform runs, a
lot of this data is thrown away. It would be possible to stuff
the meaningful metadata inside attributes on the created task.
But this would result in the fetch logic being fragmented across
multiple Python modules (a fetch-specific transform and a job/using-
specific transform). I think it is better to keep all that logic
in a single Python module.

This commit converts the "using: fetch-url" job transform to a
dedicated transform for the fetch kind.

Since we're now using a dedicated transform, we no longer need
to use the normal job schema for defining fetch jobs. So we
refactor the schema a little so it is simpler.

I verified the taskgraph output is nearly identical to before by
diffing the JSON output of `mach taskgraph full`. Aside from the
additions of ['worker']['implementation'] and ['worker']['os']
fields (which seem to be required by a schema somewhere), everything
was identical.

Differential Revision: https://phabricator.services.mozilla.com/D1574
2018-06-20 16:25:34 -07:00