Commit Graph
7 Commits
Author SHA1 Message Date
KaifAhmad1 bb95c00a88 fix(benchmarks): Update vector storage test for backend store compatibility
- Fix test_vector_storage_manager_overhead to work with backend stores
- Handle both in-memory vectors and backend store vector_ids
- Ensure benchmark works with FAISS backend and other vector stores
2026-02-12 13:16:34 +05:30
KaifAhmad1andZohaibHassan16 3f12e78ca0 fix: resolve CI import errors with proper test-only mocking
- Remove mock files from main semantica module (keep test environment clean)
- Enhance conftest.py with pre-emptive sys.modules mocking
- Create mock arrow_exporter module at runtime before imports
- Fix pyarrow 'pa' alias and schema mocking issues
- Ensure benchmark tests run without heavy dependencies
- All tests pass with zero changes to main codebase structure

Co-authored-by: ZohaibHassan16 <zohaib.hassan16@example.com>
Co-authored-by: KaifAhmad1 <kaifahmad087@gmail.com>
2026-02-07 17:23:57 +05:30
KaifAhmad1andZohaib Hassan 1ff05eef42 fix: resolve CI import errors with conditional ArrowExporter handling
- Add conditional import for ArrowExporter in semantica/export/__init__.py
- Create fallback dummy class when ArrowExporter is not available in CI
- Enhanced conftest.py with pre-emptive module mocking
- Fix pyarrow 'pa' alias and schema mocking issues
- Ensure benchmark tests run without heavy dependencies
- All 138 benchmarks now pass in local testing environment

Co-authored-by: Zohaib Hassan <zohaib.hassan16@example.com>
Co-authored-by: Mohd Kaif <kaifahmad087@gmail.com>
2026-02-07 17:11:55 +05:30
KaifAhmad1andZohaib Hassan e5e012cb5e fix: add comprehensive mocking for CI environment
- Create mock_arrow_exporter.py in benchmarks/export/ directory
- Enhance conftest.py to handle missing ArrowExporter imports
- Add module-level mocking for semantica.export.arrow_exporter
- Patch sys.modules to prevent import errors in CI
- Ensure benchmark tests run without heavy dependencies
- Fix pyarrow and pdfplumber import issues for CI compatibility

Co-authored-by: Zohaib Hassan <zohaib.hassan16@example.com>
Co-authored-by: Mohd Kaif <kaifahmad087@gmail.com>
2026-02-07 16:31:28 +05:30
KaifAhmad1andZohaib Hassan 48114a1d86 fix: enhance mocking system for CI environment
- Add pyarrow, arrow, and pa to HEAVY_LIBS for proper mocking
- Enhance MockFinder to handle pyarrow and arrow modules
- Add specific 'pa' alias mocking to prevent NameError
- Improve RobustMock to handle pyarrow patterns like pa.schema
- Ensure CI compatibility with heavy library dependencies
- Fix pdfplumber and pyarrow import issues in benchmark tests

Co-authored-by: Zohaib Hassan <zohaib.hassan16@example.com>
Co-authored-by: Mohd Kaif <kaifahmad087@gmail.com>
2026-02-07 16:18:52 +05:30
KaifAhmad1andZohaib Hassan 21269ea501 feat: enhance benchmark suite with comprehensive testing and fixes
- Fix division by zero error in bulk_loader.py for production stability
- Enhance mocking system in conftest.py for PIL/Pillow and heavy libraries
- Add comprehensive benchmark_results.md with detailed performance metrics
- Include all 138 benchmark results with performance analysis
- Add production recommendations and optimization insights
- Ensure environment-agnostic CI/CD compatibility
- Maintain zero breaking changes while adding robust testing

Co-authored-by: Zohaib Hassan <zohaib.hassan16@example.com>
Co-authored-by: Mohd Kaif <kaifahmad087@gmail.com>
2026-02-07 16:08:14 +05:30
ZohaibHassan16 9b05622f8c feat(perf): benchmark suite with regressive CLI 2026-02-06 16:31:33 +05:00