Skip to content

test(scenarios): add createDataSet smoke scenario - #153

Open
galargh wants to merge 1 commit into
mainfrom
galargh/createdataset-smoke-test
Open

test(scenarios): add createDataSet smoke scenario#153
galargh wants to merge 1 commit into
mainfrom
galargh/createdataset-smoke-test

Conversation

@galargh

@galargh galargh commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

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

  • CI
  • Nightly Build - TODO

@FilOzzy FilOzzy added this to FOC Jul 16, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Jul 16, 2026
@galargh
galargh force-pushed the galargh/createdataset-smoke-test branch 2 times, most recently from ab542e0 to 00a1da1 Compare July 19, 2026 14:00
@galargh
galargh force-pushed the galargh/createdataset-smoke-test branch 2 times, most recently from 7d8a304 to 7e19448 Compare July 27, 2026 19:00
@galargh
galargh force-pushed the galargh/createdataset-smoke-test branch from 7e19448 to b21e5d7 Compare July 27, 2026 19:01
@galargh galargh changed the title Add createDataSet smoke scenario test(scenarios): add createDataSet smoke scenario Jul 27, 2026
@galargh
galargh marked this pull request as ready for review July 29, 2026 20:08

@galargh galargh Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TLDR

  1. Load devnet-info.json.
  2. Pick USER_2 by default.
  3. Pick the first approved PDP service provider.
  4. Build a Synapse client for that user on the devnet chain.
  5. Create unique smoke-test metadata so this dataset can be identified later.
  6. Ask the SDK to create a storage context for that provider and metadata.
  7. Run synapse.storage.prepare(...) for a tiny dataset size.
  8. If prepare says funds or approvals are needed, submit those transactions:
    • ERC20 approval
    • FilecoinPay deposit
    • FWSS operator approval
  9. Directly call SP.createDataSet(...).
  10. Wait for SP.waitForCreateDataSet(...) to confirm dataset creation.
  11. Fetch datasets through synapse.storage.findDataSets().
  12. Assert the new dataset exists and has the expected properties:
    • positive dataset ID
    • live
    • managed
    • correct payer
    • correct provider/payee
    • matching smoke metadata

@galargh
galargh requested review from BigLep, rjan90 and rvagg July 29, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📌 Triage

Development

Successfully merging this pull request may close these issues.

2 participants