Commit Graph
301 Commits
Author SHA1 Message Date
Hammad Akhtar 9d68fe27aa Bug 1302765 - Allow ./mach taskgraph .. --parameters P to take a URL. URL building mechanism fixed; r=dustin
MozReview-Commit-ID: 7reezQj9Bds
2016-11-24 01:15:33 +05:30
Gregory Szorc 279a3a881b Bug 1269355 - Insert blank line to appease the flake8 linting overlord; r=me
Fixes bustage from c1b55d39dd28.
2016-11-22 18:54:16 -08:00
Ted Mielczarek b61e8c8660 bug 1316329 - build from a symlink dir in generic-worker builds. r=pmoore,gps
MozReview-Commit-ID: EXp08oIquPF
2016-11-14 11:47:59 -05:00
Ted Mielczarek 45193dbc8f bug 1269355 - Enable sccache for taskcluster linux32/64 builds. r=dustin,gps
MozReview-Commit-ID: LGqpNDb7uHN
2016-11-10 13:02:54 -05:00
Carsten "Tomcat" Book fe2ded117c Merge mozilla-central to mozilla-inbound 2016-11-22 16:28:50 +01:00
HAMMAD AKHTAR 13ca375640 Bug 1311810: changing desktop-test-* to gecko-t*; r=dustin
MozReview-Commit-ID: WuXZWOsK5z
2016-11-21 20:55:48 +00:00
Wander Lairson Costa 14dde0a8a2 Bug 1316077 part 1: Support buildbot-bridge for talos tests. r=dustin
While we don't have physical machines running taskcluster-worker, we
want to schedule talos tests on Taskcluster and run them on buildbot.

buildbot-bridge acts as a worker that runs its tasks in buildbot
machines. Any talos task is redirected to buildbot-bridge.

MozReview-Commit-ID: Im9IhhT0Mr1
2016-11-18 16:52:15 -02:00
Julian Seward 420a84be6d Bug 1254964 - Enable manual taskcluster scheduling for valgrind-mochitest runs. [email protected]. 2016-11-22 11:25:01 +01:00
Gregory Szorc 3423391b5b Bug 1318200 - Filter Stylo platforms when Servo isn't available; r=dustin
Stylo automation doesn't work unless Servo is present in the source
directory. This commit introduces a "check_servo" filter that prunes
tasks requiring Servo. Currently, this is implemented as a test against
platforms that are unique to Servo.

The use of relative path checking to find the topsrcdir is a bit
unfortunate. But we use this pattern elsewhere in this code.

MozReview-Commit-ID: IRtd53tudJW
2016-11-17 17:10:01 -08:00
Gregory Szorc 5d56d07832 Bug 1318200 - Introduce task graph filtering; r=dustin
Previously, we ran a single "target task" function to mutate the full
task graph into a subset based on input parameters (try syntax,
repository being built for, etc). This concept is useful. But
the implementation was limiting because we could only have a single
"target tasks" function.

This commit introduces the concept of "filters." They conceptually
do the same thing as "target tasks methods" but you can run more than
1 of them.

Filters are simply functions that examine an input graph+parameters
and emit nodes that should be retained. Filters, like target tasks
methods, are defined via decorated functions in a module.

TaskGraphGenerator has been converted to use filters. The list of
defined filters can be defined in the parameters dict passed into
TaskGraphGenerator. A default filter list is provided in decision.py.

The intent is to eventually convert target tasks to filters. Until
that happens, we always run the registered target tasks method via
a filter proxy function.

No new tests have been added because we don't yet have any
functionality relying explicitly on filters. Tests will be added in
a subsequent commit once we add a new filter.

While I was here, I also snuck in some logging on the size of the
graphs.

MozReview-Commit-ID: ERn2hIYbMRp
2016-11-17 15:53:30 -08:00
Gregory Szorc 49ecc723ac Bug 1318200 - Obtain target tasks method from parameters; r=dustin
Previously, all callers outside of tests that passed
"target_tasks_method" to TaskGraphGenerator all used the same pattern
of looking for a key in the parameters and calling a function in
the target_tasks module.

Future commits will refactor how target tasks graph work. To
make the transition easier, we move the logic for obtaining the
target tasks method into TaskGraphGenerator.

MozReview-Commit-ID: 3QU09iGhoXh
2016-11-17 16:29:51 -08:00
Gregory Szorc 901d1f3286 Bug 1318200 - TaskCluster CI for Stylo; r=dustin
This commit introduces support for performing build and test variations
with Stylo enabled.

From a high level, this is similar to the e10s/non-e10s variations that
we currently run. However, it is different in that Stylo is a build
time (not run time) flag. So, we need to perform separate builds for
Stylo.

In the current implementation of the task graph, we can either
introduce a new platform or a new build type/configuration. I've
chosen to introduce a new platform if nothing else so the Treeherder
results clearly separate Stylo from non-Stylo. This decision can be
revisited in the future once Stylo becomes more stable and visible
outside the "stylo" repository.

Stylo functionality is limited to layout functionality and Stylo
developers aren't very interested in many tests not related to layout
at the moment. So we introduce a new test set running a limited
functionality of tests in Stylo builds.

In the current state of this commit, Stylo builds will permafail.
This is because Stylo builds require a vendored copy of Servo. Logic
for pruning the task graph of Stylo/Servo related tasks will be
implemented in subsequent commits.

MozReview-Commit-ID: JivhkpXDjIw
2016-11-17 09:52:39 -08:00
Sebastian Hengst b21ff6223a Bug 1318099 - Disable artifact build tasks on the graphics branch: add empty line to make flake8 happy. r=flake8-fix 2016-11-18 00:25:36 +01:00
Kartikaya Gupta 71aa0fe72d Bug 1318099 - Disable artifact build tasks on the graphics branch. r=dustin
MozReview-Commit-ID: 2whpCUpZTtv
2016-11-16 15:40:55 -05:00
Rob Thijssen 42b553dd5f Bug 1311966 - symlink rather than copy artifacts; r=pmoore
MozReview-Commit-ID: 5cFjuwtUgEr
2016-11-16 13:31:48 +00:00
Brian Stack 9a4bc10d33 Bug 1316961 - Fix parameters for action tasks. r=dustin
MozReview-Commit-ID: 95xs7NRHSdi
2016-11-14 10:28:58 -08:00
Jonas Finnemann Jensen 6a00728363 Bug 1316446 - Improve mach taskcluster-load-image r=gps
MozReview-Commit-ID: 3Y8fI5WXP1Y
2016-11-10 18:05:52 -08:00
Andrew Halberstadt e106c0c05f Bug 1275943 - Ensure job tasks are added to target set even if no try syntax specified, r=dustin
Job tasks are tasks that are not tied to a specific build or test. As such, they cannot be scheduled
with the regular -p/-u try syntax options. There exists a -j try syntax option, to schedule them, which
defaults to running "all" of them if not specified.

However, there is a bug here where they will only default to "all" if a try syntax exists in the commit
message. They will not be considered if a developer pushes to try without a try syntax. This happens
because self.jobs is initially initialized with '[]' and we use None to determine when to schedule "all"
later on.

I want to move towards a world without try syntax, so we should start improving the UX of the no try
syntax use case.

Note: When I say "schedule" here, I mean added to the target set. They may still be optimized away.

MozReview-Commit-ID: 4TrC84RGiaL
2016-11-14 14:29:50 -05:00
Jonas Finnemann Jensen 2bae2cad08 Bug 1316183 - Compress docker images with zstd. r=dustin
* Compress docker images with zstd
 * Removed need for context.tar from decision task
 * Index images by level rather than project

MozReview-Commit-ID: 4RL4QXNWmpd
2016-11-07 11:26:27 -08:00
Wes Kocher 8fd5b09255 Merge m-c to inbound, a=merge 2016-11-08 14:08:34 -08:00
Wander Lairson Costa 128810b5c8 Bug 1274980 part 2: Support Mac OS tests in tc intree config. r=dustin
We add support for Mac OSX tests in Taskcluster by support
taskcluster-worker macosx engine. We also add a new configuration
blob-upload-branch needed by mochitest-other.

MozReview-Commit-ID: 5ZaYYRueRVr
2016-11-08 12:11:15 -02:00
Wander Lairson Costa 3b8168fa5d Bug 1274980 part 1: Add support for test platform regex match. r=dustin
Often we need to setup a test configuration for different platforms, but
not for different platform builds (opt/debug). This leads to cumbersome
configuration duplicates. This patch adds support for platform regular
expression matching. For example, if you want to configure the chunk
size for linux64 platform both for opt and debug, originally you would
do this:

chunks:
    by-test-platform:
        linux64/opt: 4
        linux64/debug: 4
        default: 8

With regular expression matching, you only need:

