diff options
-rw-r--r-- | etc/taskcluster/decision_task.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index b07ae54b023..abef75712ea 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -475,8 +475,7 @@ def macos_nightly(): def update_wpt(): - # Reuse the release build that was made for landing the PR - build_task = decisionlib.Task.find("build.macos_x64_release." + CONFIG.git_sha) + build_task = macos_release_build() update_task = ( macos_task("WPT update") .with_python2() @@ -504,8 +503,8 @@ def update_wpt(): ) -def macos_wpt(): - build_task = ( +def macos_release_build(): + return ( macos_build_task("Release build") .with_treeherder("macOS x64", "Release") .with_script(""" @@ -520,6 +519,10 @@ def macos_wpt(): .with_artifacts("repo/target.tar.gz") .find_or_create("build.macos_x64_release." + CONFIG.git_sha) ) + + +def macos_wpt(): + build_task = macos_release_build() def macos_run_task(name): task = macos_task(name).with_python2() return ( @@ -771,6 +774,7 @@ def macos_build_task(name): .with_repo() .with_python2() .with_rustup() + .with_index_and_artifacts_expire_in(build_artifacts_expire_in) # Debugging for surprising generic-worker behaviour .with_early_script("ls") .with_script("ls target || true") |