Commit Graph
173 Commits
Author SHA1 Message Date
Rob Wood 2bfcc711de Bug 1502922 - Add --gecko-profile flag support to mach try fuzzy for raptor and talos jobs; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D10114
2018-10-30 15:15:32 +00:00
Johan Lorenzo 11665b9d0a Bug 1500897 - geckoview: only spin beetmover tasks on GECKOVIEW_XX_RELBRANCH r=dustin,tomprince
geckoview: only spin beetmover tasks on GECKOVIEW_XX_RELBRANCH

Differential Revision: https://phabricator.services.mozilla.com/D9551
2018-10-29 11:11:46 +00:00
Narcis Beleuzu 86c5949e5a Backed out changeset deb0260b33c1 (bug 1500897) for taskgraph test failure 2018-10-29 12:18:13 +02:00
Johan Lorenzo 5e801b0e4b Bug 1500897 - geckoview: only spin beetmover tasks on GECKOVIEW_XX_RELBRANCH r=dustin,tomprince
geckoview: only spin beetmover tasks on GECKOVIEW_XX_RELBRANCH

Differential Revision: https://phabricator.services.mozilla.com/D9551
2018-10-26 16:36:49 +00:00
Tom Prince acd0e3bc41 Bug 1502749: [taskgraph] Use the correct index rank for index-tasks morphs; r=bstack
When a task gets too routes to be indexed by the queue, we create a new
dependent task that generates the index tasks. This task didn't set the index
rank, so if a task gets new routes that push it over the limit, it would stop
updating the old index, as it would be using an index of 0.

Differential Revision: https://phabricator.services.mozilla.com/D10016
2018-10-28 21:54:12 +00:00
Tom Prince 145674e797 Bug 1501776: [taskgraph] Fix duplicated test name; rs=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D9741
2018-10-25 01:01:23 +00:00
Tom Prince b3f2ff0017 Bug 1501776: [taskgraph] Apply extra taskgraph checks to when extending schemas; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D9720
2018-10-25 00:37:50 +00:00
Tom Prince 176e5fdc1a Bug 1497575: [taskgraph] Handle missing value in by-* gracefully; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D8330
2018-10-17 17:15:52 +00:00
Tom Prince c0e88c80e3 Bug 1495480: [taskgraph] Load taskgraph config before loading parameters; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D7304
2018-10-01 23:37:53 +00:00
Tom Prince bd597b6e7b No bug: [taskgraph] Fix lint error;
Differential Revision: https://phabricator.services.mozilla.com/D5331
2018-09-07 21:38:40 +00:00
Tom Prince edf06b8bbd No bug: [taskgraph] Fix files_changed tests;
Differential Revision: https://phabricator.services.mozilla.com/D5330
2018-09-07 21:29:25 +00:00
Dustin J. Mitchell 6d381ffec0 Bug 1398277: special-case retriggering of tasks not in the taskgraph; r=bstack
This will apply to cron tasks, action tasks, and decision tasks.  It is a
distinct retrigger implementation because (a) we do not want to follow
dependencies, and (b) it takes a lot of scopes to create a decision task, so we
need to limit access to this action.

MozReview-Commit-ID: 21DVSiagcrO
2018-07-04 02:46:59 +00:00
Tom Prince 575faad270 Bug 1477706: Fix typo in test; r=me 2018-08-09 23:16:09 -06:00
Tom Prince 23933d05c0 Bug 1477706: [try-select] Let taskgraph know that it is being called from try-select; r=ahal
Currently, `mach try fuzzy` generates a taskgraph that is configured exactly
like the most recent push to mozilla-central. This isn't always desirabe, so
pass some configuration down, to allow the taskgraph to behave differently.

Differential Revision: https://phabricator.services.mozilla.com/D2729
2018-08-03 10:25:42 -06:00
Jeff Gilbert 3d717f31ec Bug 1471112 - Split mochitest-gl into mochitest-webgl[1,2]-[core,ext] - r=gbrown
Also include webgl2-deqp, which we would like to run eventually, but not yet.

