Skip to content

fix(ai): persist rag-ingest state in Qdrant instead of state.json - #7535

Merged
dan-petty merged 3 commits into
mainfrom
fix/7479-rag-ingest-store-state
Nov 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/7479-rag-ingest-store-state

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

WorkflowTemplate rag-ingest mounts an emptyDir as DEVOPS_CLI_DATA_DIR, so each new pod starts with an empty data folder (#7479). ingest_repository previously stored each repository's head in repos/<owner>/<name>/state.json, and cleanup_removed_repos discovered removed repositories by globbing repos/*/*/state.json. With an empty data folder, every pod run re-cloned and re-scanned unchanged repositories and never purged points of repositories removed from service.repos.

Closes #7479

Change: openspec/changes/archive/2026-11-28-7479-rag-ingest-store-state/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 04:37
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 946377eeb87394a4e33f12e457efef870c23db58

Check Conclusion Link
Tests & Coverage success run
Changed-Test Independence success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
CodeQL success run
Plan Check skipped run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Changed-Test Independence (run 1 of 3) success run
Runner Image success run
Tests & Coverage (shard 2 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Changed-Test Independence (run 2 of 3) success run
Static Analysis success run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Design Tokens success run
Changed-Test Independence (run 3 of 3) success run
Semantic PR title success run
Service Image success run
Fail-to-Pass Check success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46107127933/job/140862264723

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty
dan-petty merged commit 9f9e8d3 into main Nov 28, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7479-rag-ingest-store-state branch November 28, 2026 04:47
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.232.4](v0.232.3...v0.232.4)
(2026-11-28)


### Bug Fixes

* **ai:** persist rag-ingest state in Qdrant instead of state.json
([#7535](#7535))
([9f9e8d3](9f9e8d3))
* **deps:** lock file maintenance
([#7543](#7543))
([d01fc91](d01fc91))
* **deps:** update dan-petty/devtools Docker tag to v1.5.0
([#7541](#7541))
([01c37e0](01c37e0))
* **deps:** update python:3.14-slim-trixie Docker digest to f57c4c2
([#7537](#7537))
([a79075e](a79075e))
* **k8s:** refuse a volume move under an ApplicationSet
([#7529](#7529))
([3a98031](3a98031))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ai): rag-ingest pods lose the head and removed-repo records

1 participant