Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/branch-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ jobs:
cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/suites/drivers/docker/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check
cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check
Expand Down Expand Up @@ -343,6 +344,7 @@ jobs:
cargo clippy --locked --manifest-path tests/suites/conformance/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/suites/drivers/docker/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings
cargo clippy --locked --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/branch-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:
set -euo pipefail
# Retry dependency preparation, then build once.
nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner
for family in features drivers/docker drivers/podman; do
for family in features drivers/docker drivers/kubernetes drivers/podman; do
nix run .#openshell-test-runner -- build \
--family "$family" --out "artifacts/e2e-bundles/${family//\//-}"
done
Expand All @@ -285,6 +285,12 @@ jobs:
path: artifacts/e2e-bundles/drivers-docker
retention-days: 5
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-e2e-bundle-drivers-kubernetes-x86_64-unknown-linux-musl
path: artifacts/e2e-bundles/drivers-kubernetes
retention-days: 5
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openshell-e2e-bundle-drivers-podman-x86_64-unknown-linux-musl
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/e2e-suites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# results. With `prebuilt`, the rows run what the caller built once for the
# run instead: conformance rows the static `openshell-conformance`, the other
# rows their family's test bundle. The `family` input selects the rows of one
# family, including the workspaces under it (drivers selects drivers/docker
# and drivers/podman); leave it empty to run every row.
# family, including the workspaces under it (drivers selects drivers/docker,
# drivers/kubernetes and drivers/podman); leave it empty to run every row.

name: E2E Suites

Expand Down Expand Up @@ -146,6 +146,8 @@ jobs:
{"environment":"fedora-podman-rootful-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"fedora-podman-rootless-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"ubuntu-docker-rootful","installer":"deb","family":"drivers/docker","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"ubuntu-k3s","installer":"k3s","family":"drivers/kubernetes","gateway":"tmachine","runner":"ubuntu-24.04"},
{"environment":"ubuntu-k3s","installer":"k3s-ha","family":"drivers/kubernetes","gateway":"tmachine","runner":"ubuntu-24.04"},
{"environment":"fedora-podman-rootful-userns-default","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"fedora-podman-rootful-userns-auto","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"fedora-podman-rootful-userns-keep-id","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
run: |
set -euo pipefail
nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner
for family in features drivers/docker drivers/podman; do
for family in features drivers/docker drivers/kubernetes drivers/podman; do
nix run .#openshell-test-runner -- build \
--family "$family" --out "$RUNNER_TEMP/e2e-bundles/${family//\//-}"
done
5 changes: 3 additions & 2 deletions CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@ images. Release Dev, Release, and Pre-release use the same package installers.
The feature suites (`tests/suites/features`) and the Docker and Podman driver
suites (`tests/suites/drivers/{docker,podman}`) run the same way, on the package
installers; the Podman driver suite's environments merge their Podman settings
into the packaged gateway's configuration (see `TESTING.md`). The `e2e-podman`
lane runs on the RPM installer as well. The driver suites and `e2e-podman` run
into the packaged gateway's configuration (see `TESTING.md`). The Kubernetes
driver suite (`tests/suites/drivers/kubernetes`) runs on the `k3s` and `k3s-ha`
installers. The `e2e-podman` lane runs on the RPM installer as well. The driver suites and `e2e-podman` run
only in `Branch E2E Checks`. The manual Integration Tests workflow runs the
remaining tmachine testsuites, such as `e2e-podman`, and downloads the packages
selected by its matrix.
Expand Down
5 changes: 4 additions & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,10 @@ builds in `branch-e2e.yml` and `rust-cache.yml`. The Docker and Podman driver
suites (`tests/suites/drivers/{docker,podman}`) check what the driver does with
a sandbox's containers when its workload stops or an ephemeral sandbox
finishes. The Podman suite also compares OpenShell and direct Podman
user-namespace mappings.
user-namespace mappings. The Kubernetes driver suite
(`tests/suites/drivers/kubernetes`) checks the objects the driver keeps for a
sandbox. It runs on the `k3s` and `k3s-ha` installers, which publish the
cluster's kubeconfig and the release namespace for `tests/support/kube`.
Each `fedora-podman-{rootful,rootless}-userns-<mode>` environment configures
the gateway with one mode (`default`, `auto`, `keep-id` or `private`) and works
with every installer; CI runs it with `rpm`:
Expand Down
5 changes: 0 additions & 5 deletions e2e/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ name = "kubernetes_corporate_proxy"
path = "tests/kubernetes_corporate_proxy.rs"
required-features = ["e2e-kubernetes"]

[[test]]
name = "kubernetes_runtime_reconcile"
path = "tests/kubernetes_runtime_reconcile.rs"
required-features = ["e2e-kubernetes"]

[[test]]
name = "kubernetes_tracing"
path = "tests/kubernetes_tracing.rs"
Expand Down
271 changes: 0 additions & 271 deletions e2e/rust/tests/kubernetes_runtime_reconcile.rs

This file was deleted.

3 changes: 3 additions & 0 deletions tasks/rust.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ run = [
"cargo clippy --manifest-path tests/suites/conformance/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/suites/drivers/docker/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings",
"cargo clippy --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings",
Expand All @@ -63,6 +64,7 @@ run = [
"cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all",
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all",
"cargo fmt --manifest-path tests/suites/drivers/docker/Cargo.toml --all",
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all",
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all",
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all",
"cargo fmt --manifest-path tests/support/Cargo.toml --all",
Expand All @@ -83,6 +85,7 @@ run = [
"cargo fmt --manifest-path tests/suites/conformance/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/suites/drivers/docker/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check",
"cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check",
Expand Down
Loading
Loading