MozReview-Commit-ID: CY4hYCI95ws
2018-06-25 20:23:33 -07:00
Gurzau Raul e5c5a3fd48 Backed out 2 changesets (bug 1471112) for failing webgl2 tests on OSX
Backed out changeset 7f2d98706144 (bug 1471112)
Backed out changeset 1f26d0868935 (bug 1471112)
2018-06-29 18:20:55 +03:00
Jeff Gilbert 4e08847be6 Bug 1471112 - Split mochitest-gl into mochitest-webgl[1,2]-[core,ext] - r=gbrown
Also include webgl2-deqp, which we would like to run eventually, but not yet.

MozReview-Commit-ID: FDWdu1J0end
2018-06-25 20:23:33 -07:00
Andrew Halberstadt 66db90f18e Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq
2018-06-27 11:10:02 -04:00
Tom Prince f68e4cdb53 Bug 1456234: [taskgraph]: Add a helper for adding a suffix to a possibly grouped treeherder symbol; r=dustin.
Differential Revision: https://phabricator.services.mozilla.com/D1286
2018-05-15 13:00:18 -06:00
Rob Wood 9cf4f95e6f Bug 1455872 - Build support for the new raptor performance framework; r=gps
MozReview-Commit-ID: FBvXwkYfz0o
2018-05-02 16:42:41 -04:00
Tom Prince 1b6713d6c5 Bug 1456379: Remove references to date branch; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D1028
2018-01-23 14:48:27 -07:00
Simon Fraser e6d2429f82 Bug 1453067 Support for days (of week or month) in taskcluster cron r=dustin
Summary:
We need to run things less often than once a day, so adding support for
days to taskcluster cron. 'day' is the day of the month, 'weekday' is used
as a datetime.weekday (not isoweekday), or a string comparable to strftime('%A')
or strftime('%a')

Reviewers: dustin

Reviewed By: dustin

Bug #: 1453067

Differential Revision: https://phabricator.services.mozilla.com/D903
2018-04-12 12:39:20 +01:00
Andrew Halberstadt 3c62df2369 Bug 1414921 - Add --geckoProfile to capture profiles from talos tasks to |mach try fuzzy|, r=dustin
Enables |./mach try fuzzy --talos-profile|. This template only applies to talos
tasks. It also provides --geckoProfile for consistency with |mach try syntax|,
but I don't like this name so it's hidden from the help.

The 'talos-profile.yml' template is also very specific (only applies to Talos
tasks).  Ideally I'd like a general 'command.yml' template that just appends
arguments to the command for any arbitrary tasks. But then we'd need to invent
an expression syntax in try_task_config.json so we could make sure it only
applies to Talos. Then I thought rather than implement it for a specific
template, we should have a general way of doing this which could apply to any
and all of the templates.

Needless to say, it's a rabbit hole and something that's best left to a
follow-up so we don't delay this bug.

MozReview-Commit-ID: GhllZ7sr0ar
2017-12-13 16:16:09 -05:00
Andrew Halberstadt 95d331de89 Bug 1414921 - [taskgraph] Convert test_morph.py to the pytest format, r=dustin
I was going to add a new test to this file and realized there was a lot of
duplication happening. Since I find it a lot easier to abstract code using
pytest's fixtures than it is to store instance variables and methods on a
unittest.TestCase class, I decided to convert this file to the pytest format
first.

Besides, I believe pytest's format makes the test a lot easier to read and
understand.

MozReview-Commit-ID: CfW9K11tFhk
2018-04-04 15:22:42 -04:00
Emilio Cobos Álvarez acc26d5d14 Bug 1446954: Remove support for running tests on automation without stylo configurations. r=froydnj
You can still run them on a --disable-stylo build, as long as that works
(presumably not for long).

I think I haven't missed anything, but please double-check.

MozReview-Commit-ID: 3BIAEjgTLo5
2018-03-20 11:29:08 +01:00
Armen Zambrano G. 1a2d45f217 Bug 1422133 - Generate runnable-jobs.json.gz file as part of the Gecko decision task run. r=dustin
The runnable jobs API on Treeherder is timing out quite frequently.
This is due that it downloads the full-task-graph.json artifact from the Gecko decision task.

