Skip to content

Commit

Permalink
scripts/gh_release.py: restrict testing of linux-aarch64 because of g…
Browse files Browse the repository at this point in the history
…ithub timeout.

Testing on linux aarch64 seems to have got a lot slower recently and gets
killed by github after 6h.
  • Loading branch information
julian-smith-artifex-com committed Oct 30, 2024
1 parent 214616d commit e9c8504
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/gh_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def set_cibuild_test():
env_pass('PYMUPDF_SETUP_PY_LIMITED_API')
CIBW_BUILD_old = env_extra.get('CIBW_BUILD')
assert CIBW_BUILD_old is not None
env_set('CIBW_BUILD', 'cp39*')
cp = cps.split()[0]
env_set('CIBW_BUILD', cp)
log(f'Building single wheel.')
run( f'cibuildwheel{platform_arg}', env_extra=env_extra)

Expand All @@ -413,7 +414,16 @@ def set_cibuild_test():
#
env_set('CIBW_REPAIR_WHEEL_COMMAND', '')

log(f'Testing on all python versions using wheels in wheelhouse/.')
if platform.system() == 'Linux' and env_extra.get('CIBW_ARCHS_LINUX') == 'aarch64':
log(f'Testing all Python versions on linux-aarch64 is too slow and is killed by github after 6h.')
log(f'Testing on restricted python versions using wheels in wheelhouse/.')
# Testing only on first and last python versions.
cp1 = cps.split()[0]
cp2 = cps.split()[-1]
cp = cp1 if cp1 == cp2 else f'{cp1} {cp2}'
env_set('CIBW_BUILD', cp)
else:
log(f'Testing on all python versions using wheels in wheelhouse/.')
run( f'cibuildwheel{platform_arg}', env_extra=env_extra)

elif inputs_flavours:
Expand Down

0 comments on commit e9c8504

Please sign in to comment.