8000 CI Only run arm tests nightly (#26996) · scikit-learn/scikit-learn@bd21f11 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd21f11

Browse files
thomasjpfanjjerphan
authored andcommitted
CI Only run arm tests nightly (#26996)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
1 parent d82fd2a commit bd21f11

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.cirrus.star

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def main(ctx):
1414

1515
# Nightly jobs always run
1616
if env.get("CIRRUS_CRON", "") == "nightly":
17-
return fs.read(arm_wheel_yaml)
17+
return fs.read(arm_wheel_yaml) + fs.read(arm_tests_yaml)
1818

1919
# Get commit message for event. We can not use `git` here because there is
2020
# no command line access in starlark. Thus we need to query the GitHub API
@@ -26,10 +26,12 @@ def main(ctx):
2626
response = http.get(url).json()
2727
commit_msg = response["message"]
2828

29-
if "[skip ci]" in commit_msg:
30-
return []
29+
jobs_to_run = ""
3130

3231
if "[cd build]" in commit_msg or "[cd build cirrus]" in commit_msg:
33-
return fs.read(arm_wheel_yaml) + fs.read(arm_tests_yaml)
32+
jobs_to_run += fs.read(arm_wheel_yaml)
33+
34+
if "[cirrus arm]" in commit_msg:
35+
jobs_to_run += fs.read(arm_tests_yaml)
3436

35-
return fs.read(arm_tests_yaml)
37+
return jobs_to_run

build_tools/cirrus/arm_tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ linux_aarch64_test_task:
1717
folder: /root/.conda/pkgs
1818
fingerprint_script: cat build_tools/cirrus/py39_conda_forge_linux-aarch64_conda.lock
1919

20-
test_script: bash build_tools/cirrus/build_test_arm.sh
20+
test_script: |
21+
bash build_tools/cirrus/build_test_arm.sh
22+
# On success, this script is run updating the issue.
23+
bash build_tools/cirrus/update_tracking_issue.sh true
24+
25+
on_failure:
26+
update_tracker_script: bash build_tools/cirrus/update_tracking_issue.sh false

doc/developers/contributing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ message, the following actions are taken.
542542
[pypy] Build & test with PyPy
543543
[pyodide] Build & test with Pyodide
544544
[azure parallel] Run Azure CI jobs in parallel
545+
[cirrus arm] Run Cirrus CI ARM test
545546
[float32] Run float32 tests by setting `SKLEARN_RUN_FLOAT32_TESTS=1`. See :ref:`environment_variable` for more details
546547
[doc skip] Docs are not built
547548
[doc quick] Docs built, but excludes example gallery plots

0 commit comments

Comments
 (0)
0