Skip to content

Commit

Permalink
Update tester with timeout for precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsa committed May 20, 2024
1 parent 0cde187 commit 4086113
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions zombienet/docker/tester.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ RUN mkdir /home/nonroot/.local && \
chown nonroot:nonroot /home/nonroot/.local && \
chown nonroot:nonroot /tmp
USER nonroot
CMD zombienet-linux-x64 test -p native kagome/zombienet/0001-parachains-smoke-test/0001-parachains-smoke-test.zndsl && \
zombienet-linux-x64 test -p native kagome/zombienet/0002-parachains-upgrade-smoke-tests/0002-parachains-upgrade-smoke-test.zndsl && \
zombienet-linux-x64 test -p native kagome/zombienet/0003-parachains-smoke-test-cumulus/0003-parachains-smoke-test-cumulus.zndsl
#CMD zombienet-linux-x64 test -p native kagome/zombienet/0001-parachains-smoke-test/0001-parachains-smoke-test.zndsl && \
# zombienet-linux-x64 test -p native kagome/zombienet/0002-parachains-upgrade-smoke-tests/0002-parachains-upgrade-smoke-test.zndsl && \
# zombienet-linux-x64 test -p native kagome/zombienet/0003-parachains-smoke-test-cumulus/0003-parachains-smoke-test-cumulus.zndsl


# Prepare runtimes
RUN mkdir /tmp/chain-specs
RUN polkadot build-spec --chain rococo-local --raw > /tmp/chain-specs/rococo-local.raw
RUN polkadot build-spec --chain westend-local --raw > /tmp/chain-specs/westend-local.raw
# TODO(kamilsa) #2099: replace kagome launch with timeout below with precompile command
RUN timeout 10m kagome --chain /tmp/chain-specs/rococo-local.raw --tmp --validator --wasm-execution Compiled || echo "kagome command timed out"
RUN timeout 10m kagome --chain /tmp/chain-specs/westend-local.raw --tmp --validator --wasm-execution Compiled || echo "kagome command timed out"

0 comments on commit 4086113

Please sign in to comment.