Repository navigation
fix(ai): skip unchanged files in a run with no index cache - #7478
Merged
Merged
Conversation
…ore holds The tests fail on the base: each run with a new cache folder embeds every file again (#7467).
Each point now holds the content hash of its whole file and the count of the chunks of that version. When the cache file does not hold the hash of a file, the run reads the file state of its project from Qdrant with one paged scroll of three payload keys for each collection, and skips a file that the store holds whole and current. A new pod of the rag-ingest Workflow thus embeds only the changed files (#7467).
Add the test of the file_hash and file_chunks keys of each point.
This was referenced Nov 27, 2026
Owner
Author
ProofFail-to-pass: the CI check Fail-to-Pass Check passed. The local run
Local checks on the head
PR checks: all pass. Trivy shows Pending a person, after the release
Follow-up
|
dan-petty
marked this pull request as ready for review
November 27, 2026 23:14
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 27, 2026
🤖 I have created a release *beep* *boop* --- ## [0.229.5](v0.229.4...v0.229.5) (2026-11-27) ### Bug Fixes * **ai:** skip unchanged files in a run with no index cache ([#7478](#7478)) ([60a3540](60a3540)) * **repos:** onboard requires checks of a merged template pull request ([#7477](#7477)) ([46b9c95](46b9c95)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each pod of the rag-ingest Workflow starts with an empty data folder. The indexer found no cache file there, so each run embedded every chunk again: a run took 73.5 minutes, and the CronWorkflow started the next run at once.
Each point now holds the content hash of its whole file (
file_hash) and the count of the chunks of that version (file_chunks). When the cache file does not hold a file, the run reads these keys of the project from Qdrant once, with a paged scroll of each collection. It skips each file that Qdrant holds whole with its current hash. It embeds an edited or incomplete file again after it deletes the old points, and it deletes the points of a deleted file. A failed read stops the run before any embed. The cache file stays a local speed-up.Points from an earlier release hold no file hash. The first run after the release embeds each file once more. Later runs skip it.
Closes #7467
Change:
openspec/changes/archive/2026-11-27-7467-rag-ingest-skips-unchanged-files/