-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Raw leaves described by alg != sha2-256/32 do not work ( also generalized test matrix ) #3552
Comments
@jbenet as per your comment this revision of the ticket includes the exact bytes (*.put) that I fed to @diasdavid @dignifiedquire I have not tested this against js-ipfs, currently do not have it set up. Please feel free to reuse the dataset. @Kubuxu @whyrusleeping Not sure if this is an 0.4.5 blocker or not... |
@mib-kd743naq I am unable to fetch the dataset, I have set up my server to try to fetch it all the time so when you go online it will be fetched. |
@Kubuxu sorry, only have my laptop node up, and running around the conference doesn't help |
Got it. |
Typo Trying to pin it:
|
@Kubuxu works here... perhaps s/ping/pin/ ? |
Yeah. :| |
@Kubuxu actually I just realized that the individual test objects themselves are not pinned in any way besides my laptop. Could you please:
|
@mib-kd743naq that looks to be because of this hardcoding: https://github.com/ipfs/go-ipfs/blob/master/merkledag/raw.go#L15 |
Lets revisit the items in the grid, Its definitely worth trying to make progress here. |
I think with some of the changes we've been making for cidv1 support in Lets try and make a script that permutes all of these and outputs success/failures |
w00t! It looks like all the ✘-es in the matrix now properly resolve! @whyrusleeping / @Kubuxu please add the relevant "fixed in" and close the ticket |
I should probably look into the IPLD / CBOR based stuff, prepare a similar test-matrix... |
@mib-kd743naq thats great!! Thanks for reporting back :) The specification for the cbor stuff is finalized, and its merged into go-ipfs. definitely give all of that a good run over |
I re-verified that all the problems are solved, adjusted all the "X"es to ✔s in the original description, and am closing this ticket |
Version information:
go-ipfs version: 0.4.5-dev-99d72c2
Type:
Bug
Priority:
P1
Description:
This is a set of 45 test cases. Table shows what currently works and what doesn't. Description at the end.
The entire set represents the same data:
Tested "file" is 7 bytes long, containing exactly:
123\n45\n
or
31 32 33 0A 34 35 0A
4 chunks ( 3 unique ) splitting on the newline (
0A
):Each data/link framing is described by
<format>-<hashalg>-<truncation>
, with the names being self explanatory.Every link omits the optional
size
field entirely. This is deliberate, ask me for more info if the reasoning is unclear.The entire dataset is available at QmYbb74fCe7pom18nPRw2rKAPMukza63DfQAdHG53WywbW in a prototype of "efficient put format". The same directory contains a (massaged)
protoc --decode_raw
of each<name>.put
for easier reading.The text was updated successfully, but these errors were encountered: