Skip to content

test(oom-bypass): CI-aware readiness deadline + dead-child fail-fast#271

Merged
pilotspacex-byte merged 1 commit into
mainfrom
test/oom-bypass-readiness
Jul 10, 2026
Merged

test(oom-bypass): CI-aware readiness deadline + dead-child fail-fast#271
pilotspacex-byte merged 1 commit into
mainfrom
test/oom-bypass-readiness

Conversation

@pilotspacex-byte

Copy link
Copy Markdown
Contributor

Fixes the flake that failed #269's macOS run: test_case_e_cross_db_copy_oom uses a fixed 30s connect deadline — a loaded macOS runner lost the race, and a crashed child would burn the whole deadline before a useless "connection refused" panic.

Same pattern as #264 (sigterm/bgsave harnesses):

  • wait_ready fail-fasts on a dead child via try_wait(), surfacing server log tails
  • bounded 1s connect windows so the liveness check interleaves
  • deadline 30s → 120s under CI

Test-harness-only change; all 8 tests pass locally.

tests/oom_bypass_closure.rs readiness had a fixed 30s connect deadline
with no CI allowance and no liveness check on the spawned server:
test_case_e_cross_db_copy_oom lost the 30s race on a loaded macOS CI
runner and a crashed child burned the full deadline with a useless
"connection refused" panic.

Mirror the tests/sigterm_shutdown.rs remedy from PR #264:
- wait_ready(guard, dir, port) polls child.try_wait() between bounded
  1s connect windows and panics immediately with moon.stderr.log /
  moon.stdout.log tails if the server exited;
- readiness deadline doubles to 120s under CI;
- Client::connect became Client::try_connect(port, window) returning
  Option so the caller owns the deadline policy.

All 8 tests pass locally (release-fast).

author: Tin Dang <tindang.ht97@gmail.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@pilotspacex-byte, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 53b5f30d-a836-4966-9971-ed1e13293b54

📥 Commits

Reviewing files that changed from the base of the PR and between 02ceae9 and e9f9311.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • tests/oom_bypass_closure.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/oom-bypass-readiness

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pilotspacex-byte
pilotspacex-byte merged commit 73278b1 into main Jul 10, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants