Repository navigation
test: stabilize ingestion interrupt timing - #307
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 6 seconds. ⌛ 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 (1)
✨ 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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5dacec2791
ℹ️ 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".
## Summary - Replace fixed sleep timing in the interrupted-ingestion integration test with a wait for persisted message rows. - Reuse a small helper to finish or kill interrupted subprocesses consistently. ## Problem - Python 3.12 CI exposed a timing race in tests/integration/test_ingestion_interrupts.py: the test sent SIGINT after a fixed delay and then assumed the SQLite database had already been created. - Slow startup or scheduler contention can make that assertion fail before the pipeline has reached persistence, even though the production code is unrelated. ## Solution - Poll the isolated SQLite database until the messages table contains persisted rows before sending SIGINT. - Preserve the corruption/resume contract while removing the startup-speed assumption. ## Verification - ruff check tests/integration/test_ingestion_interrupts.py - mypy tests/integration/test_ingestion_interrupts.py - pytest -q tests/integration/test_ingestion_interrupts.py - git push hook: devtools verify --quick Ref #300.
Python 3.12 CI exposed a timing race in `test_ingestion_interrupts.py`: the test sent SIGINT after a fixed delay and then assumed the SQLite database had already been created. Slow startup or scheduler contention could make that assertion fail before the pipeline reached persistence, even though the production code was unrelated. Replaces fixed sleep timing with a poll of the isolated SQLite database until the messages table contains persisted rows before sending SIGINT. Reuses a small helper to finish or kill interrupted subprocesses consistently. Preserves the corruption/resume contract while removing the startup-speed assumption. Verification: ruff + mypy + pytest over the ingestion-interrupts test; devtools verify --quick green. Ref #300
Python 3.12 CI exposed a timing race in `test_ingestion_interrupts.py`: the test sent SIGINT after a fixed delay and then assumed the SQLite database had already been created. Slow startup or scheduler contention could make that assertion fail before the pipeline reached persistence, even though the production code was unrelated. Replaces fixed sleep timing with a poll of the isolated SQLite database until the messages table contains persisted rows before sending SIGINT. Reuses a small helper to finish or kill interrupted subprocesses consistently. Preserves the corruption/resume contract while removing the startup-speed assumption. Verification: ruff + mypy + pytest over the ingestion-interrupts test; devtools verify --quick green. Ref #300
Python 3.12 CI exposed a timing race in `test_ingestion_interrupts.py`: the test sent SIGINT after a fixed delay and then assumed the SQLite database had already been created. Slow startup or scheduler contention could make that assertion fail before the pipeline reached persistence, even though the production code was unrelated. Replaces fixed sleep timing with a poll of the isolated SQLite database until the messages table contains persisted rows before sending SIGINT. Reuses a small helper to finish or kill interrupted subprocesses consistently. Preserves the corruption/resume contract while removing the startup-speed assumption. Verification: ruff + mypy + pytest over the ingestion-interrupts test; devtools verify --quick green. Ref #300
|
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. |
Summary
Problem
Solution
Verification
Ref #300.