chunks:
    by-test-platform:
        linux64/.*: 4
        default: 8

This patch was originally written by Geoffrey Brown for Windows support.

MozReview-Commit-ID: KbMHV7UkTLe
2016-11-08 12:11:15 -02:00
Kim Moir 5a80e4b329 Bug 1315690 - Limit cedar TC tests to Linux64 mochitest* and xpcshell only (fix lint errors) u=aselagea r=dustin 2016-11-08 09:36:19 -05:00
Kim Moir 471f57023a Bug 1315690 - Limit cedar TC tests to Linux64 mochitest* and xpcshell only u=aselagea r=dustin 2016-11-08 09:22:17 -05:00
Dustin J. Mitchell 8d20917cdf Bug 1296842: check parameters; r=jmaher
MozReview-Commit-ID: 1JCpufowNHD
2016-11-07 19:13:40 +00:00
Dustin J. Mitchell 45eb10a983 Bug 1296842: make target-task related parameters a fixed set; r=jmaher
The `from_parameters` method was never used, and let do confusion over the role
of these parameters.  Now there are only two, and they are always required.

MozReview-Commit-ID: AbPqijXucu5
2016-11-07 19:13:34 +00:00
Joel Maher e8ee86ea2e Bug 1315145 - disable SETA on tier-1 platforms temporarily. r=dustin
MozReview-Commit-ID: 2royNntQxB2
2016-11-07 13:39:23 -05:00
Sebastian Hengst a7ab43e29d Backed out changeset b8760b0b11ac (bug 1274980) on suspicion of breaking marionette tests in taskcluster. r=backout on a CLOSED TREE 2016-11-07 18:57:58 +01:00
Sebastian Hengst 9bbe4e779f Backed out changeset 6228dfcfac3b (bug 1274980) 2016-11-07 17:57:04 +01:00
Sebastian Hengst 99d4638eba Backed out changeset c45f2ebe0e66 (bug 1274980) 2016-11-07 17:56:41 +01:00
Wander Lairson Costa b68547f0ba Bug 1274980 part 3: Fix flake8 errors. r=tomcat 2016-11-07 05:15:00 +01:00
Wander Lairson Costa fd6322d2df Bug 1274980 part 2: Support Mac OS tests in tc intree config. r=dustin
We add support for Mac OSX tests in Taskcluster by support
taskcluster-worker macosx engine. We also add a new configuration
blob-upload-branch needed by mochitest-other.

MozReview-Commit-ID: CxT3BP3sydG
2016-11-07 09:20:50 -02:00
Wander Lairson Costa d239765478 Bug 1274980 part 1: Add support for test platform regex match. r=dustin
Often we need to setup a test configuration for different platforms, but
not for different platform builds (opt/debug). This leads to cumbersome
configuration duplicates. This patch adds support for platform regular
expression matching. For example, if you want to configure the chunk
size for linux64 platform both for opt and debug, originally you would
do this:

chunks:
    by-test-platform:
        linux64/opt: 4
        linux64/debug: 4
        default: 8

With regular expression matching, you only need:

chunks:
    by-test-platform:
        linux64/.*: 4
        default: 8

This patch was originally written by Geoffrey Brown for Windows support.

MozReview-Commit-ID: HFP52N9Ef0k
2016-11-07 09:20:50 -02:00
Jordan Lund 9b9318450f Bug 1314795 - introduce build_date to params that defaults to pushdate, r=dustin
MozReview-Commit-ID: AviPKtw3BiY
2016-11-02 19:23:27 -07:00
Wes Kocher c92af64732 Merge m-c to inbound, a=merge CLOSED TREE 2016-11-04 15:19:49 -07:00
Nathan Froyd 257905b3e1 Bug 1306650 - part 15 - update windows toolchain builds to use |hg robustcheckout|; r=pmoore
This change is needed after recent changes removed the shared hg checkout on C:.
2016-11-04 20:24:38 -04:00
Wes Kocher 31246681f9 Backed out changeset 36b1cce63e74 (bug 1314795) for lint failures a=backout CLOSED TREE 2016-11-03 17:04:16 -07:00
Jordan Lund 068597ee4b Bug 1314795 - introduce build_date to params that defaults to pushdate, r=dustin
MozReview-Commit-ID: AviPKtw3BiY
2016-11-02 19:23:27 -07:00
Gregory Szorc 82411a1d06 Bug 1314807 - Change ownership of files in workspace; r=dustin
The other changesets for this bug worked on Try but failed on
autoland due to permissions failures in /home/worker/workspace.
Ensure the files have the proper permissions.

