Repository navigation
refactor(pipeline): split ingest_batch.py into package (#781) - #794
Conversation
Extract 1326-line ingest_batch.py into ingest_batch/ package with _core.py containing the main logic and __init__.py re-exporting process_ingest_batch and refresh_session_insights_bulk for backward compatibility. Future splits (models, topo_sort, worker_pool) can follow incrementally. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 34 minutes and 22 seconds.Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8e388ccc7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Refactors the pipeline ingest-batch orchestration by extracting the former monolithic ingest_batch.py into a dedicated ingest_batch/ package while keeping the public API surface focused on batch ingest + bulk session insight refresh.
Changes:
- Introduces
polylogue.pipeline.services.ingest_batch._corecontaining the ingest batch implementation (process pool decode/parse + sync sqlite writes + side effects). - Adds
polylogue.pipeline.services.ingest_batch.__init__to re-export selected internals for test compatibility and to expose the public API. - Updates topology projection/status docs to reflect the new package/module layout.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| polylogue/pipeline/services/ingest_batch/_core.py | New core implementation module for batch ingest + DB writes + observations/side effects. |
| polylogue/pipeline/services/ingest_batch/init.py | Package entrypoint re-exporting internals + public API. |
| docs/topology-status.md | Regenerated topology status counts after the file move/split. |
| docs/plans/topology-target.yaml | Updates topology projection entries to point at the new package files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| from polylogue.pipeline.services.ingest_batch._core import ( | ||
| _build_batch_memory_observation, | ||
| _ConversationEntry, | ||
| _drain_ready_conversation_entries, | ||
| _failed_raw_state_update, |
| loc: 1295 | ||
| target: polylogue/pipeline/services/ingest_batch.py | ||
| - path: polylogue/pipeline/services/ingest_batch/__init__.py | ||
| loc: 1 |
Extract 1326-line ingest_batch.py into ingest_batch/ package. All private helpers re-exported for test compatibility. Co-authored-by: Claude Opus 4.7 <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Extract 1326-line ingest_batch.py into ingest_batch/ package. All private helpers re-exported for test compatibility.