Skip to content

more reliable version check - #8002

Merged
timvisee merged 1 commit into
devfrom
more-reliable-version-check
Jan 27, 2026
Merged

timvisee merged 1 commit into
devfrom
more-reliable-version-check

Conversation

@generall

Copy link
Copy Markdown
Member

No description provided.

@generall
generall requested a review from timvisee January 27, 2026 15:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_id is unused; using values() 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

Comment thread tests/consensus_tests/utils.py Resolved
@qdrant qdrant deleted a comment from coderabbitai Bot Jan 27, 2026
@timvisee

Copy link
Copy Markdown
Member

I didn't test this locally, but the change makes sense.

I'm betting on CI showing us this works 👍

@timvisee
timvisee merged commit 15361e2 into dev Jan 27, 2026
15 checks passed
@timvisee
timvisee deleted the more-reliable-version-check branch January 27, 2026 16:07
generall added a commit that referenced this pull request Feb 9, 2026
KShivendu pushed a commit that referenced this pull request Mar 30, 2026
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