Repository navigation
test(e2e): add make e2e-k3s to run the end-to-end test on a remote k3s server - #2
Merged
Merged
Conversation
…s server GitHub keeps running the end-to-end test on kind. make e2e-k3s is started by hand and runs the same run.sh on a k3s server over SSH, so the cluster work uses the server's compute instead of the maintainer's machine. test/e2e/k3s.sh builds the images locally, imports them with "docker save | ssh ... k3s ctr images import", reaches the API through an SSH tunnel, tags images per run, and removes the tunnel and the copied images on exit. The server address comes from K3S_HOST in .env, so it never lands in the repository. run.sh now also strips a trailing \r from E2E_ZONE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What does this change?
Adds
make e2e-k3s(test/e2e/k3s.sh). It runs the existing end-to-end test (test/e2e/run.sh) on a remote k3s server over SSH. GitHub CI is unchanged and keeps using kind.Why?
A remote server has more compute, and the test cluster stays off the maintainer's machine. The run is started by hand; it never runs in CI.
How it works:
docker save | ssh ... k3s ctr images importK3S_HOSTin.env, so no server address lands in the repositoryrun.shalso strips a trailing\rfromE2E_ZONEnow (for.envfiles with Windows line endings).How did you test it?
make testpassesmake lintpassesmake e2e-k3spassed in fake mode and in real mode (real Hostinger zone, DNS checked on Hostinger's name servers). Afterwards the server had no test images or namespaces left, and the zone had only its original records.Checklist
docs/development.md, run-e2e skill,AGENTS.md,CHANGELOG.md)🤖 Generated with Claude Code