Skip to content

Commit

Permalink
integration tests matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Jan 23, 2024
1 parent 3ea6a23 commit 4a34541
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci-core-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ jobs:
ci_run sccache --show-stats
ci_run cat /tmp/sccache_log.txt
integration:
strategy:
matrix:
# Whether to enable consensus or not.
consensus_env_vars: ["","CONSENSUS_CONFIG_PATH=etc/env/consensus_config.json"],
runs-on: [matterlabs-ci-runner]

steps:
Expand Down Expand Up @@ -181,6 +185,8 @@ jobs:
run: |
ci_run zk server &>server.log &
ci_run sleep 5
env:
PASSED_ENV_VARS: "${{ matrix.consensus_env_vars }}"

- name: Run contract verifier
run: |
Expand Down Expand Up @@ -230,6 +236,10 @@ jobs:
ci_run cat /tmp/sccache_log.txt
external-node:
strategy:
matrix:
# Whether to enable consensus or not.
consensus_env_vars: ["","CONSENSUS_CONFIG_PATH=etc/env/consensus_config.json,EN_CONSENSUS_CONFIG_PATH=etc/env/en_consensus_config.json"],
runs-on: [matterlabs-ci-runner]

steps:
Expand Down Expand Up @@ -293,13 +303,17 @@ jobs:
run: |
ci_run zk server &>server.log &
ci_run sleep 30
env:
PASSED_ENV_VARS: "${{ matrix.consensus_env_vars }}"

- name: Run external node
run: |
ci_run zk env ext-node-docker
ci_run zk db setup
ci_run zk external-node &>ext-node.log &
ci_run sleep 30
env:
PASSED_ENV_VARS: "${{ matrix.consensus_env_vars }}"

# TODO(PLA-653): Restore bridge tests for EN.
- name: Integration tests
Expand Down
1 change: 0 additions & 1 deletion etc/env/base/private.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ operator_private_key="0x27593fea79697e947890ecbecce7901b0008345e5d7259710d0dd5e5
operator_commit_eth_addr="0xde03a0B5963f75f1C8485B355fF6D30f3093BDE7"

[consensus]
config_path="etc/env/consensus_config.json"
# generated with zksync_consensus_tools/src/bin/keys.rs
# node:public:ed25519:ee717abba6aec5baae5e09d457bd2ffc2f121b576cf4170ce15a68163ce4c868
node_key="node:secret:ed25519:b6666c3be2703e15028bbebd220d2678fde7431038641f36c52f02849595a8ab"
Expand Down
1 change: 0 additions & 1 deletion etc/env/ext-node-docker.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ default_aa_hash="0x0100038dc66b69be75ec31653c64cb931678299b9b659472772b2550b703f
operator_addr="0xde03a0B5963f75f1C8485B355fF6D30f3093BDE7"

[en.consensus]
config_path="etc/env/en_consensus_config.json"
# generated with zksync_consensus_tools/src/bin/keys.rs
# node:public:ed25519:147bb71be895846e1d6f5b1c6a8be53848b82bdafcf66e9dfe6ca65581076a1d
node_key="node:secret:ed25519:d56de77c738326c305c64c25bffe1cc94ea7c639cf71ca3ff94229df27f167ac"
Expand Down
1 change: 0 additions & 1 deletion etc/env/ext-node.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ default_aa_hash="0x0100038dc66b69be75ec31653c64cb931678299b9b659472772b2550b703f
operator_addr="0xde03a0B5963f75f1C8485B355fF6D30f3093BDE7"

[en.consensus]
config_path="etc/env/en_consensus_config.json"
# generated with zksync_consensus_tools/src/bin/keys.rs
# node:public:ed25519:147bb71be895846e1d6f5b1c6a8be53848b82bdafcf66e9dfe6ca65581076a1d
node_key="node:secret:ed25519:d56de77c738326c305c64c25bffe1cc94ea7c639cf71ca3ff94229df27f167ac"
Expand Down

0 comments on commit 4a34541

Please sign in to comment.