Skip to content

fix: clean up E2E temp directories on cancellation#5195

Merged
paolino merged 1 commit into
masterfrom
fix/e2e-cleanup-temp-dirs
Feb 14, 2026
Merged

fix: clean up E2E temp directories on cancellation#5195
paolino merged 1 commit into
masterfrom
fix/e2e-cleanup-temp-dirs

Conversation

@paolino
Copy link
Copy Markdown
Collaborator

@paolino paolino commented Feb 14, 2026

Summary

  • Add if: always() cleanup step to the E2E workflow to remove /tmp/e2e-* and /tmp/test-cluster* after each run

Problem

When E2E tests get cancelled (timeout or cancel-in-progress), the process is SIGKILL'd and withSystemTempDirectory cleanup never runs. Each cancelled run leaks ~17GB in /tmp. Four stale dirs accumulated to ~57GB, filled the runner's 63GB tmpfs, and broke all CI jobs with database or disk is full errors on the nix eval cache.

Test plan

  • Manually cleaned /tmp on builder-new (93% → 1%)
  • Re-triggered failed CI runs
  • Verify next E2E cancellation leaves no stale dirs

When E2E tests are cancelled (timeout or cancel-in-progress), the
process gets SIGKILL'd and withSystemTempDirectory cleanup never runs,
leaking ~17GB per run in /tmp/e2e-* and /tmp/test-cluster-* dirs.
This filled the runner's tmpfs and broke all CI jobs.
@paolino paolino merged commit d029c87 into master Feb 14, 2026
18 checks passed
@paolino paolino deleted the fix/e2e-cleanup-temp-dirs branch February 14, 2026 19:12
@paolino paolino added the CI/CD CI related label Feb 14, 2026
@paolino paolino self-assigned this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD CI related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant