fix(ci): replace rate-limited Infura with public RPC#431
fix(ci): replace rate-limited Infura with public RPC#431ErikBjare merged 2 commits intouniswap-python:dev/v4-finfrom
Conversation
- Switch PROVIDER_MAINNET fallback from Infura to ethereum.publicnode.com (Infura public key was hitting "Too Many Requests" rate limits) - Add dev/v4 and dev/v4-fin branches to CI triggers - Fix mypy errors: use str() for bytes fallback in token name/symbol decode, add type: ignore for web3 get_logs attribute Co-authored-by: Bob <[email protected]>
Greptile SummaryThis PR fixes CI failures on Confidence Score: 5/5PR is safe to merge — all three changes are narrowly scoped CI/type fixes with no logic regressions. The Infura-to-publicnode swap is a straightforward URL substitution that unblocks the test runner. Branch trigger expansion is additive and risk-free. Both mypy fixes are minimal and correct: str() wrapping preserves existing semantics while satisfying the type checker, and the type: ignore comment is appropriately scoped to a single attribute. No new runtime behaviour is introduced. No files require special attention Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub Actions CI
participant G as Ganache (fork)
participant RPC as ethereum.publicnode.com
participant T as Test Suite
GH->>G: ganache --fork https://ethereum.publicnode.com
G->>RPC: eth_blockNumber / eth_getCode / eth_call ...
RPC-->>G: 200 OK (no API key needed)
G-->>GH: Mainnet fork ready
GH->>T: make test (PROVIDER=publicnode)
T-->>GH: Pass
Reviews (1): Last reviewed commit: "fix(ci): replace rate-limited Infura wit..." | Re-trigger Greptile |
|
Note: CI won't automatically run on this PR because the The changes here are straightforward:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/v4-fin #431 +/- ##
=============================================
Coverage ? 58.83%
=============================================
Files ? 12
Lines ? 1834
Branches ? 0
=============================================
Hits ? 1079
Misses ? 755
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
CI did run after all, and I pushed Changes:
Local verification on Python 3.8:
|
|
CI status update — the Evidence: the base branch What this PR actually fixes (and is now green):
The Arbitrum issue is a separate infrastructure problem — public Arbitrum RPC endpoints (both ankr and arb1) rate-limit heavy Ganache forking. That should be tracked as a separate issue and fixed independently. Greptile reviewed this as 5/5, safe to merge. The three changes are narrowly scoped CI/type fixes with no logic regressions. |
Summary
ethereum.publicnode.comas the default mainnet RPC providerdev/v4anddev/v4-finbranches to CI triggers so tests actually run on v4 workget_logsattr onBaseContractEvent, bytes→str fallback in token decode)Context
CI was failing on every push to
dev/v4-finbecause:429 Too Many RequestsFixes #430.
Test plan