Auto merge of #23355 - jdm:mac-taskcluster, r=Manishearth,SimonSapin

Increase number of mac taskcluster WPT jobs

<!-- 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/23355)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-05-14 09:49:55 -04:00 committed by GitHub
commit 6f8bb4dd40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 37 deletions

View file

@ -5,28 +5,6 @@ env:
SCCACHE_IDLE_TIMEOUT: "1200"
GST_DEBUG: '3'
mac-rel-wpt2:
env:
CC: /usr/local/opt/llvm/bin/clang
CXX: /usr/local/opt/llvm/bin/clang++
commands:
- ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig ./mach build --release
- ./mach test-wpt --release --processes 4 --total-chunks 6 --this-chunk 2 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed
- ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --tracker-api default --reporter-api default
mac-rel-wpt3:
env:
CC: /usr/local/opt/llvm/bin/clang
CXX: /usr/local/opt/llvm/bin/clang++
commands:
- ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig ./mach build --release
- ./mach test-wpt --release --processes 4 --total-chunks 6 --this-chunk 3 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed
- ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --tracker-api default --reporter-api default
mac-rel-wpt4:
env:
CC: /usr/local/opt/llvm/bin/clang
@ -213,6 +191,8 @@ android-mac: []
android: []
android-x86: []
mac-rel-wpt1: []
mac-rel-wpt2: []
mac-rel-wpt3: []
android-nightly: []
windows-msvc-nightly: []
mac-nightly: []

View file

@ -485,7 +485,10 @@ def update_wpt():
.with_max_run_time_minutes(5 * 60)
)
return (
with_homebrew(update_task, "etc/taskcluster/macos/Brewfile-wpt")
with_homebrew(update_task, [
"etc/taskcluster/macos/Brewfile-wpt",
"etc/taskcluster/macos/Brewfile-gstreamer",
])
.with_repo()
.with_curl_artifact_script(build_task, "target.tar.gz")
.with_script("""
@ -516,9 +519,15 @@ def macos_wpt():
.find_or_create("build.macos_x64_release." + CONFIG.git_sha)
)
def macos_run_task(name):
return macos_task(name).with_python2()
task = macos_task(name).with_python2()
return (
with_homebrew(task, ["etc/taskcluster/macos/Brewfile-gstreamer"])
.with_script("""
export PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig/"
""")
)
wpt_chunks("macOS x64", macos_run_task, build_task, repo_dir="repo",
total_chunks=6, processes=4, chunks=[1])
total_chunks=6, processes=4, chunks=[1,2,3])
def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
@ -538,6 +547,7 @@ def wpt_chunks(platform, make_chunk_task, build_task, total_chunks, processes,
TOTAL_CHUNKS=str(total_chunks),
THIS_CHUNK=str(this_chunk),
PROCESSES=str(processes),
GST_DEBUG="3",
)
)
if this_chunk == chunks[-1]:
@ -731,15 +741,18 @@ def windows_build_task(name, package=True, arch="x86_64"):
return task
def with_homebrew(task, brewfile):
return task.with_script("""
def with_homebrew(task, brewfiles):
task = task.with_script("""
mkdir -p "$HOME/homebrew"
export PATH="$HOME/homebrew/bin:$PATH"
which brew || curl -L https://github.com/Homebrew/brew/tarball/master \
| tar xz --strip 1 -C "$HOME/homebrew"
""")
for brewfile in brewfiles:
task = task.with_script("""
time brew bundle install --no-upgrade --file={brewfile}
""".format(brewfile=brewfile))
return task
def macos_build_task(name):
@ -753,7 +766,10 @@ def macos_build_task(name):
.with_rustup()
)
return (
with_homebrew(build_task, "etc/taskcluster/macos/Brewfile")
with_homebrew(build_task, [
"etc/taskcluster/macos/Brewfile",
"etc/taskcluster/macos/Brewfile-gstreamer",
])
.with_script("""
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"

View file

@ -3,12 +3,6 @@ brew "automake"
brew "cmake"
brew "openssl"
brew "pkg-config"
brew "gstreamer"
brew "gst-plugins-base"
brew "gst-libav"
brew "gst-plugins-bad"
brew "gst-plugins-good"
brew "gst-rtsp-server"
brew "llvm"
brew "yasm"

View file

@ -0,0 +1,6 @@
brew "gstreamer"
brew "gst-plugins-base"
brew "gst-libav"
brew "gst-plugins-bad"
brew "gst-plugins-good"
brew "gst-rtsp-server"

View file

@ -2,3 +2,5 @@ mac1:
host: servo-tc-mac1.servo.org
mac2:
host: servo-tc-mac2.servo.org
mac3:
host: servo-tc-mac3.servo.org