This file has grown to be massive (over 30MB) and that takes too long to fetch. The API times out after 20 seconds.

The data we need from the artifact is minimal. We can generate a file with just the minimum amount of data needed.

This code change adds logic to generate a runnable-jobs.json.gz file after the full-task-graph.json artifact is generated.

MozReview-Commit-ID: 9u2H7HbUAcl
2017-11-30 16:05:53 -05: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
Tom Prince 5c1e459dac Bug 1415199: Move some logic for loading taskgraph kinds from mozbuild.mach_bootstrap to taskgraph. r=dustin
This fixes the fallout from the mach command not being updated for 69c60c8fc528d8d038e22a2ae62f5ff7b1131231.

MozReview-Commit-ID: 7WZ8wW4gnCY
2017-11-07 10:08:49 -07:00
Tom Prince 31a9f87229 Bug 1410513: Move ridealong build configuration to ci/config.yml; r=dustin
MozReview-Commit-ID: 761zWtiZFtz
2017-11-02 14:34:47 -06:00
Tom Prince afcf60d7e5 Bug 1410513: Treeherder group names from config file; r=dustin
MozReview-Commit-ID: CuEQyn03Anh
2017-11-02 11:37:20 -06:00
Andrew Halberstadt a4af6ae878 Bug 1408352 - [taskgraph] Implement 'always_target' attribute, r=dustin
Tasks that have the 'always_target' attribute set will be always be included
in the target_task_graph, regardless of target task filtering.

Furthermore, if they were only added because of this attribute (i.e, the
filters would have excluded the task), then the task will be a candidate for
optimization even if the 'optimize_target_tasks' parameter is False.

MozReview-Commit-ID: 9eoVJ5qpAMO
2017-10-30 09:41:51 -04:00
Andrew Halberstadt 5d671852d0 Bug 1411796 - [taskgraph] Skip parameters.rst doc verification if parameters.strict is False, r=dustin
This is needed to prevent parameter mismatch errors when using |mach try fuzzy|
from an older revision. This can happen if the parameters.yml is being
downloaded from a commit with a recently added parameter.

MozReview-Commit-ID: 4NxCM7i8B4W
2017-10-25 20:27:17 -04:00
Dustin J. Mitchell 8fd2fb7b6d Bug 1407452 - fix concurrent task creation to handle exceptions; r=jonasfj
The previous implementation failed to call `f.result()` when creating only one
task, thereby ignoring the error.

MozReview-Commit-ID: 3zv9kFoPZCj
2017-10-11 15:27:12 +00:00
Dustin J. Mitchell b2fc3b4fb6 Bug 1404401 - ignore presence of target_task_config.json in tests; r=ahal
I *think* the modifications to MockedOpen are correct, but I'm not sure..

MozReview-Commit-ID: 6vTZBtdQ1dz
2017-10-12 17:58:14 +00:00
Dustin J. Mitchell 935b8b7768 Bug 1403342 - default to -j none and do not optimize_target_tasks for try; r=ahal
With this in place, all `-j`obs will not run by default on try.  This will omit
such jobs in most try pushes even if files-changed matches. This is
unfortunate, but better than running them unconditionally.  Fuzzy selections,
and later `just try it` pushes, are the ultimate solution here.

With this change, a push with no try syntax or try_task_config.json will schedule
no tasks at all.

MozReview-Commit-ID: FGjqlDW1FT6
2017-10-03 21:15:15 +00:00
Dustin J. Mitchell 98b1397547 Bug 1403342 - only set try-related parameters on the try branch; r=ahal
Specifically, this avoids setting optimize_target_tasks to True unconditionally
for non-try branches.

MozReview-Commit-ID: HSJFLmqbMmZ
2017-10-02 19:13:22 +00:00
Tom Prince 25e12b05a3 Bug 1385055 - Add some taskgraph parameters for dealing with comm-central and related repositories. r=dustin
MozReview-Commit-ID: 4tdxfJcx8Fz
2017-07-27 12:26:48 -06:00
Brian Stack 666b3098bc Bug 1406177 - Remove action.yml now that it is unused r=garndt
MozReview-Commit-ID: IIX125xFoMx
2017-10-05 14:47:15 -07:00
Andrew Halberstadt 0bb75a6263 Bug 1401199 - [taskgraph] Use default parameter values when strict=False, r=dustin
MozReview-Commit-ID: 9XWlLeGcPeQ
2017-09-29 11:35:30 -04: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
Dustin J. Mitchell aff71cd7a6 Bug 1383880: optimize in three phases; r=ahal
In preparation for much more thorough optimization of task-graphs, this
makes a few changes:

 * optimization is split into thre phases, with task removal in one phase
   (following dependency links) and task replacement in the next (in the
   reverse order).
 * optimization uses class instances instead of functions for optimizations;
   this allows different functions for different phases, and also leaves open
   the possibility of composing optimizations.
 * the replacement phase can also support removal; this is when utility tasks
   like symbol uploads can be optimized away iff their parent task is
   optimized.

MozReview-Commit-ID: C5QznNpwqXn
2017-08-20 20:00:17 +00:00
Dustin J. Mitchell d8d12abec9 Bug 1383880: add Graph.visit_preorder; r=ahal
MozReview-Commit-ID: BWGqLUuWlN9
2017-08-20 16:29:12 +00:00
Dustin J. Mitchell 19cecfbbba Bug 1383880: allow only one optimization per task; r=ahal,glandium
It is not at *all* clear how multiple optimizations for a single task should
interact. No simple logical operation is right in all cases, and in fact in
most imaginable cases the desired behavior turns out to be independent of all
but one of the optimizations. For example, given both `seta` and
`skip-unless-files-changed` optimizations, if SETA says to skip a test, it is
low value and should be skipped regardless of what files have changed. But if
SETA says to run a test, then it has likely been skipped in previous pushes, so
it should be run regardless of what has changed in this push.

This also adds a bit more output about optimization, that may be useful for
anyone wondering why a particular job didn't run.

MozReview-Commit-ID: 3OsvRnWjai4
2017-08-01 20:02:59 +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
Dustin J. Mitchell 7c810dfd0c Bug 1383880: optimize in three phases; r=ahal
In preparation for much more thorough optimization of task-graphs, this
makes a few changes:

 * optimization is split into thre phases, with task removal in one phase
   (following dependency links) and task replacement in the next (in the
   reverse order).
 * optimization uses class instances instead of functions for optimizations;
   this allows different functions for different phases, and also leaves open
   the possibility of composing optimizations.
 * the replacement phase can also support removal; this is when utility tasks
   like symbol uploads can be optimized away iff their parent task is
   optimized.

MozReview-Commit-ID: C5QznNpwqXn
2017-08-20 20:00:17 +00:00
Dustin J. Mitchell e31d8bb58d Bug 1383880: add Graph.visit_preorder; r=ahal
MozReview-Commit-ID: BWGqLUuWlN9
2017-08-20 16:29:12 +00:00
Dustin J. Mitchell 8f421b7a25 Bug 1383880: allow only one optimization per task; r=ahal,glandium
It is not at *all* clear how multiple optimizations for a single task should
interact. No simple logical operation is right in all cases, and in fact in
most imaginable cases the desired behavior turns out to be independent of all
but one of the optimizations. For example, given both `seta` and
`skip-unless-files-changed` optimizations, if SETA says to skip a test, it is
low value and should be skipped regardless of what files have changed. But if
SETA says to run a test, then it has likely been skipped in previous pushes, so
it should be run regardless of what has changed in this push.

This also adds a bit more output about optimization, that may be useful for
anyone wondering why a particular job didn't run.

MozReview-Commit-ID: 3OsvRnWjai4
2017-08-01 20:02:59 +00:00
Dustin J. Mitchell 0a6d21881e Bug 1397318: mozlint -l py2 for taskcluster/; r=ahal
MozReview-Commit-ID: 1ZUOrIfxQef
2017-09-06 17:29:32 +00:00
J. Ryan Stinnett 2da822399c Bug 1396997 - Update try pretty names for stylo-disabled jobs. r=froydnj
MozReview-Commit-ID: 9N54Hot4LdF
2017-09-05 15:52:52 -05:00