Skip to content

tools: close the last two tight teardown reaps in the coverage suite - #115

Merged
eilandert merged 2 commits into
masterfrom
teardown-reap-remainder
Aug 13, 2026
Merged

tools: close the last two tight teardown reaps in the coverage suite#115
eilandert merged 2 commits into
masterfrom
teardown-reap-remainder

Conversation

@eilandert

Copy link
Copy Markdown
Member

Follow-up to #112 (landing as #114), which raised the teardown reap budget in seven of the nine tools the coverage job drives. Independent of #114; the two PRs touch disjoint files.

TL;DR

Two test tools could still fail, or quietly leave an nginx process running, when a coverage-instrumented server was slow to shut down. They now get the same patient shutdown handling as the other seven tools.

test_dcz.py and test_window_cap.py move to the 30s reap budget; test_dcz.py gains the missing TimeoutExpired guard (a slow exit propagated out of the finally and leaked the process), and test_window_cap.py gains the missing wait() after kill() (zombie until interpreter exit).

Severity: Low (test infrastructure — CI flake removal)

Testing

py_compile on both tools; lint pre-pass over the diff (ruff/mypy/bandit/semgrep/ast-grep). The teardown shape now matches the seven tools #112 fixed. Includes a one-line RUF059 fix in test_dcz.py (body_body) required by the pre-commit ruff gate on the touched file.

#112 raised the nginx teardown reap budget to 30s in seven tools but the
coverage job drives nine; test_window_cap.py and test_dcz.py kept 10s.
test_dcz.py additionally had no TimeoutExpired guard at all, so a slow
exit propagated out of the finally and leaked the nginx process, and
test_window_cap.py never reaped after kill(), leaving a zombie until
interpreter exit. Same 30s budget and kill fallback as the other seven.

Also silences RUF059 on an unpacked-but-unused variable in test_dcz.py
(pre-existing, gated by the pre-commit ruff hook on the touched file).
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 11 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 @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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: fd77cf11-fcde-4b67-a935-1ca7bb65324c

📥 Commits

Reviewing files that changed from the base of the PR and between a8c6f19 and 7460b5a.

📒 Files selected for processing (2)
  • tools/test_dcz.py
  • tools/test_window_cap.py

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.

@eilandert
eilandert merged commit de4ced9 into master Aug 13, 2026
16 checks passed
@eilandert
eilandert deleted the teardown-reap-remainder branch August 13, 2026 01:04
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.

1 participant