mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
commit
6f8bb4dd40
5 changed files with 35 additions and 37 deletions
|
@ -5,28 +5,6 @@ env:
|
||||||
SCCACHE_IDLE_TIMEOUT: "1200"
|
SCCACHE_IDLE_TIMEOUT: "1200"
|
||||||
GST_DEBUG: '3'
|
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:
|
mac-rel-wpt4:
|
||||||
env:
|
env:
|
||||||
CC: /usr/local/opt/llvm/bin/clang
|
CC: /usr/local/opt/llvm/bin/clang
|
||||||
|
@ -213,6 +191,8 @@ android-mac: []
|
||||||
android: []
|
android: []
|
||||||
android-x86: []
|
android-x86: []
|
||||||
mac-rel-wpt1: []
|
mac-rel-wpt1: []
|
||||||
|
mac-rel-wpt2: []
|
||||||
|
mac-rel-wpt3: []
|
||||||
android-nightly: []
|
android-nightly: []
|
||||||
windows-msvc-nightly: []
|
windows-msvc-nightly: []
|
||||||
mac-nightly: []
|
mac-nightly: []
|
||||||
|
|
|
@ -485,7 +485,10 @@ def update_wpt():
|
||||||
.with_max_run_time_minutes(5 * 60)
|
.with_max_run_time_minutes(5 * 60)
|
||||||
)
|
)
|
||||||
return (
|
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_repo()
|
||||||
.with_curl_artifact_script(build_task, "target.tar.gz")
|
.with_curl_artifact_script(build_task, "target.tar.gz")
|
||||||
.with_script("""
|
.with_script("""
|
||||||
|
@ -516,9 +519,15 @@ def macos_wpt():
|
||||||
.find_or_create("build.macos_x64_release." + CONFIG.git_sha)
|
.find_or_create("build.macos_x64_release." + CONFIG.git_sha)
|
||||||
)
|
)
|
||||||
def macos_run_task(name):
|
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",
|
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,
|
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),
|
TOTAL_CHUNKS=str(total_chunks),
|
||||||
THIS_CHUNK=str(this_chunk),
|
THIS_CHUNK=str(this_chunk),
|
||||||
PROCESSES=str(processes),
|
PROCESSES=str(processes),
|
||||||
|
GST_DEBUG="3",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if this_chunk == chunks[-1]:
|
if this_chunk == chunks[-1]:
|
||||||
|
@ -731,15 +741,18 @@ def windows_build_task(name, package=True, arch="x86_64"):
|
||||||
return task
|
return task
|
||||||
|
|
||||||
|
|
||||||
def with_homebrew(task, brewfile):
|
def with_homebrew(task, brewfiles):
|
||||||
return task.with_script("""
|
task = task.with_script("""
|
||||||
mkdir -p "$HOME/homebrew"
|
mkdir -p "$HOME/homebrew"
|
||||||
export PATH="$HOME/homebrew/bin:$PATH"
|
export PATH="$HOME/homebrew/bin:$PATH"
|
||||||
which brew || curl -L https://github.com/Homebrew/brew/tarball/master \
|
which brew || curl -L https://github.com/Homebrew/brew/tarball/master \
|
||||||
| tar xz --strip 1 -C "$HOME/homebrew"
|
| tar xz --strip 1 -C "$HOME/homebrew"
|
||||||
|
""")
|
||||||
time brew bundle install --no-upgrade --file={brewfile}
|
for brewfile in brewfiles:
|
||||||
""".format(brewfile=brewfile))
|
task = task.with_script("""
|
||||||
|
time brew bundle install --no-upgrade --file={brewfile}
|
||||||
|
""".format(brewfile=brewfile))
|
||||||
|
return task
|
||||||
|
|
||||||
|
|
||||||
def macos_build_task(name):
|
def macos_build_task(name):
|
||||||
|
@ -753,7 +766,10 @@ def macos_build_task(name):
|
||||||
.with_rustup()
|
.with_rustup()
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
with_homebrew(build_task, "etc/taskcluster/macos/Brewfile")
|
with_homebrew(build_task, [
|
||||||
|
"etc/taskcluster/macos/Brewfile",
|
||||||
|
"etc/taskcluster/macos/Brewfile-gstreamer",
|
||||||
|
])
|
||||||
.with_script("""
|
.with_script("""
|
||||||
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
|
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
|
||||||
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
|
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
|
||||||
|
|
|
@ -3,12 +3,6 @@ brew "automake"
|
||||||
brew "cmake"
|
brew "cmake"
|
||||||
brew "openssl"
|
brew "openssl"
|
||||||
brew "pkg-config"
|
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 "llvm"
|
||||||
brew "yasm"
|
brew "yasm"
|
||||||
|
|
||||||
|
|
6
etc/taskcluster/macos/Brewfile-gstreamer
Normal file
6
etc/taskcluster/macos/Brewfile-gstreamer
Normal 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"
|
|
@ -2,3 +2,5 @@ mac1:
|
||||||
host: servo-tc-mac1.servo.org
|
host: servo-tc-mac1.servo.org
|
||||||
mac2:
|
mac2:
|
||||||
host: servo-tc-mac2.servo.org
|
host: servo-tc-mac2.servo.org
|
||||||
|
mac3:
|
||||||
|
host: servo-tc-mac3.servo.org
|
Loading…
Add table
Add a link
Reference in a new issue