-
Notifications
You must be signed in to change notification settings - Fork 1k
Make bgw_job_stat_history_errors test more robust #9182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Make bgw_job_stat_history_errors test more robust #9182
Conversation
|
claude-fixer[bot] seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
@svenklemm, @fabriziomello: please review this pull request.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9182 +/- ##
==========================================
+ Coverage 82.46% 82.56% +0.10%
==========================================
Files 245 245
Lines 48069 48043 -26
Branches 12253 12249 -4
==========================================
+ Hits 39639 39668 +29
- Misses 3582 3593 +11
+ Partials 4848 4782 -66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The test was failing on macOS because jobs completed too quickly (0.1s sleep) and there weren't enough jobs to reliably hit the worker process limit. With 26 jobs vs 24 max_worker_processes, jobs would complete and free slots before all jobs attempted to start, causing the test to pass when it should fail. Increased the number of test jobs from 26 to 30 and the sleep duration from 0.1 to 1 second. This ensures jobs overlap more significantly in time, holding worker slots longer and making it more likely that some jobs will fail to start due to slot exhaustion, which is the condition the test is designed to verify. Co-Authored-By: Claude <[email protected]>
Add trailing space to line 208 in the expected output file to match the actual test output. The test was failing in CI due to this whitespace mismatch. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
11ab3f2 to
5c40d3f
Compare
Summary
This PR was automatically generated by Claude Code to fix a failing nightly CI test.
Test Fixed
bgw_job_stat_history_errorsWhat Changed
The test was failing on macOS because jobs completed too quickly (0.1s sleep) and there weren't enough jobs to reliably hit the worker process limit. With 26 jobs vs 24 max_worker_processes, jobs would complete and free slots before all jobs attempted to start, causing the test to pass when it should fail. Increased the number of test jobs from 26 to 30 and the sleep duration from 0.1 to 1 second. This ensures jobs overlap more significantly in time, holding worker slots longer and making it more likely that some jobs will fail to start due to slot exhaustion, which is the condition the test is designed to verify.
Co-Authored-By: Claude [email protected]
Disable-check: commit-count