Skip to content

ci: move workflows off the retired ubuntu-20.04 runner - #64

Merged
k-yoshimi merged 2 commits into
developfrom
ci/update-runners
Oct 4, 2026
Merged

k-yoshimi merged 2 commits into
developfrom
ci/update-runners

Conversation

@k-yoshimi

Copy link
Copy Markdown
Contributor

Summary

GitHub has retired the ubuntu-20.04 runner, so every workflow job in this repository stayed queued until it was cancelled after 24 hours. No tests, documentation builds, documentation deployments or PyPI releases have been running.

  • Workflows: run on ubuntu-22.04, as ODAT-SE does; test with Python 3.9 and 3.12 (Python 3.6 is not available on current runners); update actions/checkout, actions/setup-python and rlespinasse/github-slug-action to the same pinned versions ODAT-SE uses. The slug action v5.6.0 still provides GITHUB_REF_SLUG, which deploy_docs.yml uses.
  • exchange algorithm fix: with Python 3.12 the tests installed NumPy 2.5, and tests/exchange failed with ValueError: setting an array element with a sequence at ibuf[0] = self.Tindex. Tindex is a one-element array, and recent NumPy no longer converts it to a scalar implicitly; the failing process left the others blocked in MPI until the job timed out. It now sends Tindex[0], the same as ODAT-SE. The values sent over MPI are unchanged.

Verification

  • On this branch, all 14 test jobs (7 samples × Python 3.9 / 3.12) pass, and the documentation build passes.
  • Before the exchange fix, exchange on Python 3.12 timed out while the other 13 jobs passed.
  • deploy_docs.yml and deploy_pypi.yml only run on pushes to develop/master and on tags, so they are not exercised by this branch; their changes are limited to the runner and action versions.

Note

pyproject.toml still declares python = ">=3.6.8", but Python 3.6 is no longer tested.

🤖 Generated with Claude Code

k-yoshimi and others added 2 commits October 4, 2026 09:12
GitHub retired the ubuntu-20.04 runner, so every job stayed queued until
it was cancelled after 24 hours, and no tests, documentation builds or
releases ran. Run on ubuntu-22.04 as ODAT-SE does, test with Python 3.9
and 3.12 (Python 3.6 is not available there), and update the checkout,
setup-python and slug actions to the pinned versions ODAT-SE uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tindex is a one-element array, and assigning it to an array element
relies on NumPy converting a size-1 array to a scalar, which recent NumPy
rejects ("setting an array element with a sequence"). The failing rank
then left the others blocked in MPI until the job timed out. Use
Tindex[0], as ODAT-SE does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@k-yoshimi
k-yoshimi merged commit 4aa16bd into develop Oct 4, 2026
15 checks passed
@k-yoshimi
k-yoshimi deleted the ci/update-runners branch October 4, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant