Repository navigation
fix(devtools): reject stale testmon verify seeds - #2103
Conversation
|
Warning Review limit reached
More reviews will be available in 30 minutes and 43 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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: 2db909c2a6
ℹ️ 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".
|
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
Make the default
devtools verifypytest-testmon path validate the seed stamp before it starts pytest. The preflight now rejects missing, unreadable, wrong-head, and fingerprint-drifted.cache/testmon/seed.jsonstate instead of accepting any old.testmondatafile.Problem
A diagnostic default verify run accepted a seed from
a1a4f9frecorded on 2026-06-06, while current master was28e95abafter 245 first-parent commits. That stale seed selected a very broad pseudo-full run: the bounded diagnostic reached 900s, emitted 1,406 test starts, and was still progressing through MCP archive-surface tests. The harness was observable after #2100, but the preflight still allowed stale affected-test metadata to waste the gate.Solution
_testmon_preflightnow reads.cache/testmon/seed.json, compares itsgit_headto the current checkout, and compares its recorded.testmondatafingerprint to the current file. If either check fails, default verify exits immediately with reseed instructions.--seed-testmon,--all,--quick, and commit/pre-push quick paths remain unaffected.Verification
nix develop --command devtools test tests/unit/devtools/test_verify.py -k 'testmon_preflight'→ 6 passed, 42 deselectednix develop --command ruff check --fix devtools/verify.py tests/unit/devtools/test_verify.py→ fixed import order, 0 remainingnix develop --command ruff format --check devtools/verify.py tests/unit/devtools/test_verify.py→ 2 files already formattednix develop --command devtools verify --quick→ exit_code 0nix develop --command devtools verifywith stale local seed → exits in ~1s with:pytest-testmon seed was recorded for a different git head