From 5cd5045ee73f07d7345c26ed3a42596e14c7305c Mon Sep 17 00:00:00 2001 From: kamilsa Date: Mon, 20 May 2024 19:07:11 +0500 Subject: [PATCH] Download runtime cache instead of creating new one --- zombienet/docker/tester.Dockerfile | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/zombienet/docker/tester.Dockerfile b/zombienet/docker/tester.Dockerfile index 53070a625f..e0cf158446 100644 --- a/zombienet/docker/tester.Dockerfile +++ b/zombienet/docker/tester.Dockerfile @@ -5,19 +5,15 @@ FROM qdrvm/kagome:latest as kagome FROM qdrvm/zombie-builder:$POLKADOT_SDK_RELEASE AS tester COPY --from=kagome /usr/local/bin/kagome /home/nonroot/bin RUN git clone https://github.com/qdrvm/kagome.git -b test/polkadot-functional-zombietests + +# TODO(kamilsa): #2099 Remove this once we have a proper way to precompile +RUN mkdir /tmp/kagome/ +RUN wget --no-check-certificate 'https://drive.usercontent.google.com/uc?id=1HlZ581MfFH9xtIXCj20NyUuDAC5Ip4CN&export=download&confirm=yes' -O /tmp/runtime_cache.zip +RUN apt update && apt install -y unzip +RUN unzip /tmp/runtime_cache.zip -d /tmp/kagome/ +RUN rm /tmp/runtime_cache.zip + 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 - - -# 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"