Repository navigation
ci(release): move internal wheel, publish and docs jobs to ARC runners - #219
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the three internal jobs in
release-wheels.yml(build_linux,publish-to-pypi,build_docs) fromself-hostedrunners tokete-arc-runners. Each job now runs inside theharbor.ipac.caltech.edu/builder/python:latestimage. The GitHub-hostedbuild_wheelsmatrix is unchanged.Changes
Runners and containers
runs-on: kete-arc-runnersand pull the Harbor builder image withHARBOR_USERNAME/HARBOR_PASSWORD.setup-uvaction is removed. Jobs use theuvalready in the image and pick the Python version withUV_PYTHON.safe.directoryso ownership checks inside the container don't fail.devpi access
https://devpi.devpi.svc:8443/neos/stableinstead of the external route.SSL_CERT_FILE(andREQUESTS_CA_BUNDLEfor docs), so TLS works with devpi's internal certificate.devpi use --set-cfg/ login steps, the repeated per-stepUV_*/PIP_*blocks, and the config cleanup step. The index settings are now set once at job level.Publishing
pypa/gh-action-pypi-publishis replaced byuv publish --publish-url "$DEVPI/".devpi-clientthroughuvxonly at upload time. The zip is built withpython -m zipfileinstead ofzip.Cleanup
actions/cacheentry. (build_wheelskeeps its fallback.)id-token/contentspermissions that are no longer needed, and the docs "Fix permissions" step.RUSTFLAGS/RUSTDOCFLAGSset to-D warnings, so Rust and rustdoc warnings now fail the build.