Skip to content

Check for file changes (by sha256 hash) before vectorising#178

Merged
Davidyz merged 2 commits intomainfrom
cli/file_hash
Jun 8, 2025
Merged

Check for file changes (by sha256 hash) before vectorising#178
Davidyz merged 2 commits intomainfrom
cli/file_hash

Conversation

@Davidyz
Copy link
Owner

@Davidyz Davidyz commented Jun 7, 2025

This PR stores the file hashes into the metadata.

On a supported collection, VectorCode will now compare the file hash and the hash stored in the database. If they're the same, they're considered to be the same file (unchanged), and the vectorisation will be skipped for this file.

@Davidyz Davidyz added enhancement New feature or request feature labels Jun 7, 2025
@codecov
Copy link

codecov bot commented Jun 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.48%. Comparing base (cdeccee) to head (f443789).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   99.28%   99.48%   +0.20%     
==========================================
  Files          22       22              
  Lines        1534     1548      +14     
==========================================
+ Hits         1523     1540      +17     
+ Misses         11        8       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Davidyz Davidyz merged commit 4e96ad3 into main Jun 8, 2025
13 checks passed
@Davidyz Davidyz deleted the cli/file_hash branch June 8, 2025 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant