Skip to content

fix(e2e): ensure resources from e2e runs are cleaned up#90

Merged
mrhillsman merged 1 commit into
mainfrom
fix/e2e-test-cleanup-leaks
May 24, 2026
Merged

fix(e2e): ensure resources from e2e runs are cleaned up#90
mrhillsman merged 1 commit into
mainfrom
fix/e2e-test-cleanup-leaks

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

The AfterEach hooks were missing --yes (required safety guardrail) and silently discarding errors, causing namespace and VM leaks when cleanup failed.

Adds a suite-level AfterSuite hook that lists all virtwork-test-* namespaces and deletes any that were not cleaned up by individual test AfterEach hooks, preventing resource leaks across test runs.

Fixes: #89

The AfterEach hooks were missing --yes (required safety guardrail) and
silently discarding errors, causing namespace and VM leaks when cleanup
failed.

Adds a suite-level AfterSuite hook that lists all virtwork-test-*
namespaces and deletes any that were not cleaned up by individual test
AfterEach hooks, preventing resource leaks across test runs.

Fixes: #89

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@exe-prow-github-app
exe-prow-github-app Bot requested a review from OchiengEd May 24, 2026 04:59
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 24, 2026
@mrhillsman
mrhillsman removed the request for review from OchiengEd May 24, 2026 04:59
@mrhillsman
mrhillsman merged commit e35f050 into main May 24, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman deleted the fix/e2e-test-cleanup-leaks branch May 24, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: E2E tests leak namespaces and VMs on cluster

1 participant