Skip to content

Commit 527b91f

Browse files
authored
ci(e2e): pull e2e and upgrade images from Quay (#5896)
* ci(e2e): pull e2e and upgrade images from Quay Released images now publish to quay.io/ai-openshell, and releases from before the move stay on ghcr.io/nvidia/openshell. Pull the upgrade baseline from whichever registry holds that version, and point the external Kubernetes gateway defaults and the TESTING.md example at Quay. Refs #4554 Signed-off-by: Simon Scatton <sscatton@nvidia.com> * ci(e2e): point GPU e2e and qualification docs at the new registries The GPU e2e workflow pulls SHA-tagged CI images, which now live in ghcr.io/ai-openshell/openshell. Qualification summaries are published there too. The TESTING.md tag example now names a release that is on Quay. Refs #4554 Signed-off-by: Simon Scatton <sscatton@nvidia.com> --------- Signed-off-by: Simon Scatton <sscatton@nvidia.com>
1 parent 7f399d3 commit 527b91f

5 files changed

Lines changed: 21 additions & 11 deletions

File tree

‎.github/actions/prepare-upgrade-source/action.yml‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs:
1616
required: false
1717
default: deb
1818
github-token:
19-
description: Token that reads the release and pulls its images from GHCR
19+
description: Token that reads the release and pulls pre-move images from GHCR
2020
required: true
2121

2222
runs:
@@ -68,8 +68,18 @@ runs:
6868
echo "${GH_TOKEN}" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
6969
image_tag="${SOURCE_TAG#v}"
7070
mkdir -p artifacts/upgrade/source-images
71+
# Releases from before the move to Quay are published only to GHCR, and
72+
# each release's gateway asks for its images where they were published.
73+
image_ref() {
74+
local quay="quay.io/ai-openshell/$1:${image_tag}"
75+
if docker manifest inspect "$quay" >/dev/null 2>&1; then
76+
echo "$quay"
77+
else
78+
echo "ghcr.io/nvidia/openshell/$1:${image_tag}"
79+
fi
80+
}
7181
for image in sandbox supervisor; do
72-
docker pull "ghcr.io/nvidia/openshell/${image}:${image_tag}"
73-
docker save --output "artifacts/upgrade/source-images/openshell-${image}-tmachine.tar" \
74-
"ghcr.io/nvidia/openshell/${image}:${image_tag}"
82+
ref=$(image_ref "$image")
83+
docker pull "$ref"
84+
docker save --output "artifacts/upgrade/source-images/openshell-${image}-tmachine.tar" "$ref"
7585
done

‎.github/workflows/e2e-gpu-test.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
env:
4545
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
IMAGE_TAG: ${{ inputs.image-tag }}
47-
OPENSHELL_REGISTRY: ghcr.io/nvidia/openshell
47+
OPENSHELL_REGISTRY: ghcr.io/ai-openshell/openshell
4848
OPENSHELL_REGISTRY_HOST: ghcr.io
49-
OPENSHELL_REGISTRY_NAMESPACE: nvidia/openshell
49+
OPENSHELL_REGISTRY_NAMESPACE: ai-openshell/openshell
5050
OPENSHELL_REGISTRY_USERNAME: ${{ github.actor }}
5151
OPENSHELL_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
5252
CONTAINER_ENGINE: docker

‎CI.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ qualification. Failed checks fail the parent workflow and retain evidence in Act
412412
Each qualification attempt writes its result to the Actions run summary and
413413
uploads `qualification-summary.json` as a 90-day workflow artifact. The qualification
414414
workflow attempts to publish passing and failing summaries to
415-
`ghcr.io/nvidia/openshell/qualification:<version>-run-<run-id>-attempt-<run-attempt>`.
415+
`ghcr.io/ai-openshell/openshell/qualification:<version>-run-<run-id>-attempt-<run-attempt>`.
416416
The summary contains qualification results and policy coverage only; artifact
417417
identity belongs in the release manifest. The run ID and attempt distinguish
418418
reruns without overwriting earlier evidence.

‎TESTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ branch CLI needs a newer feature, pin the SHA of your branch's base instead.
832832
Confirm a tag exists before relying on it (set `TAG` to the tag you plan to use):
833833

834834
```shell
835-
TAG=0.0.115
836-
skopeo inspect "docker://ghcr.io/nvidia/openshell/gateway:${TAG}"
835+
TAG=0.1.10
836+
skopeo inspect "docker://quay.io/ai-openshell/gateway:${TAG}"
837837
```
838838

839839
`IMAGE_TAG` sets the default tag for the gateway/supervisor image pair; the CLI

‎e2e/docker/Dockerfile.external-kubernetes-gateway‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ARG GATEWAY_BASE_IMAGE=gcr.io/distroless/cc-debian13:nonroot@sha256:d97bc0a941b8
77
FROM ${GATEWAY_BASE_IMAGE}
88

99
ARG TARGETARCH
10-
ARG SUPERVISOR_IMAGE=ghcr.io/nvidia/openshell/supervisor:latest
11-
ARG SANDBOX_RUNTIME_IMAGE=ghcr.io/nvidia/openshell/sandbox:latest
10+
ARG SUPERVISOR_IMAGE=quay.io/ai-openshell/supervisor:latest
11+
ARG SANDBOX_RUNTIME_IMAGE=quay.io/ai-openshell/sandbox:latest
1212
COPY deploy/docker/.build/prebuilt-binaries/${TARGETARCH}/openshell-gateway /usr/local/bin/openshell-gateway
1313
COPY deploy/docker/.build/prebuilt-binaries/${TARGETARCH}/openshell-driver-kubernetes /usr/local/bin/openshell-driver-kubernetes
1414

0 commit comments

Comments
 (0)