Skip to content

[improve](testing): close maintained error-path gaps toward 90% coverage #2913

Description

@wxyucs

Kind of improvement

test

Affected module

not applicable (maintained C++ algorithms and error paths)

Affected area

area/testing

Summary

Continue the maintained-code coverage stage of #2884 using the repository-scoped measurement foundation merged in #2887. Keep algorithm/test changes separate from CI infrastructure.

Prioritize deterministic edge/error paths in active MCI recursion, RaBitQ/SIMQ variants, HGraph/IVF serialization compatibility and corruption handling, API/factory validation, lifecycle failures, and IO/cache failures. Audit MCI's unused legacy no-argument enumerator before deciding whether removal merits a separate algorithm change; do not execute dead code merely to increase coverage. Deprecated HNSW and DiskANN are explicit non-goals.

Acceptance:

  • Use a completed post-ci: make C++ coverage repository-scoped #2887 full report to prioritize current maintained-code gaps; historical percentages are not the new denominator.
  • Add focused deterministic tests that assert behavior on maintained edge/error paths.
  • Resolve the unused MCI legacy-path disposition through a reviewed algorithm-focused change if needed.
  • Demonstrate at least 90% repository-scoped line coverage on three consecutive full runs, with identical-source variation no greater than 0.1 percentage points, without blanket exclusions.

Expected benefit

Improve regression protection and reach the parent's 90% objective through useful tests and reviewed dead-code decisions, independently of the pre-merge CI rollout.

Benchmark evidence

The historical gap analysis is in #2884. Post-foundation full reports were still pending when this stage was split; no new full-suite percentage is claimed.

References

Related issues

Duplicate search for coverage error paths returned #2884, #1949, #2447, #2582, and #2661. This issue tracks the coverage stage of #2884; dependency removal and new IO/analyzer features are outside scope.


Drafted with AI assistant: Codex:GPT-6

Activity

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

Metadata

Metadata

Assignees

Labels

area/testingTests, fixtures, and test infrastructure 测试、夹具与测试基础设施kind/improvementOptimizations, UX polish, or minor improvements 性能优化、体验打磨或细节改良module/apiPublic C++ API and headers 公共 C++ API 与头文件module/indexIndex algorithms and implementations 索引算法与实现pts/13Very large effort; usually split before planning 超大工作量;纳入计划前通常应拆分version/1.1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions