Skip to content

database: add applicable dbtests for linkeddb #3486

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

Merged
merged 7 commits into from
Oct 23, 2024
Merged

database: add applicable dbtests for linkeddb #3486

merged 7 commits into from
Oct 23, 2024

Conversation

darioush
Copy link
Contributor

@darioush darioush commented Oct 21, 2024

Why this should be merged

Improves test coverage and fixes an edge case in linkeddb.

How this works

Splits the database tests into TestsBasic and Tests, where TestsBasic can run only with a KeyValueReaderWriterDeleter.
Note linkeddb doesn't really implement the interface for Iteratee, as the iteration is not guaranteed to be ordered.
Adds a key modification step to TestMemorySafetyDatabase which would have identified this edge case as the fuzzer does not seem to find it.

How this was tested

CI

@darioush darioush marked this pull request as ready for review October 21, 2024 23:38
Signed-off-by: Darioush Jalali <[email protected]>
@StephenButtolph StephenButtolph added bug Something isn't working incident response labels Oct 22, 2024
@StephenButtolph StephenButtolph added this to the v1.11.13 milestone Oct 22, 2024
@StephenButtolph StephenButtolph self-assigned this Oct 22, 2024
@marun marun added this pull request to the merge queue Oct 23, 2024
Merged via the queue into master with commit 552a800 Oct 23, 2024
23 checks passed
@marun marun deleted the test-db-iface branch October 23, 2024 16:22
yacovm pushed a commit to yacovm/avalanchego that referenced this pull request Oct 25, 2024
yacovm pushed a commit to yacovm/avalanchego that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working incident response
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants