Skip to content

Regression fixes: Per repo fixes - #133

Merged
m1rl0k merged 7 commits into
Context-Engine-AI:testfrom
voarsh2:per-repo-fixes
Dec 30, 2025
Merged

m1rl0k merged 7 commits into
Context-Engine-AI:testfrom
voarsh2:per-repo-fixes

Conversation

@voarsh2

@voarsh2 voarsh2 commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

No description provided.

- scripts/ingest/cli.py: stop passing collection=None in multi-repo mode; iterate repo dirs and call index_repo with each repo’s derived collection so Qdrant always receives a concrete name.
- scripts/workspace_state.py: in multi-repo mode, ignore COLLECTION_NAME overrides when repo_name is provided, preventing codebase/codebase_old hijacking; add regression tests covering both multi- and single-repo precedence.
- scripts/watch_index.py: gate health-check/default-collection routines behind explicit env flags when multi-repo is enabled so watcher no longer auto-creates “codebase”.
- tests/test_workspace_state.py: add coverage for the new get_collection_name precedence rules.
- scripts/ingest/pipeline.py: always enumerate files up front and print `[index] Found N files…` plus `[index] X/Y files processed` heartbeats whenever stdout isn’t a TTY, while keeping tqdm for interactive sessions. This mirrors the pre-refactor logging so K8s logs show real progress again.
- scripts/ingest/pipeline.py: always wrap the file iterator with tqdm (matching pre-refactor behavior) and gate the new `[index] …` log heartbeats behind INDEX_PROGRESS_LOG (default on) so headless logs stay readable without suppressing tqdm in interactive sessions.
…se” collection

- watch_index_core/utils.py
  * treat per-repo state entries that point at placeholder collections (codebase,
    etc.) as invalid in multi-repo mode, derive the correct collection via
    get_collection_name, and persist the repaired mapping back to state
- workspace_state.py
  * stop auto-populating serving_collection from qdrant_collection when
    multi-repo is enabled and staging is off, and never propagate placeholder
    collection names into serving_collection
- tests/test_watcher_collection_resolution.py
  * add regression test ensuring stale state.json values (codebase) are ignored
    for per-repo routing in multi-repo mode
@voarsh2
voarsh2 marked this pull request as ready for review December 29, 2025 22:38
@voarsh2 voarsh2 mentioned this pull request Dec 29, 2025
@m1rl0k
m1rl0k merged commit 930feaa into Context-Engine-AI:test Dec 30, 2025
1 check passed
@voarsh2
voarsh2 deleted the per-repo-fixes branch December 30, 2025 03:19
m1rl0k added a commit that referenced this pull request Mar 1, 2026
Regression fixes: Per repo fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants