Skip to content
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

test(store): Implement store tests (1/2) #2235

Merged
merged 9 commits into from
Dec 19, 2023
Merged

test(store): Implement store tests (1/2) #2235

merged 9 commits into from
Dec 19, 2023

Conversation

AlejandroCabeza
Copy link
Contributor

@AlejandroCabeza AlejandroCabeza commented Nov 22, 2023

Description

Implement store tests

Changes

  • Implement batch of store tests.
  • Fix issue with default values for HistoryQuery.

Copy link

github-actions bot commented Nov 22, 2023

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2235

Built from eaa3c23

@AlejandroCabeza AlejandroCabeza changed the base branch from master to store-archive-utils-refactor November 22, 2023 09:23
@AlejandroCabeza AlejandroCabeza self-assigned this Nov 22, 2023
@AlejandroCabeza AlejandroCabeza changed the title test(store): Implement store tests test(store): Implement store tests (1/2) Nov 22, 2023
@AlejandroCabeza AlejandroCabeza marked this pull request as ready for review November 22, 2023 09:26
Base automatically changed from store-archive-utils-refactor to master November 27, 2023 17:33
tests/node/test_wakunode_store.nim Outdated Show resolved Hide resolved
tests/node/test_wakunode_store.nim Outdated Show resolved Hide resolved
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for it!
Just added a couple of comments. The most relevant IMHO is to put the rpc.nim change in a separate PR.
Cheers

tests/node/test_wakunode_store.nim Outdated Show resolved Hide resolved
waku/waku_store/rpc.nim Outdated Show resolved Hide resolved
@AlejandroCabeza
Copy link
Contributor Author

@Ivansete-status
Re: #2235 (comment)
Can't reply to it, so here it goes

I see your point, and I don't really know what it should be. But I do see the usefulness in using 0 as meaning "give me everything" as the type is int, hence no null|none is allowed.

Maybe we should page an RFC guy?

@gabrielmer gabrielmer self-requested a review November 30, 2023 11:28
Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great! Thanks so much!

@AlejandroCabeza AlejandroCabeza changed the base branch from master to history-query-ascending November 30, 2023 16:51
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for it!

* Implement remaining store tests.
@AlejandroCabeza AlejandroCabeza merged commit 86353e2 into master Dec 19, 2023
8 checks passed
@AlejandroCabeza AlejandroCabeza deleted the test-store branch December 19, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants