From e58275093054f38887b333fffc4ab8e825fa56d6 Mon Sep 17 00:00:00 2001 From: Andre da Silva Date: Tue, 3 Dec 2024 01:03:15 -0300 Subject: [PATCH] Run existing-net-test in a Kubernetes local network --- .github/workflows/rust.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 06157c65fe74..e27962356dcb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -69,6 +69,33 @@ jobs: run: | cargo test -p linera-service existing_net_grpc --features existing-net + existing-kubernetes-net-test: + runs-on: ubuntu-latest-16-cores + timeout-minutes: 40 + + steps: + - uses: actions/checkout@v3 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Run the validators + run: | + cargo build --release --bin linera --bin linera-proxy --bin linera-server --features kubernetes,scylladb,metrics + strip target/release/linera + strip target/release/linera-proxy + strip target/release/linera-server + cargo run --features kubernetes --release --bin linera -- net up --kubernetes --binaries --policy-config devnet --validators 4 --shards 4 & + - name: Create two epochs and run the faucet + run: | + cargo run --release --bin linera -- resource-control-policy --block 0.0000001 + cargo run --release --bin linera -- resource-control-policy --block 0.000000 + cargo run --release --bin linera -- faucet --amount 1000 --port 8079 69705f85ac4c9fef6c02b4d83426aaaf05154c645ec1c61665f8e450f0468bc0 & + - name: Run the existing-net tests + run: | + cargo test -p linera-service existing_net_grpc --features existing-net + execution-wasmtime-test: runs-on: ubuntu-latest timeout-minutes: 10