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

Check results in the DB tests #857

Conversation

silvestrst-crypto
Copy link
Contributor

@silvestrst-crypto silvestrst-crypto commented Feb 10, 2023

Description

Checksum test was giving a false positive due to ignoring the return value.

Other tests were giving assertion fail later in the test, rather than an error on failed method call, thus making it more challenging to debug the issue.

These have been discovered, when implementing PostgreSQL backend in a downstream fork.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing
  • I ran all sqlite and key-value-db tests successfully

@danielabrozzoni
Copy link
Member

Checksum test was giving a false positive due to ignoring the return value.
Other tests were giving assertion fail later in the test, rather than an error on failed method call, thus making it more challenging to debug the issue.

Just to make it clearer, the test failures were on your postresql database implementation, and not on our database implementations, correct?

@danielabrozzoni
Copy link
Member

Clippy is complaining btw, otherwise it looks good to me

@silvestrst-crypto
Copy link
Contributor Author

Just to make it clearer, the test failures were on your postresql database implementation, and not on our database implementations, correct?

Yes, that's correct, It hid the bugs that I had in my implementation.

@silvestrst-crypto silvestrst-crypto force-pushed the silvestrs/database-tests-minor-fixes branch 2 times, most recently from c8fab6b to 5019d4c Compare February 13, 2023 07:54
@danielabrozzoni
Copy link
Member

Sorry to bother you again, can you rebase on master? Right now the CI is failing because of the hardware wallet job, and we have a fix on that in master. I sadly can't merge until the CI is green!

@silvestrst-crypto
Copy link
Contributor Author

Sorry to bother you again, can you rebase on master? Right now the CI is failing because of the hardware wallet job, and we have a fix on that in master. I sadly can't merge until the CI is green!

No worries at all, I should have done it in the first place. Thanks :)

Checksum test was giving a false positive due to ignoring the return
value.

Other tests were giving assertion fail later in the test, rather than
an error on failed method call, thus making it more challenging to
debug the issue.

These have been discovered, when implementing PostgreSQL backend in
a downstream fork.
Copy link
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

ACK a1a70a5

@danielabrozzoni danielabrozzoni merged commit ced2d05 into bitcoindevkit:master Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants