Skip to content

Commit e0c35cf

Browse files
test(e2e): add Kubernetes driver testkit suite
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent cab6ad1 commit e0c35cf

9 files changed

Lines changed: 4931 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ jobs:
267267
cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all -- --check
268268
cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check
269269
cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check
270+
cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check
270271
cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check
271272
cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check
272273
@@ -329,6 +330,7 @@ jobs:
329330
cargo clippy --locked --manifest-path tests/suites/conformance/Cargo.toml --workspace --all-targets -- -D warnings
330331
cargo clippy --locked --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings
331332
cargo clippy --locked --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings
333+
cargo clippy --locked --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings
332334
cargo clippy --locked --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings
333335
cargo clippy --locked --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings
334336

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ jobs:
267267
set -euo pipefail
268268
# Retry dependency preparation, then build once.
269269
nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner
270-
for family in features drivers/podman; do
270+
for family in features drivers/podman drivers/kubernetes; do
271271
nix run .#openshell-test-runner -- build \
272272
--family "$family" --out "artifacts/e2e-bundles/${family//\//-}"
273273
done
@@ -283,6 +283,12 @@ jobs:
283283
path: artifacts/e2e-bundles/drivers-podman
284284
retention-days: 5
285285
if-no-files-found: error
286+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
287+
with:
288+
name: openshell-e2e-bundle-drivers-kubernetes-x86_64-unknown-linux-musl
289+
path: artifacts/e2e-bundles/drivers-kubernetes
290+
retention-days: 5
291+
if-no-files-found: error
286292

287293
build-external-drivers:
288294
name: ${{ matrix.binary }} (${{ matrix.triple }})

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ jobs:
122122
{"environment":"fedora-podman-rootless-userns-auto","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
123123
{"environment":"fedora-podman-rootless-userns-keep-id","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
124124
{"environment":"fedora-podman-rootless-userns-private","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
125+
{"environment":"ubuntu-k3s","installer":"k3s","family":"drivers/kubernetes","gateway":"tmachine","runner":"ubuntu-24.04"},
126+
{"environment":"ubuntu-k3s","installer":"k3s-ha","family":"drivers/kubernetes","gateway":"tmachine","runner":"ubuntu-24.04"},
125127
{"environment":"ubuntu-docker-rootful","installer":"deb","family":"continuity","disruption":"gateway-restart","gateway":"openshell","runner":"ubuntu-24.04"},
126128
{"environment":"ubuntu-docker-rootful","installer":"deb-upgrade-source","family":"continuity","disruption":"upgrade","gateway":"openshell","runner":"ubuntu-24.04","upgrade_source":true,"upgrade_package":"deb"}
127129
]'

‎.github/workflows/rust-cache.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
set -euo pipefail
9898
nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner
99-
for family in features drivers/podman; do
99+
for family in features drivers/podman drivers/kubernetes; do
100100
nix run .#openshell-test-runner -- build \
101101
--family "$family" --out "$RUNNER_TEMP/e2e-bundles/${family//\//-}"
102102
done

‎tasks/rust.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ run = [
4242
"cargo clippy --manifest-path tests/suites/conformance/Cargo.toml --workspace --all-targets -- -D warnings",
4343
"cargo clippy --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings",
4444
"cargo clippy --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings",
45+
"cargo clippy --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings",
4546
"cargo clippy --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings",
4647
"cargo clippy --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings",
4748
]
@@ -62,6 +63,7 @@ run = [
6263
"cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all",
6364
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all",
6465
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all",
66+
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all",
6567
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all",
6668
"cargo fmt --manifest-path tests/support/Cargo.toml --all",
6769
]
@@ -81,6 +83,7 @@ run = [
8183
"cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all -- --check",
8284
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check",
8385
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check",
86+
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check",
8487
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check",
8588
"cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check",
8689
]

‎tasks/scripts/check_cargo_lockfile_alignment.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"tests/testkit",
4040
"tests/suites/conformance",
4141
"tests/suites/continuity",
42+
"tests/suites/drivers/kubernetes",
4243
"tests/suites/drivers/podman",
4344
"tests/suites/features",
4445
)

0 commit comments

Comments
 (0)