Skip to content

Commit

Permalink
CI Only run arm tests nightly (scikit-learn#26996)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Jerphanion <[email protected]>
  • Loading branch information
thomasjpfan and jjerphan authored Aug 8, 2023
1 parent 392c084 commit 05133a5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main(ctx):

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

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

if "[skip ci]" in commit_msg:
return []
jobs_to_run = ""

if "[cd build]" in commit_msg or "[cd build cirrus]" in commit_msg:
return fs.read(arm_wheel_yaml) + fs.read(arm_tests_yaml)
jobs_to_run += fs.read(arm_wheel_yaml)

if "[cirrus arm]" in commit_msg:
jobs_to_run += fs.read(arm_tests_yaml)

return fs.read(arm_tests_yaml)
return jobs_to_run
8 changes: 7 additions & 1 deletion build_tools/cirrus/arm_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ linux_aarch64_test_task:
folder: /root/.conda/pkgs
fingerprint_script: cat build_tools/cirrus/py39_conda_forge_linux-aarch64_conda.lock

test_script: bash build_tools/cirrus/build_test_arm.sh
test_script: |
bash build_tools/cirrus/build_test_arm.sh
# On success, this script is run updating the issue.
bash build_tools/cirrus/update_tracking_issue.sh true
on_failure:
update_tracker_script: bash build_tools/cirrus/update_tracking_issue.sh false
1 change: 1 addition & 0 deletions doc/developers/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ message, the following actions are taken.
[pypy] Build & test with PyPy
[pyodide] Build & test with Pyodide
[azure parallel] Run Azure CI jobs in parallel
[cirrus arm] Run Cirrus CI ARM test
[float32] Run float32 tests by setting `SKLEARN_RUN_FLOAT32_TESTS=1`. See :ref:`environment_variable` for more details
[doc skip] Docs are not built
[doc quick] Docs built, but excludes example gallery plots
Expand Down

0 comments on commit 05133a5

Please sign in to comment.