Skip to content

ci(release): move internal wheel, publish and docs jobs to ARC runners - #219

Merged
annie444 merged 2 commits into
mainfrom
move-to-arc-runners
Dec 4, 2026
Merged

annie444 merged 2 commits into
mainfrom
move-to-arc-runners

Conversation

@annie444

@annie444 annie444 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Moves the three internal jobs in release-wheels.yml (build_linux, publish-to-pypi, build_docs) from self-hosted runners to kete-arc-runners. Each job now runs inside the harbor.ipac.caltech.edu/builder/python:latest image. The GitHub-hosted build_wheels matrix is unchanged.

Changes

Runners and containers

  • All three jobs use runs-on: kete-arc-runners and pull the Harbor builder image with HARBOR_USERNAME / HARBOR_PASSWORD.
  • The setup-uv action is removed. Jobs use the uv already in the image and pick the Python version with UV_PYTHON.
  • After checkout, the workspace is added to git's safe.directory so ownership checks inside the container don't fail.

devpi access

  • Jobs use the in-cluster service https://devpi.devpi.svc:8443/neos/stable instead of the external route.
  • A combined CA bundle (image CA bundle + Kubernetes service CA) is exported through SSL_CERT_FILE (and REQUESTS_CA_BUNDLE for docs), so TLS works with devpi's internal certificate.
  • Removed the devpi use --set-cfg / login steps, the repeated per-step UV_* / PIP_* blocks, and the config cleanup step. The index settings are now set once at job level.

Publishing

  • pypa/gh-action-pypi-publish is replaced by uv publish --publish-url "$DEVPI/".
  • The docs upload runs devpi-client through uvx only at upload time. The zip is built with python -m zipfile instead of zip.

Cleanup

  • Removed the kernel-cache fallback that downloaded from a GitHub release in the internal jobs. They rely on the persistent actions/cache entry. (build_wheels keeps its fallback.)
  • Removed the id-token / contents permissions that are no longer needed, and the docs "Fix permissions" step.
  • Added workflow-level RUSTFLAGS / RUSTDOCFLAGS set to -D warnings, so Rust and rustdoc warnings now fail the build.

- Run the Linux wheel, PyPI publish, and docs jobs on `kete-arc-runners` instead of self-hosted runners. The wheel build uses a manylinux_2_28 container, and the publish and docs jobs use the uv image.
- Point jobs at the in-cluster devpi service through a single `DEVPI` env var. Trust the cluster service CA so TLS works with its internal certificate.
- Remove the devpi-client install and login steps, the repeated index and `PIP_*` env blocks, and the config cleanup step. `UV_DEFAULT_INDEX` now covers dependency resolution.
- Replace `pypa/gh-action-pypi-publish` with `uv publish` against devpi.
- Run `devpi-client` through `uvx` only when uploading docs, and build the docs zip with `python -m zipfile`.
- Remove the kernel cache fallback that downloaded from a GitHub release, and the OIDC `id-token` and `contents` permissions that were no longer needed.
- Set `RUSTFLAGS` and `RUSTDOCFLAGS` to `-D warnings` so Rust and doc warnings fail the build.

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Replace the manylinux, uv and bookworm containers in the Linux wheel, devpi publish and docs jobs with `harbor.ipac.caltech.edu/builder/python:latest`, authenticated with Harbor credentials from secrets
- Drop the `setup-uv` action and build with the `uv` already in the image, selecting the Python version through `UV_PYTHON`
- Point uv and pip at the in-cluster devpi index through `UV_INDEX`, `PIP_INDEX_URL`, `PIP_EXTRA_INDEX_URL` and `PIP_TRUSTED_HOST`
- Switch the CA bundle path to `/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem` when building the combined cert file with the service CA
- Mark the workspace as a git safe directory after checkout so builds don't fail on ownership checks inside the container
- Read the devpi publish username from `vars.DEVPI_USER` instead of `env.DEVPI_USER`, which was never defined at that scope

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
@annie444
annie444 merged commit 38cd9ca into main Dec 4, 2026
14 checks passed
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