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

feat: extend update_tree_r_cache command with new features #1175

Merged
merged 3 commits into from
Jun 23, 2020

Conversation

cryptonemo
Copy link
Collaborator

Added are 'inspect' and 'verify' options. Inspect makes sure the cache is consistent with itself and verify rebuilds trees and then verifies against the cached data (which can detect an error in the replica data).

@dignifiedquire
Copy link
Contributor

I am sorry, the CI seems to be flaky since adding the new caching :( I still quite understand why though :/

@cryptonemo
Copy link
Collaborator Author

I am sorry, the CI seems to be flaky since adding the new caching :( I still quite understand why though :/

Ah, I was sanity checking here, and of course things pass locally. Good to know it's not just me then :-)

@porcuquine
Copy link
Collaborator

Regarding CI failures: I lack the context to know why we should feel comfortable ignoring what have the appearance of real test failures, which — if tests are accurate — would be significant.

I don't think we should develop a habit of skipping or removing tests because they are failing. If we start down that road, it will be very hard to recover if a real problem goes undetected.

Have we seen these failures elsewhere? We need to diagnose/debug this unless we have high confidence about what is going on and why it's not an immediate problem. (I can accept this might be true if someone presents the case to me.)

@porcuquine
Copy link
Collaborator

After reading previous comments more closely: if the new caching made CI flaky, we should consider reverting the new caching until we can ascertain that this is a CI problem (and fix it). If there is any chance that the new caching is itself flaky and this is being exposed by the tests, we should not release it. If we want to claim this is not possible, we should consider what method we would use to detect intermittent incorrectness of the caching code.

porcuquine
porcuquine previously approved these changes Jun 18, 2020
Copy link
Collaborator

@porcuquine porcuquine left a comment

Choose a reason for hiding this comment

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

This seems fine, and I don't think it will harm anything even if the answer to my questions is unsatisfying. I do have some questions about intended usage (after a somewhat cursory review). I'm approving in case there is short-term value in releasing this now, and on the assumption that this tool will be evolving regardless.

fil-proofs-tooling/src/bin/update_tree_r_cache/main.rs Outdated Show resolved Hide resolved
fil-proofs-tooling/src/bin/update_tree_r_cache/main.rs Outdated Show resolved Hide resolved
fil-proofs-tooling/src/bin/update_tree_r_cache/main.rs Outdated Show resolved Hide resolved
porcuquine
porcuquine previously approved these changes Jun 22, 2020
Copy link
Collaborator

@porcuquine porcuquine left a comment

Choose a reason for hiding this comment

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

Much better. Thank you.

filecoin-proofs/src/constants.rs Show resolved Hide resolved
Added are 'inspect' and 'verify' options.  Inspect makes sure the cache
is consistent with itself and verify rebuilds trees and then verifies
against the cached data (which can detect an error in the replica data).
pub type SectorShape32GiB = SectorShapeSub8;

pub type SectorShape32KiB = SectorShapeTop2;
pub type SectorShape64GiB = SectorShapeTop2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perfect, so much better. Thank you.

@cryptonemo cryptonemo merged commit d212217 into master Jun 23, 2020
@cryptonemo cryptonemo deleted the extend-tree-r-tool branch July 15, 2020 19: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.

3 participants