[RelayMiner] Add timeout support and improved logging to query clients#1657
Merged
[RelayMiner] Add timeout support and improved logging to query clients#1657
Conversation
### Primary Changes: - Add `defaultQueryTimeout` constant (1 second) to all query clients - Wrap all query calls with timeout context using `context.WithTimeout` - Update `retry.Call` signature to accept logger parameter for better observability - Add retry logging with emojis for better debugging (🔄 for retries, 🛑 for failures) ### Secondary changes: - Update all query client implementations to use timeout contexts - Update retry tests to pass logger parameter 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Olshansk
requested changes
Jul 10, 2025
|
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. You may need to run GCP workloads (requires changing the namespace to 1657) |
Olshansk
approved these changes
Jul 11, 2025
bryanchriswhite
added a commit
that referenced
this pull request
Jul 14, 2025
* pokt/main: (34 commits) [RelayMiner] feat: relay miner routes to multiple backend URLs based on RPC Type (#1633) [Morse Recovery] Added new addresses for recovery (#1667) [DOCS][SERVICE] Adding danger for Grove employees on mainnet service creation (#1666) [Foundation] Remove `pulsar` (#1661) [RelayMiner] Add timeout support and improved logging to query clients (#1657) [RelayMiner] Replace buffer copying with explicit cleanup pattern in SafeReadBody (#1658) [Testing] Fixing flaky unit tests to make CI more reliable (#1662) [Scripts] Notes, events and queries to query `block` events and `tx` events (#1660) [Morse Recovery] Add recovery addresses for issue #1654 (#1656) Refactor Tiltfile structure and enhance Pocketdex support. (#1640) [Morse Recovery] Updated Recovery Allowlist (#1651) [RelayMiner] Improve SafeReadBody concurrency safety by copying buffer data (#1650) Add a configurable max body size parameter to RelayMiner configuration. (#1566) Update upgrade_tx_v0.1.25_alpha.json feat: Improve relay request unmarshaling error handling and logging (#1649) [Docs] v0.1.25/26 upgrage artifacts (#1648) Remove settlement result from `EventClaimSettled` in `v0.127` release. (#1647) Revert "feat: Remove settlement result from EventClaimSettled" (#1643) [Code Health] Fix linter issues & attempt to fix flaky tests (#1646) Updating config-path-x.yaml with: schema header, owned app for config-path-1 ...
bryanchriswhite
added a commit
that referenced
this pull request
Jul 16, 2025
* pokt/chore/ibc: fix: TODOs fix: onchain upgrade [RelayMiner] feat: relay miner routes to multiple backend URLs based on RPC Type (#1633) [Morse Recovery] Added new addresses for recovery (#1667) [DOCS][SERVICE] Adding danger for Grove employees on mainnet service creation (#1666) [Foundation] Remove `pulsar` (#1661) [RelayMiner] Add timeout support and improved logging to query clients (#1657) [RelayMiner] Replace buffer copying with explicit cleanup pattern in SafeReadBody (#1658) [Testing] Fixing flaky unit tests to make CI more reliable (#1662) [Scripts] Notes, events and queries to query `block` events and `tx` events (#1660) [Morse Recovery] Add recovery addresses for issue #1654 (#1656) First review
bryanchriswhite
added a commit
that referenced
this pull request
Jul 16, 2025
* chore/localnet/tilt: (88 commits) [Disk Utilization] refactor: remove unnecessary Msg.*Response fields (#1670) [RelayMiner] Bump SMT version (#1675) [IBC] Prepare pocket for IBC connectivity (#1262) fix: TODOs fix: onchain upgrade [RelayMiner] feat: relay miner routes to multiple backend URLs based on RPC Type (#1633) [Morse Recovery] Added new addresses for recovery (#1667) [DOCS][SERVICE] Adding danger for Grove employees on mainnet service creation (#1666) [Foundation] Remove `pulsar` (#1661) [RelayMiner] Add timeout support and improved logging to query clients (#1657) [RelayMiner] Replace buffer copying with explicit cleanup pattern in SafeReadBody (#1658) [Testing] Fixing flaky unit tests to make CI more reliable (#1662) [Scripts] Notes, events and queries to query `block` events and `tx` events (#1660) [Morse Recovery] Add recovery addresses for issue #1654 (#1656) fixup! upgrade fixup! upgrade revertme: testing fixup! upgrade Refactor Tiltfile structure and enhance Pocketdex support. (#1640) [Morse Recovery] Updated Recovery Allowlist (#1651) ...
bryanchriswhite
added a commit
that referenced
this pull request
Jul 16, 2025
* chore/ibc-axelar: (92 commits) [Disk Utilization] refactor: remove unnecessary Msg.*Response fields (#1670) [RelayMiner] Bump SMT version (#1675) [IBC] Prepare pocket for IBC connectivity (#1262) fix: TODOs fix: onchain upgrade [RelayMiner] feat: relay miner routes to multiple backend URLs based on RPC Type (#1633) [Morse Recovery] Added new addresses for recovery (#1667) [DOCS][SERVICE] Adding danger for Grove employees on mainnet service creation (#1666) [Foundation] Remove `pulsar` (#1661) [RelayMiner] Add timeout support and improved logging to query clients (#1657) [RelayMiner] Replace buffer copying with explicit cleanup pattern in SafeReadBody (#1658) [Testing] Fixing flaky unit tests to make CI more reliable (#1662) [Scripts] Notes, events and queries to query `block` events and `tx` events (#1660) [Morse Recovery] Add recovery addresses for issue #1654 (#1656) fixup! upgrade fixup! upgrade revertme: testing fixup! upgrade Refactor Tiltfile structure and enhance Pocketdex support. (#1640) [Morse Recovery] Updated Recovery Allowlist (#1651) ...
bryanchriswhite
added a commit
that referenced
this pull request
Jul 16, 2025
* chore/ibc-axelar: (88 commits) [Disk Utilization] refactor: remove unnecessary Msg.*Response fields (#1670) [RelayMiner] Bump SMT version (#1675) [IBC] Prepare pocket for IBC connectivity (#1262) fix: TODOs fix: onchain upgrade [RelayMiner] feat: relay miner routes to multiple backend URLs based on RPC Type (#1633) [Morse Recovery] Added new addresses for recovery (#1667) [DOCS][SERVICE] Adding danger for Grove employees on mainnet service creation (#1666) [Foundation] Remove `pulsar` (#1661) [RelayMiner] Add timeout support and improved logging to query clients (#1657) [RelayMiner] Replace buffer copying with explicit cleanup pattern in SafeReadBody (#1658) [Testing] Fixing flaky unit tests to make CI more reliable (#1662) [Scripts] Notes, events and queries to query `block` events and `tx` events (#1660) [Morse Recovery] Add recovery addresses for issue #1654 (#1656) fixup! upgrade fixup! upgrade revertme: testing fixup! upgrade Refactor Tiltfile structure and enhance Pocketdex support. (#1640) [Morse Recovery] Updated Recovery Allowlist (#1651) ...
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.
Summary
Add timeout support and improved logging to query clients to prevent hanging queries and improve debugging
Primary Changes:
defaultQueryTimeoutconstant (1 second) to all query clientscontext.WithTimeoutretry.Callsignature to accept logger parameter for better observabilitySecondary changes:
Issue:
Performance improvement to prevent hanging queries and improve debugging capabilities
Type of change
Select one or more from the following:
Sanity Checklist
assignees,reviewers,labels,project,iterationandmilestonemake docusaurus_startmake go_develop_and_testandmake test_e2edevnet-test-e2elabel to run E2E tests in CImake test_e2e_oneshot🤖 Generated with Claude Code