Commit graph

180 commits

Author SHA1 Message Date
Paul Rouget
b71774d8fe Run test-tidy on Windows 2019-11-21 09:56:39 +01:00
Simon Sapin
67b0b97d4f Zero-pad the chunk number in WPT task names 2019-11-18 11:21:38 +01:00
Simon Sapin
e5f6333832 Only use high prority for macOS when testing a PR for merging. 2019-11-18 11:05:49 +01:00
Simon Sapin
1762cba533 Don’t pretend that update_wpt() doesn’t use debug assertions
It already was, since the key given to `find_or_create()`
did not include `args`.
2019-11-18 11:05:49 +01:00
Simon Sapin
fe23add637 Raise the priority of the release build task for WPT on macOS
… since other time-sensitive tasks depend on them.

Note: we need to be careful with task priorities,
especially in worker pools with limited capacity,
since they are absolute and can cause starvation:

https://docs.taskcluster.net/docs/manual/tasks/priority
2019-11-18 11:05:49 +01:00
Simon Sapin
b19b821985 Split WPT macOS testing into many more chunks
## Before this

Before this PR, we had roughly as many chunks as available workers.
Because the the number of test files is a poor estimate for the time
needed to run them, we have significant variation in the completion time
between chunks when testing one given PR.

https://github.com/servo/taskcluster-config/pull/9 adds a tool to collect
this data. Here are two full runs of `test_wpt` before this PR:

https://community-tc.services.mozilla.com/tasks/groups/DBt9ki9gTdWmwAk-VDorzw

```
count 1, total 0:00:32, max: 0:00:32	docker	0:00:32
count 1, total 0:59:14, max: 0:59:14	macos-disabled-mac1	0:59:14
count 6, total 4:12:16, max: 1:01:14	macos-disabled-mac1 WPT	0:40:29 0:18:55 0:46:50 0:44:38 1:01:14 0:40:10
count 1, total 0:55:19, max: 0:55:19	macos-disabled-mac9	0:55:19
count 6, total 4:25:09, max: 1:01:40	macos-disabled-mac9 WPT	0:37:58 0:37:24 0:27:18 1:01:40 0:46:17 0:54:31
```

Times for a given chunk vary between 19 minutes and 61 minutes.
Assuming no `try` testing, with Homu’s serial scheduling of `r+` testing
this means that that worker sits idle for 42 minutes
and our limited CPU resources are under-utilized.

When there *are* `try` PRs being tested however, they compete with
each other and any `r+` PR for the same workers. If we get unlucky,
a 61 minute task could only *start* after some other tasks have finished,
Increasing the overall time-to-merge a lot.

## This

This PR changes the number of chunks to be significantly more
than the number of available workers. When one of them finishes,
that worker can pick up another one instead of sitting idle.

Now the ratio of number of tasks to number of workers doesn’t matter:
the differences in run time between tasks becomes somewhat of an advantage
and the distribution to workers evens out on average.

The number 30 is a bit arbitrary. A higher number reduces resource
under-utilization, but increases the effect of per-task overhead.
The git cache added in https://github.com/servo/servo/pull/24753
reduced that overhead, though.

Another worry I had was whether this would make worse the similar problem
of unequal scheduling between processes within a task,
where some CPU cores sit idle while the rest processes finish their
assigned work.

This turned out not to be enough of a problem to negatively affect
the total machine time:

https://community-tc.services.mozilla.com/tasks/groups/VnDac92HQU6QmrpzWPCR2w
```
count 1, total 0:00:48, max: 0:00:48	docker	0:00:48
count 1, total 0:39:04, max: 0:39:04	macos-disabled-mac9	0:39:04
count 31, total 4:03:29, max: 0:15:29	macos-disabled-mac9 WPT
	0:07:26 0:08:39 0:04:21 0:07:13 0:12:47 0:10:11 0:04:01 0:03:36
	0:10:43 0:12:57 0:04:47 0:04:06 0:10:09 0:12:00 0:12:42 0:04:40
	0:04:24 0:12:20 0:12:15 0:03:03 0:07:35 0:11:35 0:07:01 0:04:16
	0:09:40 0:05:08 0:05:01 0:06:29 0:15:29 0:02:28 0:06:27
```

(4h03min is even lower than above, but seems within variation.)

## After this

https://github.com/servo/servo/issues/23655 proposes automatically
restarting failed WPT tasks, in case the failure is intermittent.
With the test suite split into more chunks we have fewer tests per chunk,
and therefore lower probability that a given one fails.
Restarting one of them also causes less repeated work.
2019-11-18 11:04:58 +01:00
Simon Sapin
1ca9c5b96b Move "extra" WPT testing to its own task (chunk "zero") 2019-11-18 09:47:05 +01:00
Simon Sapin
0dad48f54f macOS CI: use a cache of github.com/servo/servo
Relies on https://github.com/servo/taskcluster-config/pull/6
2019-11-17 09:08:21 +01:00
Simon Sapin
50d5bac736 Reduce macOS build task timeout 2019-11-16 10:11:36 +01:00
Simon Sapin
8b39fd3c7b Verbose Homebrew 2019-11-16 10:10:13 +01:00
Simon Sapin
d04a2745c6 Make the macOS worker type configurable 2019-11-15 22:21:06 +01:00
Simon Sapin
9b17deb11e Install zlib on macOS
https://community-tc.services.mozilla.com/tasks/fcbLrz33RHeshgRZGvSAjg/runs/0/logs/https%3A%2F%2Fcommunity-tc.services.mozilla.com%2Fapi%2Fqueue%2Fv1%2Ftask%2FfcbLrz33RHeshgRZGvSAjg%2Fruns%2F0%2Fartifacts%2Fpublic%2Flogs%2Flive.log#L1359

Note that the above is on macOS 10.15. Maybe previous versions provided zlib system-wide?
2019-11-15 22:20:47 +01:00
Simon Sapin
c292b1aaf0 Expect Homebrew to already be installed and in $PATH 2019-11-15 22:20:40 +01:00
Simon Sapin
00151b6a6f Fix sccache failure when rustc generates hundreds of thousands of warnings
Fixes https://github.com/servo/servo/issues/24714
2019-11-12 17:46:21 +01:00
Simon Sapin
b3faeb5483 Remove support for taskcluster.net in the decision task 2019-11-08 16:20:50 +01:00
bors-servo
8cb6145311
Auto merge of #24689 - servo:FLIP-THE-SWITCH, r=jdm
Move all tasks to Community-TC
2019-11-08 05:02:33 -05:00
Simon Sapin
9d85cbb65c Move all tasks to Community-TC 2019-11-08 07:24:33 +01:00
Josh Matthews
540b28e44f Add missing import to docs upload script. 2019-11-07 19:55:00 +01:00
Simon Sapin
cb693b3228 Split doc generation into its own task
This task reached its 60 minutes timeout in
https://community-tc.services.mozilla.com/tasks/YByC2V7uQq2lQv40TVi5KQ/runs/1/logs/live/https%3A%2F%2Fcommunity-tc.services.mozilla.com%2Fapi%2Fqueue%2Fv1%2Ftask%2FYByC2V7uQq2lQv40TVi5KQ%2Fruns%2F1%2Fartifacts%2Fpublic%2Flogs%2Flive.log#L6276
2019-11-07 17:05:56 +01:00
Simon Sapin
5d62f8084e Run non-macOS tasks on Community-TC for push events 2019-11-07 11:04:01 +01:00
Simon Sapin
b3ca13cc65 Add a decision task for try-windows-ami 2019-11-07 10:38:29 +01:00
Simon Sapin
6125fe88c3 Run a decision task on both deployments for push events 2019-11-06 00:43:24 +01:00
Simon Sapin
08705345d6 Always construct TC API URLs from $TASKCLUSTER_PROXY_URL or $TASKCLUSTER_ROOT_URL 2019-11-05 14:25:33 +01:00
bors-servo
2aca5c82e4
Auto merge of #24652 - servo:nitouryuu, r=nox
Don’t run tasks on new TC for GitHub push events (for now)
2019-11-05 01:54:24 -05:00
Simon Sapin
d8b630779d Support both Taskcluster deployments
Part of https://bugzilla.mozilla.org/show_bug.cgi?id=1574648
2019-11-04 17:39:17 +01:00
bors-servo
7f77cb0bde
Auto merge of #24603 - servo:jdm-patch-36, r=SimonSapin
Install rustc-dev for nightly rust toolchain

