Skip to content

Testing a noisd build

Simon Warta edited this page Feb 26, 2024 · 1 revision

Those steps allow testing a noisd build together with the nois contracts.

Terminal 1

  1. Check out the relevant work and navigate to the noisd repo root
  2. Build a Docker image as described here. Take the image tag from the output, e.g. 1.0.5-29-ga6608d4 from here
 => [noisd 2/6] COPY --from=go-builder /code/build/noisd /usr/bin/noisd                                                             0.1s 
 => [noisd 3/6] RUN apk add jq                                                                                                      0.8s 
 => [noisd 4/6] COPY docker/scripts/* /usr/local/bin/                                                                               0.0s
 => [noisd 5/6] RUN chmod +x /usr/local/bin/*.sh                                                                                    0.2s
 => [noisd 6/6] WORKDIR /opt                                                                                                        0.0s
 => exporting to image                                                                                                              0.2s
 => => exporting layers                                                                                                             0.2s
 => => writing image sha256:ab4342699c94eb5bc0e019ff0f96bda5d39e87598c08605fa2a78ee05b435d4f                                        0.0s
 => => naming to docker.io/noislabs/noisd:1.0.5-29-ga6608d4

Terminal 2

  1. Check out nois-contracts and navigate to the repo root
  2. Change VERSION in ci-scripts/nois/env to the tag from the other terminal
  3. Regenerate genesis and check the diff: (cd ci-scripts/nois && ./generate_template.sh)
  4. Start chains: ./ci-scripts/restart.sh
  5. Ensure two chains are running: docker ps (see debug-noisd.log in case of errors)
  6. Builds contracts: ./devtools/build_integration_wasm.sh
  7. Run tests: (cd tests && npm i && npm run test)
Clone this wiki locally