Repository navigation
ci(e2e): stop E2E setup downloading release assets from GitHub on each run - #6105
Draft
matthewgrossman wants to merge 2 commits into
Draft
matthewgrossman wants to merge 2 commits into
matthewgrossman wants to merge 2 commits into
Conversation
…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>
|
🌿 Preview your docs: https://nvidia-preview-pr-6105.docs.buildwithfern.com/openshell |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asfetchurlinputs.k3s.yamlandopenshell-k3s.yamlcopy them into the guest and run the install script withINSTALL_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 inAGENT_SANDBOX_MANIFEST_DIR, and apply that file.--download-onlyfetches every pinned release..github/actions/setup-agent-sandbox-manifests: restore that directory, or withsave: "true"download and save it..github/workflows/rust-cache.yml: newe2e-toolsjob onmainthat saves the mise and manifest caches PR jobs restore.setup-misecaches 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 versionhelm/kind-actioninstalled.setup-e2e-kindrunskind create clusterdirectly.Testing
nix fmtpass on the changed filesinstall-agent-sandbox.shtested locally: fresh download, offline reuse of a cached copy, corrupted cached copy, unknown version, failed download, and checksum mismatchubuntu-k3s/k3ssetup installed k3s and Agent Sandbox without downloading from GitHubChecklist