Skip to content

Comments

Refactor vdbbench scripts into consolidated CLI#8

Open
wvaske wants to merge 2 commits intomainfrom
codex/refactor-vdbbench-scripts-into-single-package
Open

Refactor vdbbench scripts into consolidated CLI#8
wvaske wants to merge 2 commits intomainfrom
codex/refactor-vdbbench-scripts-into-single-package

Conversation

@wvaske
Copy link
Owner

@wvaske wvaske commented Oct 14, 2025

Summary

  • add a unified vdbbench CLI with subcommands for benchmarking, loading, compaction monitoring, and listing collections
  • refactor existing command scripts to expose reusable parser/run entry points consumed by the CLI
  • update packaging, documentation, and legacy wrappers to point to the single entry point

Testing

  • python -m vdbbench.cli --help
  • python -m vdbbench.cli bench --help

https://chatgpt.com/codex/tasks/task_b_68e52c7f8ee48321a781a4bc5392ba82

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +1 to +6
"""Command-line interface for vdbbench."""

import argparse
from typing import List, Optional

from . import compact_and_watch, list_collections, load_vdb, simple_bench

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid importing all subcommands at CLI startup

The CLI now imports every subcommand module eagerly (compact_and_watch, list_collections, etc.) during module import. vdbbench.list_collections imports tabulate at module level and will crash with ModuleNotFoundError if that optional dependency is missing, which now prevents unrelated commands like vdbbench load or vdbbench compact from running at all. Previously each script only required its own dependencies. Consider deferring the import of each subcommand until the user actually invokes it so that optional dependencies remain isolated.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant