Skip to content

fix: handle stale .vllm-venv in test runner#829

Merged
planetf1 merged 2 commits intogenerative-computing:mainfrom
planetf1:fix/vllm-venv-cleanup-828
Apr 13, 2026
Merged

fix: handle stale .vllm-venv in test runner#829
planetf1 merged 2 commits intogenerative-computing:mainfrom
planetf1:fix/vllm-venv-cleanup-828

Conversation

@planetf1
Copy link
Copy Markdown
Contributor

@planetf1 planetf1 commented Apr 13, 2026

fix: handle stale .vllm-venv in test runner

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

The test runner's trap cleanup EXIT removes .vllm-venv on normal exit, but hard kills (SIGKILL, OOM, LSF timeout) bypass the trap, leaving a stale directory that causes uv venv to fail on the next run.

Changes:

  • Add --clear to the uv venv call so stale directories are replaced
  • Add .*-venv to .gitignore — when CACHE_DIR is unset the venv lands in the repo root

Testing

  • Verified uv venv --clear replaces an existing directory
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Add --clear to the uv venv call so a leftover venv from a killed job
or incomplete cleanup is replaced instead of causing a hard failure.

Fixes generative-computing#828
When CACHE_DIR is unset the test runner creates .vllm-venv in the repo
root. Without a gitignore entry this multi-GB directory can be
accidentally committed or rsynced. Use a wildcard to cover any future
isolated venvs following the same naming pattern.
@github-actions
Copy link
Copy Markdown
Contributor

The PR description has been updated. Please fill out the template for your PR to be reviewed.

@planetf1 planetf1 changed the title Fix/vllm venv cleanup 828 fix: handle stale .vllm-venv in test runner Apr 13, 2026
@github-actions github-actions Bot added the bug Something isn't working label Apr 13, 2026
@planetf1 planetf1 requested a review from avinash2692 April 13, 2026 10:13
@planetf1 planetf1 marked this pull request as ready for review April 13, 2026 10:13
@planetf1 planetf1 requested a review from a team as a code owner April 13, 2026 10:13
@planetf1 planetf1 requested a review from jakelorocco April 13, 2026 10:13
@planetf1 planetf1 added this pull request to the merge queue Apr 13, 2026
Merged via the queue into generative-computing:main with commit fdddf8c Apr 13, 2026
6 of 9 checks passed
@planetf1 planetf1 deleted the fix/vllm-venv-cleanup-828 branch April 13, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: run_tests_with_ollama_and_vllm.sh fails on stale .vllm-venv

2 participants