Conversation
Bash script that exercises the full droplet lifecycle: create (no Tailscale), verify SSH config, run commands over SSH, destroy, and verify cleanup. Designed for CI reuse with env-var overrides and trap-based cleanup on failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Runs the lifecycle test every Monday at 06:00 UTC (also manually triggerable via workflow_dispatch). Uses the smallest droplet size to minimize cost. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The zsh PROMPT string contains `%` sequences that Jinja2 interprets
as template syntax. Wrap in {% raw %}...{% endraw %} to preserve
the literal prompt definition.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add E2E test requirement to critical rules, document the test in both CLAUDE.md and README.md development sections, and add a `make e2e` target. Fix help grep pattern to include digits so `e2e` appears. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the GitHub Actions E2E workflow — storing DO credentials in CI is not feasible securely. Instead, add the E2E lifecycle test as a pre-push hook via prek so developers run it locally with their own credentials before pushing. Hardcode test defaults (nyc3, s-1vcpu-1gb, ubuntu-24-04-x64) so the tests are deterministic and don't depend on user config values. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
prek only installs pre-commit hooks by default; the pre-push stage needs an explicit install command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pre-push hooks block the git SSH connection to the remote, which times out and kills the push before the E2E test finishes. Use a manual stage instead — developers run `prek run --stage manual` before pushing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
DarkaMaul
reviewed
Mar 23, 2026
DarkaMaul
reviewed
Mar 23, 2026
Co-authored-by: dm <alexis.challande@trailofbits.com>
DarkaMaul
reviewed
Mar 23, 2026
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
tests/e2e/test_lifecycle.sh) that exercises the full create → SSH → destroy workflow against a real DigitalOcean dropletmake e2etargetprek run --stage manualbecause it is too long to run as a pre-commit or pre-push hook.Test plan
shellcheck tests/e2e/test_lifecycle.sh— passes with only informational notesmake help—e2etarget appears in output./tests/e2e/test_lifecycle.shlocally with valid config — full lifecycle completes🤖 Generated with Claude Code