Fixes #24579.
2019-11-03 06:38:28 -05:00
Patrick Walton
a358bca766 Use surfman for managing GL surfaces
Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com>
Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2019-11-01 08:47:11 -05:00
Josh Matthews
c29557e02d Avoid instaling rustc-dev twice. 2019-10-31 12:30:44 -04:00
Josh Matthews
6c4d5f4410
Install rustc-dev for nightly rust toolchain. 2019-10-31 11:29:32 -04:00
Simon Sapin
6ba0fabc73 Taskcluster: install the rustc-dev rustup component, required for compiler plugins 2019-10-27 21:13:14 +01:00
Simon Sapin
6913ad086a Don’t install rust-docs, rust-src, or clippy on CI
See https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#profiles
2019-10-21 17:28:41 +02:00
Josh Matthews
5367da98f8 Support building UWP with native UWP rustc target. 2019-10-12 10:19:26 -04:00
Josh Matthews
025cb64d85 Create a zip of all UWP packaging artifacts. 2019-10-10 15:50:37 -04:00
bors-servo
46611b012e
Auto merge of #24268 - servo:jdm-patch-57, r=SimonSapin
Extend nightly WPT update timeout by an hour.

Jobs have been timing out more than usual recently, and on machines that don't have any clear resource hogging going on.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24268)
<!-- Reviewable:end -->
2019-09-25 03:58:14 -04:00
Anthony Ramine
768af85fdd Don't set PKG_CONFIG_PATH anymore
glib will find libffi on its own in its opt path now.
2019-09-24 14:21:27 +02:00
Josh Matthews
555a60753c
Extend nightly WPT update timeout by an hour. 2019-09-23 11:19:43 -04:00
Josh Matthews
f3a8b66a0f
Fix python precedence issue. 2019-09-17 15:50:27 -04:00
Josh Matthews
c1f9dfda25 Make APPX build part of package command. Add nightly build for UWP. 2019-09-12 23:27:38 -04:00
Alan Jeffrey
7d1d58bbe1 Updated magicleap signing cert 2019-08-26 09:55:57 -05:00
Josh Matthews
57adaaaf18 Remove explicit nuget setup in CI. 2019-08-21 22:55:18 -07:00
Josh Matthews
a62fb72ce4 Add x64 UWP to CI. 2019-08-21 12:38:00 -04:00
Alan Jeffrey
0e60730395 Update taskcluster for new Servo mpk name 2019-08-17 07:37:13 -05:00
Josh Matthews
81914e5f3a Build with UWP configuration on CI. 2019-07-27 09:55:43 -04:00
Josh Matthews
9336931377 Fix CI builds. 2019-07-27 09:55:43 -04:00
Josh Matthews
681d7b165a Add a --win-arm64 build flag for easier cross-compilation. 2019-07-23 19:01:07 -04:00
Josh Matthews
02797a346e Add ANGLE smoketest to Windows CI. 2019-07-13 11:54:23 -04:00
Josh Matthews
7c97d0193b Remove Windows x86 build. 2019-07-08 12:10:07 -04:00
Simon Sapin
2b01c26aa5 Add ./mach build --with-layout-2020
… with corresponding `layout` and `layout_thread` crates,
which for now do nothing.
2019-07-04 18:16:44 +02:00
Simon Sapin
c1e9347dee Decision task: remove remanents of Linux ARM tasks
CC https://github.com/servo/servo/pull/23633
2019-07-04 18:09:03 +02:00
bors-servo
d08cd5fc1c
Auto merge of #23677 - servo:travis, r=jdm
Move pre-review PR testing from Travis-CI to Taskcluster

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23677)
<!-- Reviewable:end -->
2019-07-03 02:28:24 -04:00