From 4086113f52277b008a0025a7b7af3fcae41950ae Mon Sep 17 00:00:00 2001 From: kamilsa Date: Mon, 20 May 2024 18:28:04 +0500 Subject: [PATCH] Update tester with timeout for precompile --- zombienet/docker/tester.Dockerfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/zombienet/docker/tester.Dockerfile b/zombienet/docker/tester.Dockerfile index 153bf0cece..53070a625f 100644 --- a/zombienet/docker/tester.Dockerfile +++ b/zombienet/docker/tester.Dockerfile @@ -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"