Skip to content

fix: clean up E2E temp directories on all platforms #5196

@paolino

Description

@paolino

Summary

When E2E tests get cancelled (timeout or cancel-in-progress), withSystemTempDirectory cleanup never runs, leaking ~17GB per run. This filled the Linux runner's /tmp tmpfs and broke all CI jobs (see #5195 for the Linux fix).

The same issue affects the Windows E2E workflow (windows-e2e.yml), which also lacks a cleanup step.

Fix

Add an if: always() cleanup step to windows-e2e.yml:

      - name: Cleanup temp directories
        if: always()
        shell: pwsh
        run: |
          Get-ChildItem $env:TEMP -Directory -Filter "e2e*" | Remove-Item -Recurse -Force

Status

Metadata

Metadata

Assignees

Labels

BugTestsAdding additional tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions