Skip to content

fix(label-known-issues): clean up tempfiles - #720

Merged
mergify[bot] merged 1 commit into
os-autoinst:masterfrom
okurz:feature/008_gh717_clean_up_tempfiles
Sep 25, 2026
Merged

mergify[bot] merged 1 commit into
os-autoinst:masterfrom
okurz:feature/008_gh717_clean_up_tempfiles

Conversation

@okurz

@okurz okurz commented Sep 24, 2026

Copy link
Copy Markdown
Member

Motivation:
Ensure that temporary files created by openqa-label-known-issues are
reliably and automatically deleted after test executions and script runs.

Design Choices:
Replaced manual tempfile.mkstemp and unlink with contextlib.ExitStack
and tempfile.NamedTemporaryFile utilizing automated context management.

Benefits:
Prevents leftover /tmp pollution and simplifies resource management.

Related issue: #717

Motivation:
Ensure that temporary files created by `openqa-label-known-issues` are
reliably and automatically deleted after test executions and script runs.

Design Choices:
Replaced manual `tempfile.mkstemp` and `unlink` with `contextlib.ExitStack`
and `tempfile.NamedTemporaryFile` utilizing automated context management.

Benefits:
Prevents leftover `/tmp` pollution and simplifies resource management.

Related issue: os-autoinst#717
@mergify
mergify Bot merged commit 7e0b509 into os-autoinst:master Sep 25, 2026
6 checks passed
@okurz
okurz deleted the feature/008_gh717_clean_up_tempfiles branch September 25, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants