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

fix: filecoin test use blob #1422

Merged
merged 2 commits into from
Apr 30, 2024
Merged

fix: filecoin test use blob #1422

merged 2 commits into from
Apr 30, 2024

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Apr 30, 2024

Filecoin api exported tests still using CARs instead of Blobs, which means storacha/w3infra#360 need to have TestContentStore to use CARs to make these tests work https://github.com/w3s-project/w3infra/pull/360/files#diff-cd843762832d0767495ff56f3f8692a15262dce245db89690794a1316868e25aR99

But, we want to use Blobs already, so let's make the tests also want Blobs across Filecoin pipeline :)

note that in practise both Blobs and CARs work, but for testing we are only writing one of them and is a CAR today https://github.com/w3s-project/w3up/blob/main/packages/filecoin-api/test/events/storefront.js#L42

link: car.cid,
size: car.size,
}))
const blob = new Blob([bytes])
Copy link
Member

Choose a reason for hiding this comment

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

Does it need to be a Blob though?

@vasco-santos vasco-santos merged commit 359c0b7 into main Apr 30, 2024
14 checks passed
@vasco-santos vasco-santos deleted the fix/filecoin-test-use-blob branch April 30, 2024 09:16
vasco-santos pushed a commit that referenced this pull request Apr 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.3.3](filecoin-client-v3.3.2...filecoin-client-v3.3.3)
(2024-04-30)


### Fixes

* filecoin test use blob
([#1422](#1422))
([359c0b7](359c0b7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
vasco-santos added a commit that referenced this pull request Apr 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[6.0.1](filecoin-api-v6.0.0...filecoin-api-v6.0.1)
(2024-04-30)


### Fixes

* filecoin test use blob
([#1422](#1422))
([359c0b7](359c0b7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>
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.

2 participants