-
Notifications
You must be signed in to change notification settings - Fork 14
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: tests for IPIP-402 CAR parameters #56
Conversation
d544f28
to
5232b33
Compare
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.
really cool, thanks for the PR,
A note on moving file, and fixes, the Master
test should pass, it's broken because of templating right now.
Thanks for the update, I can see it's failing because of a few errors: https://github.com/ipfs/gateway-conformance/actions/runs/5060325462?pr=56#summary-13700442847
The issue with Content-Length is a known bug with Kubo ipfs/kubo#9651 we have a workaround, add the tests in
Not sure about the two others, is this a new bug? |
6dcc5b6
to
1c53e8a
Compare
1c53e8a
to
6267f4d
Compare
3207a64
to
b9979bc
Compare
@aschmahmann @lidel @laurentsenta:
|
4a8b57a
to
619ba13
Compare
40da25e
to
bd58502
Compare
@lidel @aschmahmann tests are passing against |
e74d783
to
54ef60f
Compare
Problem identified in ipfs/gateway-conformance#56 (comment)
ff75ad8
to
f0977e6
Compare
tests/t0118_gateway_car_test.go
Outdated
Status(200). | ||
Body( | ||
IsCar(). | ||
HasRoot(subdirTwoSingleBlockFilesFixture.MustGetCid()). |
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.
@hacdias @aschmahmann based on feedback from Rod, I've relaxed requirement to allow no-buffering pass-through: ipfs/specs#402 (comment)
Means we need to update conformance tests and expect either terminus CID, or empty roots.
Unsure which one will be easier to do in ipfs/boxo#303 – I would prefer terminus, as that keeps behavior from Kubo 0.20, but fine with either as long we document in changelog.
c9c99a0
to
ba816e4
Compare
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.
@aschmahmann @hacdias fyi I've filled #75 to unblock landing this sooner than later.
iiuc the remaining asks are:
- update boxo code and assets for value in
CarV1Header.roots
, as noted in IPIP-402: Partial CAR Support on Trustless Gateways specs#402 (comment) - add regression test for
MustGetCIDsInHAMT*
helpers (or fill issue for future PR)
I'm out Thu-Fri, but if above two are handled, lgtm to merge and ship.
43d95c4
to
39a3c23
Compare
This is blocked. Tests work well if the gateway we're testing against sends roots. If not, The CAR specification also mentions the CAR requires 1 or more roots: https://ipld.io/specs/transport/car/carv1/#constraints We have to reach a consensus on what to do about the CAR roots, then update the libraries if we decide 0 roots is possible. Release those libraries and then update here. See also Slack thread. |
79ea524
to
8d7b65f
Compare
Co-authored-by: Eric Guan <[email protected]> Co-authored-by: Adin Schmahmann <[email protected]>
8d7b65f
to
867e48e
Compare
From standup: we decided to merge implementation in Boxo and Kubo, then this. The decision on the CAR roots is deferred and both Boxo and conformance tests can be later updated.
|
Problem identified in ipfs/gateway-conformance#56 (comment)
Conformance tests for IPIP-402.
cc @guanzo @laurentsenta
Note: the last commits for cloning the requestbuilder and splitting out the repeatable tasks (e.g. format parameter + accept header testing) could use separate review on if they're a good idea/pattern.