@@ -23,10 +23,14 @@ cd $(dirname $0)/../../..
23
23
24
24
source tools/internal_ci/helper_scripts/prepare_build_linux_rc
25
25
26
- # some distribtests use a pre-registered binfmt_misc hook
27
- # to automatically execute foreign binaries (such as aarch64)
28
- # under qemu emulator.
29
- source tools/internal_ci/helper_scripts/prepare_qemu_rc
26
+ if [[ " ${TASK_RUNNER_EXTRA_FILTERS} " == " aarch64 musllinux_1_1" ]]; then
27
+ echo " Skipping prepare_qemu_rc'"
28
+ else
29
+ # some distribtests use a pre-registered binfmt_misc hook
30
+ # to automatically execute foreign binaries (such as aarch64)
31
+ # under qemu emulator.
32
+ source tools/internal_ci/helper_scripts/prepare_qemu_rc
33
+ fi
30
34
31
35
# configure ccache
32
36
source tools/internal_ci/helper_scripts/prepare_ccache_rc
@@ -40,7 +44,11 @@ mkdir -p input_artifacts
40
44
cp -r artifacts/* input_artifacts/ || true
41
45
42
46
# This step simply collects python artifacts from subdirectories of input_artifacts/ and copies them to artifacts/
43
- tools/run_tests/task_runner.py -f package linux python -x build_packages/sponge_log.xml || FAILED=" true"
47
+ if [[ " ${TASK_RUNNER_EXTRA_FILTERS} " == " aarch64 musllinux_1_1" ]]; then
48
+ tools/run_tests/task_runner.py -f package linux python ${TASK_RUNNER_EXTRA_FILTERS} -x build_packages/sponge_log.xml || FAILED=" true"
49
+ else
50
+ tools/run_tests/task_runner.py -f package linux python -x build_packages/sponge_log.xml || FAILED=" true"
51
+ fi
44
52
45
53
# the next step expects to find the artifacts from the previous step in the "input_artifacts" folder.
46
54
# in addition to that, preserve the contents of "artifacts" directory since we want kokoro
@@ -52,7 +60,12 @@ cp -r artifacts/* input_artifacts/ || true
52
60
# Run all python linux distribtests
53
61
# We run the distribtests even if some of the artifacts have failed to build, since that gives
54
62
# a better signal about which distribtest are affected by the currently broken artifact builds.
55
- tools/run_tests/task_runner.py -f distribtest linux python ${TASK_RUNNER_EXTRA_FILTERS} -j 12 -x distribtests/sponge_log.xml || FAILED=" true"
63
+ if [[ " ${TASK_RUNNER_EXTRA_FILTERS} " == " aarch64 musllinux_1_1" ]]; then
64
+ # We're using alpine as tag in distribtest targets.
65
+ tools/run_tests/task_runner.py -f distribtest linux python aarch64 alpine -j 12 -x distribtests/sponge_log.xml || FAILED=" true"
66
+ else
67
+ tools/run_tests/task_runner.py -f distribtest linux python ${TASK_RUNNER_EXTRA_FILTERS} -j 12 -x distribtests/sponge_log.xml || FAILED=" true"
68
+ fi
56
69
57
70
# This step checks if any of the artifacts exceeds a per-file size limit.
58
71
tools/internal_ci/helper_scripts/check_python_artifacts_size.sh
0 commit comments