The path is a cache with the repo and build type keyed into it.
So there should be no problem with this change causing permissions
issues for other tasks.
2016-11-03 08:10:15 -07:00
Gregory Szorc 9b9f9d7295 Bug 1314807 - Use run-task in hazard kind; r=dustin
As part of this, we eliminate tc-vcs since it is redundant with run-task.

MozReview-Commit-ID: 8HAFSM73BOU
2016-11-02 15:45:40 -07:00
Kim Moir ed1f8c1eea Bug 1296396 - remove configs that reference fx-team in tc and buildbot u=aselagea r=kmoir 2016-11-02 10:53:19 -04:00
Dustin J. Mitchell 59c1ff6c63 Bug 1313678: rename task description chainOfTrust to chain-of-trust; r=aki
Note that this does not affect task.extra.chainOfTrust, and thus has no impact
on the generated task JSON.

MozReview-Commit-ID: ERSVZlQUMpK
2016-10-28 14:36:09 +00:00
Joel Maher 0b94516312 Bug 1313426 - gecko decision task: ValueError: No JSON object. fix SETA. r=dustin
MozReview-Commit-ID: F4V3VcDHMnW
2016-10-27 15:12:33 -04:00
Phil Ringnalda cae49cab13 Merge m-i to m-c, a=merge
MozReview-Commit-ID: CysKZsvYf69
2016-10-26 18:40:50 -07:00
Brian Stack 6a75ec8b3f Bug 1304180 - Set taskcluster artifact expiration to 28 days on try r=dustin
MozReview-Commit-ID: ECXCs9EkOYI
2016-10-25 11:47:50 -07:00
Gregory Szorc d8c36bdacc Bug 1312475 - Add a version parameter to checkouts cache; r=dustin
ff5a4bab0813 (bug 1311791) and 332a08725ed0 (bug 1292071) changed
behavior of the VCS caches. First, the store cache / path was merged
into the checkouts cache. Then the path of the Mercurial shared store
was moved within the cache to always be rooted at the cache root.

Caches are shared across tasks. Tasks can execute on any revision
configured to use a cache. So, when interacting with caches, it is
important to consider how every revision configured to use that
cache will interact with it.

Take this scenario for example.

A worker executes a task where the hg shared store is rooted at
/home/worker/checkouts/src/hg-shared. Then the worker executes a
task where the hg shared store is rooted at
/home/worker/checkouts/hg-store. `hg robustcheckout` will see the
checkout from the first task. But then it sees that the store
it is pointing to is at an unexpected location
(checkouts/src/hg-shared instead of checkouts/hg-store). `hg
robustcheckout` aggressively normalizes state to ensure
consistency. So when it sees this mismatch, it blows away the
checkout and creates one from checkouts/hg-store to replace it.
That's a lot of overhead. And this cycle can repeat itself if
the right combination of revisions run on the worker!

A solution to this problem is to create a clean break from caches
when cache semantics change. In TaskCluster, that means using a
different cache.

This commit introduces a "version" component to the checkouts
cache name. By doing so, we create a clean break from all previous
caches, ensuring all revisions this point forward won't encounter
an hg shared store at an unexpected location. This also paves the
road for easily making additional clean breaks in the future.

MozReview-Commit-ID: JT8yuULKpch
2016-10-24 09:58:01 -07:00
Geoff Brown 012da2e315 Bug 1312552 - Better chunking support for TC Windows; r=grenade 2016-10-25 08:53:32 -06:00
Ryan VanderMeulen 650168c214 Merge inbound to m-c. a=merge 2016-10-23 13:16:27 -04:00
Gregory Szorc ca434f80a4 Bug 1311791 - Explicitly declare path to shared hg store; r=dustin
332a08725ed0 changed the store path logic in a quick and crude manner.
The code could lead to multiple shared stores existing on a cache
if checkouts were in different parent directories.

This commit refactors the code to explicitly declare a path to the
shared hg store. This restores the behavior of ensuring there is only
a single shared store per cache.

MozReview-Commit-ID: 19Aa1QVrVQ8
2016-10-20 12:56:43 -07:00
Rob Thijssen 8da61db27b Bug 1280474 - enable tc win cpp; r=dustin
MozReview-Commit-ID: 36rmfGExOx8
2016-10-20 10:51:48 +01:00