Skip to content

Fix: Bound DNS Lookup Workers and Add Regression Test - #53

Open
kimumar wants to merge 2 commits into
prooflinedev:mainfrom
kimumar:feature/proofline-internship
Open

kimumar wants to merge 2 commits into
prooflinedev:mainfrom
kimumar:feature/proofline-internship

Conversation

@kimumar

@kimumar kimumar commented Nov 16, 2026

Copy link
Copy Markdown

Summary

This Pull Request improves DNS resolution reliability by limiting the number of outstanding DNS lookup workers.

Changes Made

  • Implemented a bounded semaphore to prevent excessive DNS worker accumulation.
  • Improved handling of repeated DNS resolution timeouts.
  • Added a regression test to verify DNS worker limits.

Testing Results

  • DNS regression test passed five consecutive runs.
  • Targeted HTTP deadline test passed.
  • Full test suite previously reported one HTTP test failure, which passed when rerun individually.
  • Full-suite verification is still pending.

Outcome

The changes help prevent unbounded DNS worker growth and improve resource management during repeated DNS timeouts.

@kimumar

kimumar commented Nov 16, 2026

Copy link
Copy Markdown
Author

Hi maintainers,

I've submitted PR #53 to address unbounded DNS lookup worker accumulation and add regression coverage.

The PR is currently blocked by two checks:

  • Proofline gate requires an administrator to assign a Proofline seat.
  • The GitHub Actions CI workflow is awaiting maintainer approval.

Could you please advise on the Proofline seat requirement and approve the CI workflow when convenient?

Thank you for reviewing my contribution.

mohsen1 commented Nov 17, 2026

Copy link
Copy Markdown
Member

Codex review: CI approval is complete; the required check now fails Ruff formatting. Also share one timeout budget between semaphore acquisition and DNS lookup: currently each receives the full timeout. Add a regression with a delayed slot acquisition, format the two reported files, and rerun scripts/check.py.

@kimumar

kimumar commented Nov 17, 2026

Copy link
Copy Markdown
Author

Hi maintainers,

I've pushed commit "e172040", which adds bounded DNS worker handling and timeout regression tests. Local validation has passed.

However, the Proofline gate is blocking the PR with the message: "The author needs a Proofline seat."

As an external contributor, could you please advise whether a contributor seat can be assigned or whether there is an alternative process for external contributions?

Thank you!

1AbdullahButt added a commit to abdullahbutt-labs/sdk-python that referenced this pull request Nov 23, 2026
resolve() measures its wait from once its worker thread has started, so a lookup that times out can pass the end of the budget by that start-up time. The comment said one budget covers the lookup; it now says exactly what holds. resolve() is left unchanged: open PR prooflinedev#53 rewrites those lines with an absolute deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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