Schedule a release build for WPT daily job if necessary.

This commit is contained in:
Josh Matthews 2019-05-21 15:05:16 -04:00
parent 6fb7a8cdc7
commit 2406d0973a

View file

@ -475,8 +475,7 @@ def macos_nightly():
def update_wpt(): def update_wpt():
# Reuse the release build that was made for landing the PR build_task = macos_release_build()
build_task = decisionlib.Task.find("build.macos_x64_release." + CONFIG.git_sha)
update_task = ( update_task = (
macos_task("WPT update") macos_task("WPT update")
.with_python2() .with_python2()
@ -504,8 +503,8 @@ def update_wpt():
) )
def macos_wpt(): def macos_release_build():
build_task = ( return (
macos_build_task("Release build") macos_build_task("Release build")
.with_treeherder("macOS x64", "Release") .with_treeherder("macOS x64", "Release")
.with_script(""" .with_script("""
@ -520,6 +519,10 @@ def macos_wpt():
.with_artifacts("repo/target.tar.gz") .with_artifacts("repo/target.tar.gz")
.find_or_create("build.macos_x64_release." + CONFIG.git_sha) .find_or_create("build.macos_x64_release." + CONFIG.git_sha)
) )
def macos_wpt():
build_task = macos_release_build()
def macos_run_task(name): def macos_run_task(name):
task = macos_task(name).with_python2() task = macos_task(name).with_python2()
return ( return (
@ -771,6 +774,7 @@ def macos_build_task(name):
.with_repo() .with_repo()
.with_python2() .with_python2()
.with_rustup() .with_rustup()
.with_index_and_artifacts_expire_in(build_artifacts_expire_in)
# Debugging for surprising generic-worker behaviour # Debugging for surprising generic-worker behaviour
.with_early_script("ls") .with_early_script("ls")
.with_script("ls target || true") .with_script("ls target || true")