-
Notifications
You must be signed in to change notification settings - Fork 266
[needs review] 946 feature HeaderWithItsEntry #2006
base: develop
Are you sure you want to change the base?
[needs review] 946 feature HeaderWithItsEntry #2006
Conversation
…ndent code to use chain_pair and ChainPair, add custom error variant HeaderEntryMismatch, fixing some format errors
…ors introduced due to unimplemented traits Ord and Display for contained types
…into 946-feature-chain-pair
Add fixes. Use a convenience function, try_validate_from_entry_and_header
…nually from develop, but I should pull upstream develop
…into 946-feature-chain-pair
…p, but need a more automated way
…rs in a merge conflict 'fix'
…into 946-feature-chain-pair
…into 946-feature-chain-pair
…into 946-feature-chain-pair
…_entry, HeaderWithItsEntry. nc, nt, nf all pass
This is quite baffling with errors for the cli-tests:
It's hard to debug with a backtrace
|
Well, it works now. |
Ah, I saw #2014. |
@thedavidmeister, @maackle and anyone else, may you please review this? |
…into 946-feature-chain-pair
I can merge changes from the |
If I fix the current checks will this be reviewed? Or is there anything else that I can do to help it to be reviewed? |
Is there any general idea of when there might be capacity to review this? |
Do you want me to fix up holochain/holonix#127 before also fixing this up, and for this to then be reviewed? I'm keen to demonstrate value, but I also want to make sure that my contributions are valued. |
I'm OK with this! Let's get at least one other dev to chime in too. @thedavidmeister? |
crates/core/src/dht/dht_reducers.rs
Outdated
"{}, entry:\n{:?}\nheader from test_chain_header():\n{:?}\n", | ||
err_msg, entry, header | ||
); | ||
panic!(err_msg); |
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.
if this is a try_*
then i think we want to return a result rather than panic
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.
I'll fix this up when I've got time alongside with a job and startup.
@maackle sure |
…ay/holochain-rust into 946-feature-chain-pair
I didn't run the tests locally before pushing, so no need to run the CI builds yet. |
|
I may go through steps here again on my desktop: |
PR summary
Fetches #1860 as CI build is failing there due to overuse of CI resources on my normal account. Has additional fixes.
Aims to close #946.
By changing
EntryWithHeader
to anHeaderWithItsEntry
tuple struct (with getters etc.), and using atry_from_header_and_entry()
as a constructor and not anew()
constructor, this introduces a lot of changes, and not only with renaming. The rename toHeaderWithItsEntry
, to me, indicates intent more clearly: this is a header that must be with its corresponding entry, and not just with any entry. Thus the rename as well as the actual structure should fix #946.testing/benchmarking notes
The change also broke a couple of tests, since the header and entry in them didn't match, and these tests have been fixed. Convenience functions have been set up, and some additions and changes have been made that could pave the way for more refactoring of repetition.
followups
( any new tickets/concerns that were discovered or created during this work but aren't in scope for review here )
changelog
documentation