test(bootstrapper): fix caplog assertion that depends on global pytest --log-level - #1287
Conversation
…t --log-level Use `caplog.at_level(logging.INFO)` for the `_prepare_source` logger in `test_constraint_logged_when_present` so the test doesn't rely on `--log-level DEBUG` being passed by the runner. Also remove `--log-level DEBUG` from the hatch test runner command so that future tests that forget to set their own log level will fail in CI. Co-Authored-By: Claude <claude@anthropic.com> Closes: python-wheel-build#1274 Signed-off-by: Rohan Devasthale <rdevasth@redhat.com>
|
Warning Review limit reached
Next review available in: 38 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?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 reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Hatch test command no longer passes Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
…tform.machine` `packaging` 26.3 caches the result of `default_environment()` via `@functools.cache`, so patching `platform.machine` after the first call has no effect. Mock `markers.default_environment` directly to return a fake environment with `platform_machine` set to `"atari"`. Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Rohan Devasthale <rdevasth@redhat.com>
Use
caplog.at_level(logging.INFO)for the_prepare_sourcelogger intest_constraint_logged_when_presentso the test doesn't rely on--log-level DEBUGbeing passed by the runner.Also remove
--log-level DEBUGfrom the hatch test runner command so that future tests that forget to set their own log level will fail in CI.Closes: #1274