Commit Graph

21 Commits

Author SHA1 Message Date
Gregory Szorc
850083f184 Bug 1245953 - Support for only running tasks when certain files change; r=garndt
Firefox's automation currently tends to run all the jobs all the time.
It is wasteful to do this. For example, running ESLint when the commit
only changes a .cpp file adds no value.

This commit adds support for only running tasks when certain files
change. The new-style tasks introduced by the previous commit have been
taught a "when" dictionary property that defines conditions that should
hold for the task to be executed. We define a "file_patterns" list that
defines lists of mozpack path matching expressions that will be matched
against the set of files changed by the changesets relevant to the
changeset being built. The eslint task has been updated to only run if
files related to it change.

Because conditions may not be accurate, we add a CLI argument to ignore
conditions and force all would-be-filtered tasks to run.

MozReview-Commit-ID: 3OeBSKAQAeg
2016-02-17 10:25:54 -08:00
Gregory Szorc
5b11b84e1d Bug 1245953 - Support defining non-build/test Task Cluster tasks; r=garndt
Currently, tasks are either "build" or "test" tasks. And "test" tasks
are dependent on "build" tasks, so they are effectively an extension of
"build" tasks.

Not everything is a "build" task. Not everything is associated with a
specific platform.

This commit introduces support for defining non-build "tasks" under the
"tasks" top-level element of a jobs YAML file. Interally, they are
treated as "build" tasks but are declared differently.

By default, all these tasks run.

The -j/--job argument has been added to the try syntax parser. It
specifies an opt-in list of these non-build tasks to run. By default, it
runs all of them.

The eslint-gecko "build" task has been moved to this new mechanism.

Documentation for the new task type have been added.

There is definitely some wonkiness in this implementation. For example,
there are references to "build_name," "build_type," and "build_product,"
which arguably are no longer relevant to generic tasks. However, they
appear to be so integrated into task processing (including route names)
that I'm a bit scared to change them.

MozReview-Commit-ID: BY219tLFb6Z
2016-02-17 10:25:25 -08:00
Armen Zambrano Gasparnian
418b9a21d0 Bug 1243039 - Allow, on try, to schedule TaskCluster test jobs multiple times. DONTBUILD. r=garndt 2016-01-29 10:00:45 -05:00
Dustin J. Mitchell
9472dd56f0 Bug 1218841: only return unique tests from parse_tests_chunks; r=ahal 2015-10-27 12:07:50 -04:00
Dustin J. Mitchell
88c74dcfc1 Bug 1213314: expand try alias support and implement aliases; r=ahal
This adds a lot of functionality to the `flags.aliases` field in the try
comment parser, and implements all of the aliases currently supported by
Buildbot's try_parser.py.

The situation changes slightly because of the way chunks are handled; it's no
longer possible to specify chunks using an alias with no leading `-`.  This
change should not cause undue hardship.
2015-10-22 17:46:39 -04:00
Wander Lairson Costa
405d800d0a Bug 1200688: Support --interactive command line option r=jonasfj
taskcluster-graph and taskcluster-build mach command now has the
--interactive option and try supports the "-i" flag.

This makes all tasks interactive.
2015-09-03 17:08:50 -03:00
Mike Shal
0ec5b9977a Bug 1133074 - Use routes.json for Taskcluster routes; r=garndt 2015-07-27 15:31:23 -04:00
Anthony Miyaguchi
a128124c4a Bug 1168979 part 8 - Fix breakage in decision task for non-try branches; r=mrrrgn 2015-07-16 14:56:45 -07:00
Anthony Miyaguchi
16ce9e37da Bug 1168979 part 5 - Add allowed_build_tasks to distinguish builds that require symbol uploading; r=mrrrgn 2015-07-09 14:47:34 -07:00
Anthony Miyaguchi
8f5d08356d Bug 1168979 part 2 - Add symbol uploading as a build dependency; r=mrrrgn 2015-07-06 11:17:33 -07:00
Ryan VanderMeulen
ce63ea32bf Backed out 7 changesets (bug 1168979) for breaking the gecko decision task on a CLOSED TREE.
Backed out changeset 0d9496880482 (bug 1168979)
Backed out changeset 913594264a8c (bug 1168979)
Backed out changeset 18560f41c3fb (bug 1168979)
Backed out changeset dd5644a30469 (bug 1168979)
Backed out changeset 162318c4e626 (bug 1168979)
Backed out changeset 5bfd2e72d330 (bug 1168979)
Backed out changeset 0d97c2ab4fe4 (bug 1168979)
2015-07-16 16:51:36 -04:00
Anthony Miyaguchi
2941aab114 Bug 1168979 part 5 - Add allowed_build_tasks to distinguish builds that require symbol uploading; r=mrrrgn 2015-07-09 14:47:34 -07:00
Anthony Miyaguchi
f668dd1f70 Bug 1168979 part 2 - Add symbol uploading as a build dependency; r=mrrrgn 2015-07-06 11:17:33 -07:00
2c83b1e6f0 Bug 1136028 - Escape whitespace inside of platform filters r=garndt 2015-06-08 10:57:24 -07:00
858f019057 Bug 1149156 - Add support for long form of try flags r=garndt 2015-04-24 14:32:23 -07:00
290fb91729 Bug 1143264 - Allow specifying flag aliases r=garndt 2015-03-13 20:26:58 -07:00
b60c9bf3b3 Bug 1132676 - Add support for try appearning anywhere in commit r=garndt 2015-02-23 22:22:48 -08:00
Wander Lairson Costa
c66a9f182f Bug 1109365: Default try graph platforms to all.
When the platfoms list is not supplied by cli,
default to all platforms.
2015-02-18 08:10:13 -02:00
8681551c68 Bug 1131450 - Implement chunk specific scheduling for tests r=garndt 2015-02-10 10:53:02 -08:00
Wander Lairson Costa
4045f22140 Bug 1085620 part5: Support emulator builds in trygraph. r=lightsofapollo
Emulator tasks have some additional parameters not found in other
tasks. Therefore, builds can have an 'additional-parameters' field in
which specific task template replacements can be passed to trygraph.
This field is optional.

Moreover, the syntax for job_flags.yml builds was changed a bit.
Now, instead of:

builds:
  <platform>:
    types:
      opt: <task>
      debug: <task>

The syntax is:

builds:
  <platform>:
    types:
      opt:
        task: <task>
        additional-parameters:
          <parameter 1>: <value>
          <parameter 2>: <value>
          ...
      debug:
        task: <task>
        additional-parameters:
          <parameter 1>: <value>
          <parameter 2>: <value>
          ...
2014-11-26 10:11:35 -08:00
James Lal
084de1df81 Bug 1068653 - Part 2 add taskcluster trygraph commands r=wcosta, garndt, mdas 2014-11-26 10:11:28 -08:00