Skip to content

Conversation

@sicco-moonbeam
Copy link

@sicco-moonbeam sicco-moonbeam commented Oct 30, 2025

I've been trying to run DataHaven on windows locally and I ran into some platform compatibility issues. I was eventually able to get the test:solochain-evm working but it required some changes to test/util/bspNet/helper.ts, test/package.json and test/suites/sdk-precompiles.test.ts to get that far.

However, the unit tests eventually succeeded for me:

image

Here is the path I took:

  • checkout repo
  • pnpm i
  • docker pull --platform linux/amd64 moonsonglabs/storage-hub:latest
  • docker tag moonsonglabs/storage-hub:latest storage-hub:local
  • docker pull --platform linux/amd64 moonsonglabs/storage-hub-msp-backend:latest
  • docker tag moonsonglabs/storage-hub-msp-backend:latest sh-msp-backend:local
  • cd test
  • pnpm docker:start:solochain-evm:initialised

this brough up the full DH stack.

To then run the sdk-precompiles-test, I had to:

  • install rust
  • install protoc (Protocol Buffers)
  • install LLVM/CLANG
  • rustup target add wasm32-unknown-unknown
  • cargo install wasm-pack
  • pnpm sdk:build

In addition to these I made the changes to the scripts (you'll see in the PR) and I was able to successfully complete the unit test.

I've managed to get Datahaven working locally on Windows using the following process:

* checkout storagehub
* pnpm i

* docker pull --platform linux/amd64 moonsonglabs/storage-hub:latest
* docker tag moonsonglabs/storage-hub:latest storage-hub:local
* docker pull --platform linux/amd64 moonsonglabs/storage-hub-msp-backend:latest
* docker tag moonsonglabs/storage-hub-msp-backend:latest sh-msp-backend:local
* cd test
* pnpm docker:start:solochain-evm:initialised

Howwever I had to make an edit to test/util/helper.ts as it was trying to get the IP of the BSP in way that only works on linux/mac; and I also had to add cross-env to get some of the test/package.json scripts to work in an agnostic fashion
@sicco-moonbeam
Copy link
Author

Worth mentioning - it's not possible to build from scratch on windows - you eventually end up needing rust dependencies that don't exist on Windows. And there's likely other unit tests that have path issues still like what I ran into.

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.

1 participant