Skip to content

fix(github): avoid negative connectivity sleep#32

Merged
openlawbot merged 1 commit into
mainfrom
fix/github-connectivity-sleep
May 5, 2026
Merged

fix(github): avoid negative connectivity sleep#32
openlawbot merged 1 commit into
mainfrom
fix/github-connectivity-sleep

Conversation

@openlawbot
Copy link
Copy Markdown
Collaborator

Summary

  • Prevent _wait_for_connectivity() from calling time.sleep() with a negative duration when GitHub probes time out near the deadline.
  • Add a regression test for timeout-at-deadline behavior.

Test plan

  • python -m pytest tests/test_github.py -q
  • ruff check gate/github.py tests/test_github.py

Made with Cursor

Prevent transient GitHub connectivity timeouts from crashing reviews when the probe deadline expires mid-retry.

Co-authored-by: Cursor <cursoragent@cursor.com>
@openlawbot openlawbot merged commit 12b7759 into main May 5, 2026
4 of 5 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.

1 participant