Skip to content

test(vdb): declare 'test' optional-deps extra (psutil, h5py, pyyaml, mpi4py)#551

Merged
idevasena merged 1 commit into
mainfrom
fix/group-H-psutil-vdb-test-dep
Jun 28, 2026
Merged

test(vdb): declare 'test' optional-deps extra (psutil, h5py, pyyaml, mpi4py)#551
idevasena merged 1 commit into
mainfrom
fix/group-H-psutil-vdb-test-dep

Conversation

@FileSystemGuy

Copy link
Copy Markdown
Contributor

Summary

  • 2 vdb_benchmark tests (`test_compaction_with_resource_monitoring`, `test_memory_aware_loading`) import `psutil` inside the test body and fail with `ModuleNotFoundError` when the venv lacks it; several other tests also need pytest / pyyaml / h5py / mpi4py.
  • Declare a `test` optional-dependency group on `vdb_benchmark` so `uv run --extra test python -m pytest` is fully self-contained — same convention the main project already uses for its own `test` extra.
  • Result: full vdb test suite goes from 134/136 → 136/136 passing.

Test plan

  • `cd vdb_benchmark && uv sync --extra test` installs psutil + companions
  • `uv run --extra test python -m pytest tests/tests/` → 136 passed
  • The two previously-failing tests now pass individually

This is the first PR in a series of small, focused cleanups to bring the test suite to 0 failures + 0 unintentional skips.

…xtra test

Two tests in vdb_benchmark/tests/ (test_compaction_with_resource_monitoring,
test_memory_aware_loading) import psutil inside the test body and fail
with ModuleNotFoundError when the vdb_benchmark venv doesn't have psutil
installed. Several other tests likewise need pytest, pyyaml, h5py, or
mpi4py at collection time.

Declare these as a vdb_benchmark 'test' optional-dependency group so
`uv run --extra test python -m pytest` self-contains every dep the vdb
tests need. Brings the vdb sub-project in line with the main project's
test-extra convention.

After: full vdb test suite goes from 134/136 to 136/136 passing.
@FileSystemGuy FileSystemGuy requested a review from a team June 26, 2026 22:46
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@idevasena idevasena merged commit 6df9a42 into main Jun 28, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants