@@ -3,7 +3,7 @@ name: E2E Test
33on :
44 workflow_call :
55 inputs :
6- image-tag :
6+ image_tag :
77 description : " Image tag to test (typically the commit SHA)"
88 required : true
99 type : string
1212 required : false
1313 type : string
1414 default : " build-amd64"
15+ checkout_ref :
16+ description : " Git ref to check out for the test run"
17+ required : false
18+ type : string
19+ default : " "
1520
1621permissions :
1722 contents : read
4853 - /var/run/docker.sock:/var/run/docker.sock
4954 env :
5055 MISE_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51- IMAGE_TAG : ${{ inputs.image-tag }}
56+ IMAGE_TAG : ${{ inputs.image_tag }}
5257 OPENSHELL_REGISTRY : ghcr.io/nvidia/openshell
5358 OPENSHELL_REGISTRY_HOST : ghcr.io
5459 OPENSHELL_REGISTRY_NAMESPACE : nvidia/openshell
@@ -57,12 +62,14 @@ jobs:
5762 OPENSHELL_GATEWAY : ${{ matrix.cluster }}
5863 steps :
5964 - uses : actions/checkout@v4
65+ with :
66+ ref : ${{ inputs.checkout_ref != '' && inputs.checkout_ref || github.ref }}
6067
6168 - name : Log in to GHCR
6269 run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
6370
6471 - name : Pull cluster image
65- run : docker pull ghcr.io/nvidia/openshell/cluster:${{ inputs.image-tag }}
72+ run : docker pull ghcr.io/nvidia/openshell/cluster:${{ inputs.image_tag }}
6673
6774 - name : Install Python dependencies and generate protobuf stubs
6875 if : matrix.suite == 'python'
8390 CLUSTER_NAME : ${{ matrix.cluster }}
8491 SKIP_IMAGE_PUSH : " 1"
8592 SKIP_CLUSTER_IMAGE_BUILD : " 1"
86- OPENSHELL_CLUSTER_IMAGE : ghcr.io/nvidia/openshell/cluster:${{ inputs.image-tag }}
93+ OPENSHELL_CLUSTER_IMAGE : ghcr.io/nvidia/openshell/cluster:${{ inputs.image_tag }}
8794 run : mise run --no-prepare --skip-deps cluster
8895
8996 - name : Run tests
0 commit comments