Skip to content

test(k8s): Add a per-repository RAG ingest coverage test - #6266

Merged
dan-petty merged 3 commits into
mainfrom
test/3949-verify-scheduled-rag-ingest-indexes-each
Nov 18, 2026
Merged

dan-petty merged 3 commits into
mainfrom
test/3949-verify-scheduled-rag-ingest-indexes-each

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The scheduled ingest runs devops ai rag ingest, which calls run_ingest_pass over service.repos, but no test asserts that one pass gives each configured repository at least one indexed point. An ingest that skips one repository leaves the index incomplete, and search returns nothing for that repository. This change adds the offline test that fails, naming the repository, when one has no point (#3949).

Closes #3949

Change: openspec/changes/archive/2026-11-18-3949-verify-scheduled-rag-ingest-indexes-each/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 18, 2026
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3949 Add a per-repository RAG ingest coverage test test(k8s): Add a per-repository RAG ingest coverage test Nov 18, 2026
@devops-cli-service devops-cli-service Bot added type/test Type test: a new or changed test scope/k8s Kubernetes commands, Helm charts, pods, services, and policies and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 18, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the test/3949-verify-scheduled-rag-ingest-indexes-each branch from 0cb5de0 to 0a604d7 Compare November 18, 2026 06:21
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 1107871/11201 -
  • scoped check pre-push: passed, 26 s
  • scoped check static: passed, 108 s
  • scoped check tests: passed, 22 s
  • scoped check strength: passed, 0 s
  • group 1: skipped, group 1: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/
  • verify of group 1: uv run devops ci test tests/ai/rag/test_rag_ingest.py exits 0.
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-3949
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, platformdirs-4.14.7, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.2, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 23 items

tests/ai/rag/test_rag_ingest.py .......................                                                                                                                                                                                            [100%]

=================================================================================================================== 23 passed in 5.68s ===================================================================================================================
Bytecode compiled 23342 files in 2.23s
Bytecode compiled 23342 files in 2.39s
/home/devops/.data/agent/worktrees/w-3949/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 18, 2026 06:27
@dan-petty
dan-petty merged commit 89e8f1c into main Nov 18, 2026
23 checks passed
@dan-petty
dan-petty deleted the test/3949-verify-scheduled-rag-ingest-indexes-each branch November 18, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(k8s): Verify scheduled RAG ingest indexes each repository

1 participant