Skip to content

ci(e2e): stop E2E setup downloading release assets from GitHub on each run - #6105

Draft
matthewgrossman wants to merge 2 commits into
mainfrom
ci/k8s-setup-download-flake/matthewgrossman
Draft

matthewgrossman wants to merge 2 commits into
mainfrom
ci/k8s-setup-download-flake/matthewgrossman

Conversation

@matthewgrossman

Copy link
Copy Markdown
Member

Summary

Kubernetes, Podman, and VM E2E setup no longer fails when GitHub release downloads are down. The tmachine K3s rows now get k3s and the Agent Sandbox manifest from the host. The Actions jobs now restore mise tools and the manifests from a cache saved on main. Every download is still checksum-verified.

Related Issue

Closes #6104

Changes

  • tests/tmachine/config.nix: pin the k3s binary, its install script, and the Agent Sandbox v0.5.0 manifest as fetchurl inputs. k3s.yaml and openshell-k3s.yaml copy them into the guest and run the install script with INSTALL_K3S_SKIP_DOWNLOAD=true.
  • e2e/support/install-agent-sandbox.sh: pin the SHA-256 of the v0.4.6, v0.5.0, and v1.0.3 manifests, keep a verified copy in AGENT_SANDBOX_MANIFEST_DIR, and apply that file. --download-only fetches every pinned release.
  • .github/actions/setup-agent-sandbox-manifests: restore that directory, or with save: "true" download and save it.
  • .github/workflows/rust-cache.yml: new e2e-tools job on main that saves the mise and manifest caches PR jobs restore. setup-mise caches saved under PR refs aren't visible to other PRs, so every E2E job downloaded about 20 tools.
  • mise.toml/mise.lock: add kind v0.31.0, the version helm/kind-action installed. setup-e2e-kind runs kind create cluster directly.

Testing

  • actionlint, shellcheck, zizmor, and nix fmt pass on the changed files
  • install-agent-sandbox.sh tested locally: fresh download, offline reuse of a cached copy, corrupted cached copy, unknown version, failed download, and checksum mismatch
  • tmachine config builds and fetches all three pinned files. One local ubuntu-k3s/k3s setup installed k3s and Agent Sandbox without downloading from GitHub
  • Branch E2E Kubernetes and tmachine K3s rows pass on this PR (the main-saved caches take effect after merge)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

…host

The guest downloaded the k3s binary and the Agent Sandbox manifest from
GitHub during setup, so GitHub release download errors failed the K3s
rows before any test ran. Pin both, with the k3s install script, as
fetchurl inputs and copy them into the guest.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
E2E jobs downloaded every mise tool, kind, and the Agent Sandbox
manifest from GitHub on each run, because only PR refs saved the mise
cache. When GitHub serves an error page with a non-error status, mise
and kind-action report checksum mismatches.

Save the mise tools and the pinned Agent Sandbox manifests from main in
rust-cache.yml, install kind through mise, and verify each manifest
against a pinned checksum before applying it.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman matthewgrossman added test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage labels Nov 30, 2026
@matthewgrossman matthewgrossman self-assigned this Nov 30, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 30, 2026
@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(e2e): GitHub release download errors fail Kubernetes E2E setup

1 participant