This repository was archived by the owner on Jan 22, 2025. It is now read-only.
AcctIdx: tests can use index-buckets with an env var#21494
Merged
jeffwashington merged 1 commit intosolana-labs:masterfrom Dec 9, 2021
Merged
AcctIdx: tests can use index-buckets with an env var#21494jeffwashington merged 1 commit intosolana-labs:masterfrom
jeffwashington merged 1 commit intosolana-labs:masterfrom
Conversation
eb4dabd to
243e2c8
Compare
Contributor
Author
|
other options:
|
243e2c8 to
86bb4f3
Compare
brooksprumo
previously approved these changes
Dec 1, 2021
Contributor
There was a problem hiding this comment.
I think that this change is incrementally better, so can go in as-is. Long term, I think option (3) of reworking the tests to explicitly test both version would be my vote.
I'd recommend actually opening a new issue with this, then marking it as "good first issue". I wouldn't be surprised if a community member did this work.
Codecov Report
@@ Coverage Diff @@
## master #21494 +/- ##
=========================================
- Coverage 81.6% 81.4% -0.3%
=========================================
Files 511 511
Lines 143320 143324 +4
=========================================
- Hits 116963 116666 -297
- Misses 26357 26658 +301 |
Contributor
|
I think I prefer [2] as a stopgap to [3]. If we rename all of the tests to have the same prefix, we can add another CI step to do the run with the envvar set |
86bb4f3 to
e3adcb5
Compare
Pull request has been modified.
mergify Bot
pushed a commit
that referenced
this pull request
Dec 9, 2021
(cherry picked from commit 54862eb)
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
we have 2 code paths:
The 2 paths are connected (disk-buckets use in-mem for some operations). But, they are separate logic in multiple places. All tests that use accounts index ideally need to run ideally against both code paths.
Summary of Changes
default to in-mem
env var causes us to use disk buckets
Not:Randomly choose for each test to use disk buckets or not. Can we come up with a better solution other than replicating or parameterizing every test?
Fixes #