Skip to content

fix(vespa): follow Ruff datetime import convention - #892

Merged
jamesgao-jpg merged 1 commit into
zilliztech:mainfrom
jamesgao-jpg:fix-vespa-ruff-datetime
Oct 27, 2026
Merged

jamesgao-jpg merged 1 commit into
zilliztech:mainfrom
jamesgao-jpg:fix-vespa-ruff-datetime

Conversation

@jamesgao-jpg

Copy link
Copy Markdown
Collaborator

Ruff 0.17 reports ICN001 for the Vespa client's datetime import, causing make lint to fail before tests run. Import the module as dt and update its use without changing the date calculation.

This addresses the lint failure observed in PR #870's CI run.

Validation

  • make lint with Ruff 0.17.1 and Black 26.10.1 on Linux ARM64
  • python -m py_compile vectordb_bench/backend/clients/vespa/vespa.py

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jamesgao-jpg
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jamesgao-jpg
jamesgao-jpg merged commit 7e6ea9b into zilliztech:main Oct 27, 2026
4 checks passed
jamesgao-jpg added a commit that referenced this pull request Oct 29, 2026
* Fix the default Chroma connection host

* fix(vespa): follow Ruff datetime import convention (#892)

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>

---------

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
Co-authored-by: Yuanzhan Gao <james.gao@zilliz.com>
jamesgao-jpg added a commit that referenced this pull request Oct 29, 2026
* Keep navigation under the configured base path

* fix(vespa): follow Ruff datetime import convention (#892)

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>

---------

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
Co-authored-by: Yuanzhan Gao <james.gao@zilliz.com>
jamesgao-jpg added a commit that referenced this pull request Oct 29, 2026
* Limit Chroma resets to the benchmark collection

* fix(vespa): follow Ruff datetime import convention (#892)

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>

---------

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
Co-authored-by: Yuanzhan Gao <james.gao@zilliz.com>
gaowayne pushed a commit to gaowayne/VectorDBBench_diskann_zvec that referenced this pull request Oct 30, 2026
Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
(cherry picked from commit 7e6ea9b)
jamesgao-jpg added a commit that referenced this pull request Nov 9, 2026
* feat(zvec): add DiskANN benchmark adapter

- Add DiskANN config, CLI options, and native SDK parameter mappings
- Support DiskANN config serialization and preserve HNSW defaults
- Validate collection reuse, insert results, and index completeness
- Add regression tests and opt-in Linux native smoke test
- Document separate index build and search-only workflows

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* fix(zvec): avoid closing destroyed DiskANN collections

- Skip close() after successful destruction during index rebuild
- Preserve cleanup and abort recreation when destruction fails
- Add regression tests for successful and failed destruction

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* fix(zvec): remove ineffective CLI metric override

Remove --metric-type because task assembly determines the effective
metric from the selected dataset.

- Clarify dataset-derived metrics in CLI help and usage examples
- Add HNSW/DiskANN regression coverage for COSINE and L2 task assembly
- Verify the removed option is rejected rather than silently ignored
- Preserve existing HNSW defaults and shared assembler behavior

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* fix error for metric-type 1

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* fix(zvec): require SDK 0.7.0 or newer

- Require zvec>=0.7.0 for Collection.close() support
- Update setup instructions to install the zvec and test extras
- Add regression coverage for the SDK dependency floor

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* feat(zvec): expose HNSW and DiskANN options in the run-test UI

- Add algorithm-specific controls with HNSW as the default
- Register Zvec build and search configuration inputs
- Cover defaults, bounds, task generation and algorithm switching
- Document UI usage and separate collection paths

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* docs(zvec): fix DiskANN README rendering

Remove common leading indentation so the heading, parameter table
and command examples render correctly. Preserve all documentation
content and command continuation indentation.

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>

* fix(vespa): follow Ruff datetime import convention (#892)

Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
(cherry picked from commit 7e6ea9b)

* fix(zvec): restore configuration delimiters after merge

Restore the closing list bracket and Zvec mapping delimiter lost in b17574f so frontend configuration parses again.

---------

Signed-off-by: Wayne Gao <wayne.gao1@solidigm.com>
Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
Co-authored-by: Yuanzhan Gao <james.gao@zilliz.com>
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.

2 participants