Sleep a little for server initailization
@@ -122,6 +122,11 @@ jobs:
IMAGE_TAG=b2f056a helmfile -e $HFENV $DEPLOY_APPS diff --args "timeout 180s"
IMAGE_TAG=b2f056a helmfile -e $HFENV $DEPLOY_APPS sync --args "timeout 180s"
+ - name: Sleep for initializating server
+ uses: juliangruber/sleep-action@v1
+ with:
+ time: 60s
+
loadtest:
name: Perform loadtest
runs-on: [self-hosted, CI-worker]
@@ -129,8 +134,8 @@ jobs:
env:
WEB3_URL: ${{secrets.CI_LOADTEST_WEB3_URL}}
MASTER_WALLET_PK: ${{secrets.CI_LOADTEST_MAIN_PRIVKEY}}
- ACCOUNTS_AMOUNT: 20
- OPERATIONS_PER_ACCOUNT: 10
+ ACCOUNTS_AMOUNT: 40
+ OPERATIONS_PER_ACCOUNT: 50
MAIN_TOKEN: "USDT"
ZKSYNC_RPC_ADDR: "https://loadtest-api.zksync.dev/jsrpc"
ETH_NETWORK: "rinkeby"
@@ -140,23 +145,23 @@ jobs:
name: Run loadtest
run: |
docker run -e RUST_LOG=info -e WEB3_URL -e MASTER_WALLET_PK -e ACCOUNTS_AMOUNT -e OPERATIONS_PER_ACCOUNT -e MAIN_TOKEN -e ZKSYNC_RPC_ADDR -e ETH_NETWORK -v $(pwd):/usr/zksync-dev -w /usr/zksync-dev rust:1.53 cargo run --bin loadnext
-# cleanup:
-# name: Cleanup loadtest environment
-# runs-on: [k8s, stage, deployer]
-# needs: loadtest
-# if: always()
-# container:
-# image: dysnix/kubectl:v1.16-gcloud
-# env:
-# KUBECONF: ${{ secrets.STAGE_KUBECONF }}
-#
-# steps:
-# -
-# name: Create ~/.kube/config
-# run: .github/scripts/write-kubeconf.sh
-# -
-# name: Scale loadtest to 0 replicas
-# run: |
-# kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/explorer
-# kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/server
-# kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/prover
+ cleanup:
+ name: Cleanup loadtest environment
+ runs-on: [k8s, stage, deployer]
+ needs: loadtest
+ if: always()
+ container:
+ image: dysnix/kubectl:v1.16-gcloud
+ env:
+ KUBECONF: ${{ secrets.STAGE_KUBECONF }}
+
+ steps:
+ -
+ name: Create ~/.kube/config
+ run: .github/scripts/write-kubeconf.sh
+ -
+ name: Scale loadtest to 0 replicas
+ run: |
+ kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/explorer
+ kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/server
+ kubectl -n $ZKSYNC_ENV scale --replicas=0 deploy/prover
