Repository navigation
more reliable version check - #8002
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@tests/consensus_tests/utils.py`:
- Around line 390-392: The requests.get call that fetches peer telemetry can
block indefinitely; update the call in the block that assigns r =
requests.get(f"{peer_api_uri}/cluster/telemetry") to include a per-request
timeout (e.g., timeout=5) so each iteration can't hang the wait loop, and handle
requests.exceptions.Timeout (and other RequestException) appropriately before
calling assert_http_ok and accessing r.json(); keep the rest of the logic
(assert_http_ok and peers = r.json()["result"]["cluster"]["peers"]) unchanged.
🧹 Nitpick comments (1)
tests/consensus_tests/utils.py (1)
393-394: Simplify the loop to avoid an unused variable.
peer_idis unused; usingvalues()is clearer.♻️ Suggested refactor
- for peer_id, peer_status in peers.items(): + for peer_status in peers.values(): if peer_status["details"].get("version") is None: return False
timvisee
approved these changes
Jan 27, 2026
Member
|
I didn't test this locally, but the change makes sense. I'm betting on CI showing us this works 👍 |
3 tasks done
generall
added a commit
that referenced
this pull request
Feb 9, 2026
KShivendu
pushed a commit
that referenced
this pull request
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.