Skip to content

fix(e2e): clean up temp files in sandbox-runner on exit#1647

Merged
johntmyers merged 1 commit into
NVIDIA:mainfrom
mesutoezdil:fix/sandbox-runner-temp-leak
Jun 1, 2026
Merged

fix(e2e): clean up temp files in sandbox-runner on exit#1647
johntmyers merged 1 commit into
NVIDIA:mainfrom
mesutoezdil:fix/sandbox-runner-temp-leak

Conversation

@mesutoezdil
Copy link
Copy Markdown
Contributor

@mesutoezdil mesutoezdil commented Jun 1, 2026

sandbox-runner.sh used mktemp on every call but had no cleanup.

Temp files leaked into /tmp for the lifetime of the sandbox.

e2e/policy-advisor/sandbox-runner.sh: one temp dir at startup, removed on exit via trap.

All mktemp calls replaced with paths inside that dir.

Testing

  • bash -n: syntax OK
  • shellcheck: no warnings
  • trap cleanup verified: dir removed after exit
  • mise run pre-commit: all tests pass

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jun 1, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@johntmyers
Copy link
Copy Markdown
Collaborator

/ok to test a2460b8

@johntmyers johntmyers enabled auto-merge (squash) June 1, 2026 15:30
@johntmyers johntmyers merged commit 28ee296 into NVIDIA:main Jun 1, 2026
26 checks passed
jhjaggars pushed a commit to jhjaggars/OpenShell that referenced this pull request Jun 1, 2026
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.

2 participants