Repository navigation
Closed
Labels
area/backendsProvider-specific work: Ollama, HF, LiteLLM, OpenAI, Bedrock, vLLMp2Medium/low: minor bugs, niche features, polish, docs, tests, cleanup. Scoped, lower urgency.testing
Description
Context
Part of the Testing Infrastructure & Strategy Overhaul epic (item 7). PR #721 (@avinash2692) introduces cleanup_gpu_backend() and directly fixes the core issues: #625 (vLLM redundant servers), #630 (HF memory leaks), #620 (HF metrics OOM).
Objective
Once PR #721 lands, follow up by removing or consolidating workarounds that are no longer needed. Centralise any remaining platform-specific logic into shared fixtures.
Work
- Wait for PR ci: memory management in tests #721 to merge
- Remove or consolidate
aggressive_gpu_cleanup()if superseded bycleanup_gpu_backend() - Remove
--isolate-heavyprocess isolation if no longer needed - Clean up scattered per-test cleanup code across conftest.py and individual tests
- Centralise remaining platform-specific logic (MPS differences, no-GPU skip paths) into shared fixtures
- Verify CI: backends for vllm testing are redundant and cause CUDA context lock #625, creating multiple LocalHFBackend in pytest caused a memory leak #630, test_huggingface_token_metrics_integration is too heavy #620, test: intermittent failures from vllm tests on LSF cluster #699 are resolved and can be closed
Notes
- Do not start this until PR ci: memory management in tests #721 is merged
- CI: backends for vllm testing are redundant and cause CUDA context lock #625, creating multiple LocalHFBackend in pytest caused a memory leak #630, test_huggingface_token_metrics_integration is too heavy #620, test: intermittent failures from vllm tests on LSF cluster #699 are expected to close with PR ci: memory management in tests #721 — this issue covers any residual cleanup
Metadata
Metadata
Assignees
Labels
area/backendsProvider-specific work: Ollama, HF, LiteLLM, OpenAI, Bedrock, vLLMp2Medium/low: minor bugs, niche features, polish, docs, tests, cleanup. Scoped, lower urgency.testing
Activity
planetf1 commentedon Aug 10, 2026
Status update (Aug 2026):
PR #721 merged Mar 2026. Checking each checklist item:
cleanup_gpu_backend()introduced and active (test/conftest.pyline 341)--isolate-heavyprocess isolation — not present in CI config, appears removedaggressive_cleanup()still exists attest/conftest.pyline 717 — coexists withcleanup_gpu_backend()rather than being replaced by itThe one remaining item: decide whether
aggressive_cleanup()is still needed or is a leftover workaround thatcleanup_gpu_backend()supersedes. If it is redundant, remove it and close this issue.planetf1 commentedon Oct 5, 2026
Completed — all six work items verified against
main(2026-10-05,e99267edc).Picking up where the August status update left off — the one outstanding item has since gone:
cleanup_gpu_backend()active and centralised intest/conftest.py:390aggressive_gpu_cleanup()— no longer in the tree (zero matches intest/and in fetched history)--isolate-heavyprocess isolation — absent from CI config and test toolingtest/README.md, nightly/GPU matrix section)