← Back to issue list

parser - Clean up tmp files from tests.

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1624099
Type
issue
State
closed
Author
~joetalbott
Labels
—
Created
Updated
Closed

Current evaluation

Tests littered /tmp with downloaded origins; fixed by making source/origin download locations mockable so tests clean up artifacts. Merged in snapcore/snapcraft#808 (commit de28a767b).

Resolution: closed resolved

Reason: The issue was closed by maintainer ~sergiusens pointing to snapcore/snapcraft PR #808, which was merged as commit de28a767b ("Don't litter /tmp with test artifacts."). The PR made source/origin download locations mockable so tests could clean up artifacts, resolving the reported /tmp litter from downloaded origins.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Don't leave downloaded origins in /tmp.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Tests littered /tmp with downloaded origins; fixed by making source/origin download locations mockable so tests clean up artifacts. Merged in snapcore/snapcraft#808 (commit de28a767b).
stealth/space-bunny-alpha — closed resolved Tests were leaving downloaded source origins in /tmp. Fixed by merged PR canonical/snapcraft#808 (commit de28a767b, "Don't litter /tmp with test artifacts"), which made origin download locations mockable so tests can clean up; maintainer sergiusens closed the issue by linking that PR.
stealth/space-bunny-alpha — closed resolved Fixed by merged snapcraft#808 (commit de28a767b), making origin download locations mockable so tests can clean up temporary artifacts.
qwen/qwen3.6-35b-a3b — — Closed as fixed. Test cleanup routines were updated to delete downloaded origins from /tmp after execution.
qwen/qwen3.6-35b-a3b — — A request to clean up temporary test files in /tmp was closed, indicating the fix was merged. The change prevents leftover downloaded origins from accumulating after tests run.
qwen/qwen3.6-35b-a3b — — Fixed test cleanup to prevent downloaded origins from lingering in /tmp. The request was closed after the resolution was applied.
qwen3.6-35b-a3b-mtp-q6 — — Closed. The request to clean up downloaded origins in /tmp during tests was abandoned due to inactivity.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#808 (confidence 99%)

    Merged PR referenced in the closing comment; commit de28a767b made origin/source download paths mockable so tests no longer leave files in /tmp.

Related issues

Issue Project State Summary Similarity
#808 Don't litter /tmp with test artifacts. snapcraft merged Merged as de28a767b: made source/origin download locations mockable so tests could clean up artifacts instead of littering /tmp.
78%