-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Indexer caching for exchange_rates
and validators_apys
to use instance-level caches, fixing cargo test failures
#3774
Conversation
… in order to work with `cargo test`
This pull request has been deployed to Vercel. Latest commit: b0391df ✅ Preview: https://apps-ui-nxmwmyqym-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: b0391df ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-p1o9t1n8k.vercel.app |
This pull request has been deployed to Vercel. Latest commit: b0391df ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-2f5l99mlt.vercel.app |
This pull request has been deployed to Vercel. Latest commit: b0391df ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-rjoqmewu9.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🌷
527fab1
into
sc-platform/indexer-new-rpc-tests
… in order to work with `cargo test` (#3774)
… in order to work with `cargo test` (#3774)
… in order to work with `cargo test` (#3774)
Description of change
This PR addresses an issue in
iota-indexer
where global caches in theexchange_rates
andvalidators_apys
functions cause test failures when runningcargo test
with dedicated clusters (ownTestCluster
per test). By refactoring these functions to use instance-level caches, we prevent test interference and ensure that tests can run in parallel without conflicts.Links to any relevant issues
Fixes #3773
Type of change
How the change has been tested
cargo test --features shared_test_runtime -- --nocapture
Change checklist