Skip to content

test(benchmarks): populate orgname/systemname/mode/vdb_engine in VectorDB tests#556

Open
FileSystemGuy wants to merge 1 commit into
mainfrom
fix/group-F-test-benchmarks-orgname
Open

test(benchmarks): populate orgname/systemname/mode/vdb_engine in VectorDB tests#556
FileSystemGuy wants to merge 1 commit into
mainfrom
fix/group-F-test-benchmarks-orgname

Conversation

@FileSystemGuy

Copy link
Copy Markdown
Contributor

Summary

`Benchmark.init` now asserts `args.orgname` is populated upstream by main._main_impl()'s orgname-resolution gate (base.py:125-133), and `_reserve_run_directory → generate_output_location` additionally reads `args.mode`, `args.systemname`, and (for vector_database) `args.vdb_engine`.

The two `TestVectorDBBenchmark` tests built their `SimpleNamespace` without any of those, so each tripped `ConfigurationError [E101]` before reaching the behaviors under test (`test_constructor_accepts_kwargs` verifies the constructor's run_datetime/logger kwarg contract; `test_datasize_does_not_require_pymilvus` verifies that datasize skips the pymilvus dep check).

Populate realistic stand-in values on both Namespaces so the tests actually exercise their intended contracts. The added fields mirror what the orgname/systemname plumbing populates in production.

Test plan

  • `uv run python -m pytest mlpstorage_py/tests/test_benchmarks.py -q` → 17 passed (was 15 passed + 2 failed)

…orDB tests

Benchmark.__init__ now asserts that args.orgname is populated by the
upstream orgname-resolution gate (base.py:125-133) and also reads
args.mode, args.systemname, and (for vector_database) args.vdb_engine
during _reserve_run_directory → generate_output_location.

TestVectorDBBenchmark.test_constructor_accepts_kwargs and
test_datasize_does_not_require_pymilvus built their SimpleNamespace
without any of those, so each hit ConfigurationError before reaching
the behaviors under test.

Set realistic stand-in values on both Namespaces so the tests exercise
the constructor-kwargs contract and the datasize dependency-skip
contract that they were written to verify. The added fields mirror
what the orgname/systemname plumbing populates in production.
@FileSystemGuy FileSystemGuy requested a review from a team June 26, 2026 22:53
@github-actions

Copy link
Copy Markdown

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

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.

1 participant