test(scenarios): add createDataSet smoke scenario - #153
Open
galargh wants to merge 1 commit into
Open
Conversation
galargh
force-pushed
the
galargh/createdataset-smoke-test
branch
2 times, most recently
from
July 19, 2026 14:00
ab542e0 to
00a1da1
Compare
galargh
force-pushed
the
galargh/createdataset-smoke-test
branch
2 times, most recently
from
July 27, 2026 19:00
7d8a304 to
7e19448
Compare
galargh
force-pushed
the
galargh/createdataset-smoke-test
branch
from
July 27, 2026 19:01
7e19448 to
b21e5d7
Compare
galargh
marked this pull request as ready for review
July 29, 2026 20:08
galargh
commented
Jul 29, 2026
Contributor
Author
There was a problem hiding this comment.
TLDR
- Load
devnet-info.json. - Pick
USER_2by default. - Pick the first approved PDP service provider.
- Build a Synapse client for that user on the devnet chain.
- Create unique smoke-test metadata so this dataset can be identified later.
- Ask the SDK to create a storage context for that provider and metadata.
- Run
synapse.storage.prepare(...)for a tiny dataset size. - If prepare says funds or approvals are needed, submit those transactions:
- ERC20 approval
- FilecoinPay deposit
- FWSS operator approval
- Directly call
SP.createDataSet(...). - Wait for
SP.waitForCreateDataSet(...)to confirm dataset creation. - Fetch datasets through
synapse.storage.findDataSets(). - Assert the new dataset exists and has the expected properties:
- positive dataset ID
- live
- managed
- correct payer
- correct provider/payee
- matching smoke metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #121
This introduces createDataSet scenraio described in the related issue. Combined with the other proposed additions related to the issue, it will allow us to fully test the partial upgrade scenario.
Testing