diff --git a/.github/workflows/smoke-tests.yaml b/.github/workflows/smoke-tests.yaml index f4d5fc896..adcbb1d43 100644 --- a/.github/workflows/smoke-tests.yaml +++ b/.github/workflows/smoke-tests.yaml @@ -1,6 +1,10 @@ name: Smoke tests on: + # debug CI for PR + pull_request: + branches: + - main # Run every 6 hours schedule: - cron: '0 */6 * * *' @@ -8,7 +12,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }}-smoke-tests - cancel-in-progress: true + cancel-in-progress: false # debuging jobs: smoke-test-1: diff --git a/charts/devnet/templates/chains/cosmos/validator.yaml b/charts/devnet/templates/chains/cosmos/validator.yaml index bc9418d0b..2aeeaacc6 100644 --- a/charts/devnet/templates/chains/cosmos/validator.yaml +++ b/charts/devnet/templates/chains/cosmos/validator.yaml @@ -44,6 +44,7 @@ spec: app.kubernetes.io/name: {{ $chain.name }}-validator app.kubernetes.io/version: {{ $.Chart.AppVersion }} spec: + restartPolicy: Always {{- include "imagePullSecrets" $chain | indent 6 }} initContainers: {{- if $toBuild }} @@ -106,9 +107,21 @@ spec: cp $CHAIN_DIR/cosmovisor/genesis/bin/$CHAIN_BIN /usr/bin {{- end }} + curl http://$GENESIS_HOST.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/genesis -o /tmp/genesis.json + echo "Genesis file that we got....." + echo "check tmp genesis" + ls -lhG /tmp/genesis.json + echo "check chain dir" + ls -lhG $CHAIN_DIR + if [ -f $CHAIN_DIR/config/genesis.json ]; then - echo "Genesis file exists, exiting early" - exit 0 + if cmp -s $CHAIN_DIR/config/genesis.json /tmp/genesis.json; then + echo "Genesis file exists, exiting early" + exit 0 + else + echo "Genesis found does not match..., performing cleanup" + rm -rf $CHAIN_DIR/* + fi fi RECOVER=true @@ -126,8 +139,8 @@ spec: $CHAIN_BIN keys add $VAL_NAME --keyring-backend="test" fi - curl http://$GENESIS_HOST.$NAMESPACE.svc.cluster.local:$GENESIS_PORT/genesis -o $CHAIN_DIR/config/genesis.json - echo "Genesis file that we got....." + echo "Copy genesis.json to correct place" + cp /tmp/genesis.json $CHAIN_DIR/config/genesis.json cat $CHAIN_DIR/config/genesis.json echo "Setup config files" @@ -142,9 +155,6 @@ spec: GENESIS_NODE_P2P=$NODE_ID@$GENESIS_HOST.$NAMESPACE.svc.cluster.local:26656 echo "Node P2P: $GENESIS_NODE_P2P" sed -i "s/persistent_peers = \"\"/persistent_peers = \"$GENESIS_NODE_P2P\"/g" $CHAIN_DIR/config/config.toml - - echo "Printing the whole config.toml file" - cat $CHAIN_DIR/config/config.toml resources: {{- include "devnet.node.resources" ( dict "node" $chain "context" $ ) | trim | nindent 12 }} volumeMounts: - mountPath: {{ $chain.home }} diff --git a/tests/smoke/ci/multi-validator.yaml b/tests/smoke/ci/multi-validator.yaml index 3fefd8a80..64f63c31c 100644 --- a/tests/smoke/ci/multi-validator.yaml +++ b/tests/smoke/ci/multi-validator.yaml @@ -7,8 +7,12 @@ chains: rpc: 26653 exposer: 38083 resources: - cpu: "0.3" - memory: 600M + limits: + cpu: "0.4" + memory: 1Gi + requests: + cpu: "0.2" + memory: 600M faucet: concurrency: 2 resources: