Skip to content

Commit 0e126be

Browse files
committed
ci(e2e): run rootless Podman guest lane
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 4d5ea7e commit 0e126be

5 files changed

Lines changed: 146 additions & 3 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Setup E2E Sandbox
5+
description: Download an architecture-matched prebuilt OpenShell sandbox binary for E2E tests
6+
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Download prebuilt sandbox
11+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
12+
with:
13+
name: ${{ runner.arch == 'X64' && 'openshell-sandbox-x86_64-unknown-linux-musl' || 'openshell-sandbox-aarch64-unknown-linux-musl' }}
14+
path: .e2e/prebuilt-sandbox
15+
16+
- name: Configure prebuilt sandbox
17+
shell: bash
18+
run: |
19+
set -euo pipefail
20+
sandbox="$GITHUB_WORKSPACE/.e2e/prebuilt-sandbox/openshell-sandbox"
21+
if [[ ! -f "$sandbox" ]]; then
22+
echo "downloaded artifact is missing $sandbox" >&2
23+
exit 1
24+
fi
25+
chmod +x "$sandbox"
26+
"$sandbox" --version
27+
echo "OPENSHELL_SANDBOX_BIN=$sandbox" >> "$GITHUB_ENV"

‎.github/workflows/branch-e2e.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ jobs:
263263
with:
264264
image-tag: ${{ github.sha }}
265265

266+
podman-rootless-e2e:
267+
needs: [pr_metadata, build-cli, build-gateway, build-sandbox]
268+
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
269+
permissions:
270+
actions: read
271+
contents: read
272+
packages: read
273+
uses: ./.github/workflows/e2e-podman-rootless-test.yml
274+
266275
vm-e2e:
267276
needs: [pr_metadata, build-cli, build-gateway, build-vm-driver]
268277
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
@@ -428,7 +437,7 @@ jobs:
428437

429438
core-e2e-result:
430439
name: Core E2E result
431-
needs: [pr_metadata, docker-e2e, podman-e2e, vm-e2e, docker-external-driver-e2e, podman-external-driver-e2e, vm-external-driver-e2e, kubernetes-e2e, kubernetes-external-driver-e2e, kubernetes-workspace-managed-e2e, kubernetes-workspace-operator-e2e]
440+
needs: [pr_metadata, docker-e2e, podman-e2e, podman-rootless-e2e, vm-e2e, docker-external-driver-e2e, podman-external-driver-e2e, vm-external-driver-e2e, kubernetes-e2e, kubernetes-external-driver-e2e, kubernetes-workspace-managed-e2e, kubernetes-workspace-operator-e2e]
432441
if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
433442
runs-on: ubuntu-latest
434443
steps:
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Rootless Podman E2E Test
5+
6+
on:
7+
workflow_call:
8+
inputs:
9+
checkout-ref:
10+
required: false
11+
type: string
12+
default: ""
13+
gateway-artifact:
14+
required: false
15+
type: string
16+
default: ""
17+
18+
permissions:
19+
actions: read
20+
contents: read
21+
packages: read
22+
23+
jobs:
24+
e2e:
25+
name: E2E (rust-podman-rootless, Ubuntu 26.04 Nix VM)
26+
# Run rootless Podman inside a Nix-managed Ubuntu guest so Podman, pasta,
27+
# and user-namespace setup are provisioned by versioned repository tooling
28+
# rather than mutable hosted-runner packages.
29+
runs-on: ubuntu-26.04
30+
timeout-minutes: 60
31+
env:
32+
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
steps:
34+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
35+
with:
36+
ref: ${{ inputs.checkout-ref || github.sha }}
37+
persist-credentials: false
38+
39+
- uses: ./.github/actions/setup-e2e-cli
40+
41+
- uses: ./.github/actions/setup-e2e-gateway
42+
with:
43+
artifact-name: ${{ inputs.gateway-artifact }}
44+
45+
- uses: ./.github/actions/setup-e2e-sandbox
46+
47+
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
48+
with:
49+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
52+
with:
53+
name: openshell
54+
55+
- name: Install mise
56+
run: |
57+
curl https://mise.run | MISE_VERSION=v2026.4.25 sh
58+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
59+
echo "$HOME/.local/share/mise/shims" >> "$GITHUB_PATH"
60+
61+
- name: Install tools
62+
run: mise install --locked
63+
64+
- name: Install system dependencies
65+
run: |
66+
sudo apt-get update
67+
sudo apt-get install -y --no-install-recommends \
68+
build-essential \
69+
clang \
70+
cmake \
71+
libclang-dev \
72+
libssl-dev \
73+
libz3-dev \
74+
openssh-client \
75+
pkg-config
76+
77+
- name: Run rootless Podman E2E
78+
run: |
79+
set -euo pipefail
80+
81+
mise x -- e2e/run.sh \
82+
--vm ubuntu-26-04 \
83+
--with podman-rootless \
84+
--tests-in-vm \
85+
--cli-bin "$OPENSHELL_BIN" \
86+
--gateway-bin "$OPENSHELL_GATEWAY_BIN" \
87+
--sandbox-bin "$OPENSHELL_SANDBOX_BIN" \
88+
--gateway-config e2e/configs/gateway/podman.toml \
89+
--features e2e_podman

‎.github/workflows/release-dev.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ jobs:
145145
with:
146146
image-tag: ${{ github.sha }}
147147

148+
podman-rootless-e2e:
149+
needs: [build-cli, build-gateway, build-sandbox]
150+
permissions:
151+
actions: read
152+
contents: read
153+
packages: read
154+
uses: ./.github/workflows/e2e-podman-rootless-test.yml
155+
148156
vm-e2e:
149157
needs: [build-cli, build-gateway, build-vm-driver]
150158
permissions:
@@ -339,7 +347,7 @@ jobs:
339347
# ---------------------------------------------------------------------------
340348
release-dev:
341349
name: Release Dev
342-
needs: [compute-versions, package-binaries, build-python-wheel, docker-e2e, podman-e2e, vm-e2e, build-deb, build-rpm, build-snap, smoke-linux-dev-artifacts]
350+
needs: [compute-versions, package-binaries, build-python-wheel, docker-e2e, podman-e2e, podman-rootless-e2e, vm-e2e, build-deb, build-rpm, build-snap, smoke-linux-dev-artifacts]
343351
runs-on: linux-amd64-cpu8
344352
timeout-minutes: 10
345353
permissions:

‎.github/workflows/release-tag.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ jobs:
175175
image-tag: ${{ needs.compute-versions.outputs.source_sha }}
176176
checkout-ref: ${{ inputs.tag || github.ref }}
177177

178+
podman-rootless-e2e:
179+
needs: [compute-versions, build-cli, build-gateway, build-sandbox]
180+
permissions:
181+
actions: read
182+
contents: read
183+
packages: read
184+
uses: ./.github/workflows/e2e-podman-rootless-test.yml
185+
with:
186+
checkout-ref: ${{ inputs.tag || github.ref }}
187+
178188
vm-e2e:
179189
needs: [compute-versions, build-cli, build-gateway, build-vm-driver]
180190
permissions:
@@ -420,7 +430,7 @@ jobs:
420430
# ---------------------------------------------------------------------------
421431
release:
422432
name: Release
423-
needs: [compute-versions, package-binaries, build-python-wheel, docker-e2e, podman-e2e, vm-e2e, build-deb, build-rpm, build-snap, smoke-linux-release-artifacts]
433+
needs: [compute-versions, package-binaries, build-python-wheel, docker-e2e, podman-e2e, podman-rootless-e2e, vm-e2e, build-deb, build-rpm, build-snap, smoke-linux-release-artifacts]
424434
runs-on: linux-amd64-cpu8
425435
timeout-minutes: 10
426436
permissions:

0 commit comments

Comments
 (0)