Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@rfay
Copy link
Member

@rfay rfay commented Oct 18, 2025

The Issue

Automated tests were failing intermittently during teardown with rm -rf errors, even though the command should force removal. The failures were unpredictable and occurred in GitHub Actions CI.

Example: https://github.com/ddev/ddev-php85/actions/runs/18613287473/job/53074416697#step:2:195

How This Solves The Issue

  • Removed set -eu -o pipefail from teardown() to prevent errors from causing teardown to fail
  • Added || true to both ddev delete and rm -rf commands to make cleanup best-effort
  • Teardown failures are now non-fatal since cleanup is cosmetic on ephemeral CI infrastructure (the VM gets destroyed anyway)
  • Uniquely named test directories prevent interference between tests anyway even if cleanup fails

Automated Testing Overview

The existing test suite validates this change. Tests shouldn't fail due to teardown cleanup issues.

## The Issue

Automated tests were failing intermittently during teardown with `rm -rf`
errors, even though the command should force removal. The failures were
unpredictable and occurred in GitHub Actions CI.

## How This Solves The Issue

- Removed `set -eu -o pipefail` from teardown() to prevent errors from
  causing teardown to fail
- Added `|| true` to both `ddev delete` and `rm -rf` commands to make
  cleanup best-effort
- Teardown failures are now non-fatal since cleanup is cosmetic on ephemeral
  CI infrastructure (the VM gets destroyed anyway)
- Uniquely named test directories prevent interference between tests even if
  cleanup fails

## Automated Testing Overview

The existing test suite validates this change. Tests will no longer fail due
to teardown cleanup issues.

## Release/Deployment Notes

This is a test infrastructure change only. No impact on add-on functionality
or user-facing features.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@rfay rfay merged commit b4c5fe6 into main Oct 18, 2025
8 checks passed
@rfay rfay deleted the 20251018_flaky_drupal11_teardown branch October 18, 2025 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants