You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2024/01/27 17:43:51 UTC
(tvm) branch main updated: [CI] Update image tag to 20240126-070121-8ade9c30e (#16435)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new a15fd1d6a2 [CI] Update image tag to 20240126-070121-8ade9c30e (#16435)
a15fd1d6a2 is described below
commit a15fd1d6a21e9bedb622ffb9fd025c50624d734d
Author: Yong Wu <yo...@gmail.com>
AuthorDate: Sat Jan 27 09:43:45 2024 -0800
[CI] Update image tag to 20240126-070121-8ade9c30e (#16435)
* [CI] update image tag to 20240119-070113-614a7a9e3
* Add sccache region
* add default sccache region
* Use local cache if no aws credential found for sccache bucket
* Use newer images 20240126-070121-8ade9c30e
---
ci/jenkins/docker-images.ini | 20 ++++++++++----------
ci/jenkins/generated/arm_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/cortexm_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/cpu_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/docker_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/gpu_jenkinsfile.groovy | 7 +++++--
ci/jenkins/generated/hexagon_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/i386_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/lint_jenkinsfile.groovy | 5 ++++-
.../generated/minimal_cross_isa_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/minimal_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/riscv_jenkinsfile.groovy | 5 ++++-
ci/jenkins/generated/wasm_jenkinsfile.groovy | 5 ++++-
ci/jenkins/templates/gpu_jenkinsfile.groovy.j2 | 2 +-
ci/jenkins/templates/utils/Build.groovy.j2 | 5 ++++-
ci/jenkins/unity_jenkinsfile.groovy | 2 +-
tests/scripts/task_build.py | 5 ++++-
17 files changed, 69 insertions(+), 27 deletions(-)
diff --git a/ci/jenkins/docker-images.ini b/ci/jenkins/docker-images.ini
index c2c118a797..ac30cbf973 100644
--- a/ci/jenkins/docker-images.ini
+++ b/ci/jenkins/docker-images.ini
@@ -17,13 +17,13 @@
# This data file is read during when Jenkins runs job to determine docker images.
[jenkins]
-ci_arm: tlcpack/ci-arm:20240105-165030-51bdaec6
-ci_cortexm: tlcpack/ci-cortexm:20240105-165030-51bdaec6
-ci_cpu: tlcpack/ci-cpu:20240105-165030-51bdaec6
-ci_gpu: tlcpack/ci-gpu:20240105-165030-51bdaec6
-ci_hexagon: tlcpack/ci-hexagon:20240105-165030-51bdaec6
-ci_i386: tlcpack/ci-i386:20240105-165030-51bdaec6
-ci_lint: tlcpack/ci-lint:20240105-165030-51bdaec6
-ci_minimal: tlcpack/ci-minimal:20240105-165030-51bdaec6
-ci_riscv: tlcpack/ci-riscv:20240105-165030-51bdaec6
-ci_wasm: tlcpack/ci-wasm:20240105-165030-51bdaec6
+ci_arm: tlcpack/ci-arm:20240126-070121-8ade9c30e
+ci_cortexm: tlcpack/ci-cortexm:20240126-070121-8ade9c30e
+ci_cpu: tlcpack/ci-cpu:20240126-070121-8ade9c30e
+ci_gpu: tlcpack/ci-gpu:20240126-070121-8ade9c30e
+ci_hexagon: tlcpack/ci-hexagon:20240126-070121-8ade9c30e
+ci_i386: tlcpack/ci-i386:20240126-070121-8ade9c30e
+ci_lint: tlcpack/ci-lint:20240126-070121-8ade9c30e
+ci_minimal: tlcpack/ci-minimal:20240126-070121-8ade9c30e
+ci_riscv: tlcpack/ci-riscv:20240126-070121-8ade9c30e
+ci_wasm: tlcpack/ci-wasm:20240126-070121-8ade9c30e
diff --git a/ci/jenkins/generated/arm_jenkinsfile.groovy b/ci/jenkins/generated/arm_jenkinsfile.groovy
index 80b2e59a81..199619bed0 100644
--- a/ci/jenkins/generated/arm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/arm_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/cortexm_jenkinsfile.groovy b/ci/jenkins/generated/cortexm_jenkinsfile.groovy
index c7b4527230..8f2c3ace05 100644
--- a/ci/jenkins/generated/cortexm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/cortexm_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/cpu_jenkinsfile.groovy b/ci/jenkins/generated/cpu_jenkinsfile.groovy
index f26a69109f..8e90daa6d2 100644
--- a/ci/jenkins/generated/cpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/cpu_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/docker_jenkinsfile.groovy b/ci/jenkins/generated/docker_jenkinsfile.groovy
index 2aa6a17362..dbef6d2cae 100644
--- a/ci/jenkins/generated/docker_jenkinsfile.groovy
+++ b/ci/jenkins/generated/docker_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/gpu_jenkinsfile.groovy b/ci/jenkins/generated/gpu_jenkinsfile.groovy
index 7454bb0d90..95448b7798 100644
--- a/ci/jenkins/generated/gpu_jenkinsfile.groovy
+++ b/ci/jenkins/generated/gpu_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
@@ -631,7 +634,7 @@ def shard_run_unittest_GPU_1_of_3(node_type='GPU-SPOT', on_demand=false) {
make_cpp_tests(ci_gpu, 'build')
cpp_unittest(ci_gpu)
sh (
- script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --cmake-target opencl-cpptest --build-dir build",
+ script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --cmake-target opencl-cpptest --build-dir build",
label: 'Make OpenCL cpp unit tests',
)
sh (
diff --git a/ci/jenkins/generated/hexagon_jenkinsfile.groovy b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
index e63f6fb14b..9f1e13fb8a 100644
--- a/ci/jenkins/generated/hexagon_jenkinsfile.groovy
+++ b/ci/jenkins/generated/hexagon_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/i386_jenkinsfile.groovy b/ci/jenkins/generated/i386_jenkinsfile.groovy
index c6eeba1861..cd0e43ee52 100644
--- a/ci/jenkins/generated/i386_jenkinsfile.groovy
+++ b/ci/jenkins/generated/i386_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/lint_jenkinsfile.groovy b/ci/jenkins/generated/lint_jenkinsfile.groovy
index 64cda41994..80dc952187 100644
--- a/ci/jenkins/generated/lint_jenkinsfile.groovy
+++ b/ci/jenkins/generated/lint_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy b/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
index 6a878b21ee..5a7b85c762 100644
--- a/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
+++ b/ci/jenkins/generated/minimal_cross_isa_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/minimal_jenkinsfile.groovy b/ci/jenkins/generated/minimal_jenkinsfile.groovy
index cdca556bd0..fb649ea1b6 100644
--- a/ci/jenkins/generated/minimal_jenkinsfile.groovy
+++ b/ci/jenkins/generated/minimal_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/riscv_jenkinsfile.groovy b/ci/jenkins/generated/riscv_jenkinsfile.groovy
index d378a7a599..26f6aad946 100644
--- a/ci/jenkins/generated/riscv_jenkinsfile.groovy
+++ b/ci/jenkins/generated/riscv_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/generated/wasm_jenkinsfile.groovy b/ci/jenkins/generated/wasm_jenkinsfile.groovy
index 1dea6599d0..7deb5898ef 100644
--- a/ci/jenkins/generated/wasm_jenkinsfile.groovy
+++ b/ci/jenkins/generated/wasm_jenkinsfile.groovy
@@ -493,10 +493,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -510,6 +512,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -519,7 +522,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2 b/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
index fe05e60172..65c06b0088 100644
--- a/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
+++ b/ci/jenkins/templates/gpu_jenkinsfile.groovy.j2
@@ -65,7 +65,7 @@
make_cpp_tests(ci_gpu, 'build')
cpp_unittest(ci_gpu)
sh (
- script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --cmake-target opencl-cpptest --build-dir build",
+ script: "${docker_run} ${ci_gpu} python3 ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --cmake-target opencl-cpptest --build-dir build",
label: 'Make OpenCL cpp unit tests',
)
sh (
diff --git a/ci/jenkins/templates/utils/Build.groovy.j2 b/ci/jenkins/templates/utils/Build.groovy.j2
index 14de5faa30..3112227474 100644
--- a/ci/jenkins/templates/utils/Build.groovy.j2
+++ b/ci/jenkins/templates/utils/Build.groovy.j2
@@ -25,10 +25,12 @@ def make_standalone_crt(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target standalone_crt \
--build-dir build
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target crttest \
--build-dir build
""",
@@ -42,6 +44,7 @@ def make_cpp_tests(image, build_dir) {
set -eux
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
--sccache-bucket tvm-sccache-prod \
+ --sccache-region us-west-2 \
--cmake-target cpptest \
--build-dir ${build_dir}
""",
@@ -51,7 +54,7 @@ def make_cpp_tests(image, build_dir) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --build-dir ${path}",
+ script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
label: 'Run cmake build',
)
}
diff --git a/ci/jenkins/unity_jenkinsfile.groovy b/ci/jenkins/unity_jenkinsfile.groovy
index c36abd19cd..1f0a4c53e2 100644
--- a/ci/jenkins/unity_jenkinsfile.groovy
+++ b/ci/jenkins/unity_jenkinsfile.groovy
@@ -290,7 +290,7 @@ def fsim_test(image) {
def cmake_build(image, path, make_flag) {
sh (
- script: "${docker_run} ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod",
+ script: "${docker_run} ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2",
label: 'Run cmake build',
)
}
diff --git a/tests/scripts/task_build.py b/tests/scripts/task_build.py
index 06d1e65a96..21560b4b14 100755
--- a/tests/scripts/task_build.py
+++ b/tests/scripts/task_build.py
@@ -34,6 +34,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description="List pytest nodeids for a folder")
parser.add_argument("--sccache-bucket", required=False, help="sccache bucket name")
+ parser.add_argument("--sccache-region", required=False, help="sccache region")
parser.add_argument("--build-dir", default="build", help="build folder")
parser.add_argument("--cmake-target", help="optional build target")
args = parser.parse_args()
@@ -46,9 +47,11 @@ if __name__ == "__main__":
build_dir = build_dir.relative_to(REPO_ROOT)
if use_sccache:
- if args.sccache_bucket:
+ if args.sccache_bucket and "AWS_ACCESS_KEY_ID" in os.environ:
env["SCCACHE_BUCKET"] = args.sccache_bucket
+ env["SCCACHE_REGION"] = args.sccache_region if args.sccache_region else "us-west-2"
logging.info(f"Using sccache bucket: {args.sccache_bucket}")
+ logging.info(f"Using sccache region: {env['SCCACHE_REGION']}")
else:
logging.info(f"No sccache bucket set, using local cache")
env["CXX"] = "/opt/sccache/c++"