|
43 | 43 | if-no-files-found: error |
44 | 44 | retention-days: 7 |
45 | 45 |
|
| 46 | + build-synthetic-network-docker: |
| 47 | + needs: [build-test-docker] |
| 48 | + name: Build docker image with the test node artifact and support for synthetic-network |
| 49 | + runs-on: ubuntu-20.04 |
| 50 | + steps: |
| 51 | + - name: Checkout source code |
| 52 | + uses: actions/checkout@v2 |
| 53 | + |
| 54 | + - name: Download artifact with docker image for aleph-node |
| 55 | + uses: actions/download-artifact@v2 |
| 56 | + with: |
| 57 | + name: aleph-test-docker |
| 58 | + |
| 59 | + - name: Load node docker image |
| 60 | + shell: bash |
| 61 | + run: docker load -i aleph-node.tar |
| 62 | + |
| 63 | + - name: Build test docker image |
| 64 | + id: build-image |
| 65 | + run: | |
| 66 | + scripts/synthetic-network/build_synthetic-network.sh |
| 67 | + docker save -o aleph-node.tar aleph-node:syntheticnet |
| 68 | +
|
| 69 | + - name: Upload test docker image |
| 70 | + uses: actions/upload-artifact@v2 |
| 71 | + with: |
| 72 | + name: aleph-test-synthetic-docker |
| 73 | + path: aleph-node.tar |
| 74 | + if-no-files-found: error |
| 75 | + retention-days: 7 |
| 76 | + |
46 | 77 | check-determinism: |
47 | 78 | needs: [build-new-node] |
48 | 79 | name: Verify runtime build determinism |
|
59 | 90 | - name: Install Protoc |
60 | 91 | uses: arduino/setup-protoc@v1 |
61 | 92 | with: |
62 | | - version: '3.6.1' |
| 93 | + version: '3.6.1' |
| 94 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
63 | 95 |
|
64 | 96 | - name: Install WASM target |
65 | 97 | run: rustup target add wasm32-unknown-unknown |
|
96 | 128 | - name: Install Protoc |
97 | 129 | uses: arduino/setup-protoc@v1 |
98 | 130 | with: |
99 | | - version: '3.6.1' |
| 131 | + version: '3.6.1' |
| 132 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
100 | 133 |
|
101 | 134 | - name: Restore cache |
102 | 135 | uses: ./.github/actions/restore-cache |
@@ -140,9 +173,45 @@ jobs: |
140 | 173 | randomized: true |
141 | 174 | timeout-minutes: 60 |
142 | 175 |
|
| 176 | + run-e2e-high-out-latency: |
| 177 | + needs: [build-synthetic-network-docker, build-test-client] |
| 178 | + name: Run high out-latency test |
| 179 | + runs-on: ubuntu-20.04 |
| 180 | + steps: |
| 181 | + - name: Checkout source code |
| 182 | + uses: actions/checkout@v2 |
| 183 | + |
| 184 | + - name: Run e2e test |
| 185 | + uses: ./.github/actions/run-e2e-test |
| 186 | + with: |
| 187 | + test-case: high_out_latency_for_all |
| 188 | + image-path: aleph-test-synthetic-docker |
| 189 | + node-image: aleph-node:syntheticnet |
| 190 | + compose-file: docker/docker-compose.synthetic-network.yml |
| 191 | + timeout-minutes: 30 |
| 192 | + |
| 193 | + run-e2e-no-quorum-without-high-out-latency: |
| 194 | + needs: [build-synthetic-network-docker, build-test-client] |
| 195 | + name: Run high out-latency for every quorum |
| 196 | + runs-on: ubuntu-20.04 |
| 197 | + steps: |
| 198 | + - name: Checkout source code |
| 199 | + uses: actions/checkout@v2 |
| 200 | + |
| 201 | + - name: Run e2e test |
| 202 | + uses: ./.github/actions/run-e2e-test |
| 203 | + with: |
| 204 | + test-case: high_out_latency_for_each_quorum |
| 205 | + image-path: aleph-test-synthetic-docker |
| 206 | + node-image: aleph-node:syntheticnet |
| 207 | + compose-file: docker/docker-compose.synthetic-network.yml |
| 208 | + timeout-minutes: 15 |
| 209 | + |
143 | 210 | check-e2e-test-suite-completion: |
144 | 211 | needs: [ |
145 | 212 | run-e2e-authorities-are-staking, |
| 213 | + run-e2e-high-out-latency, |
| 214 | + run-e2e-no-quorum-without-high-out-latency, |
146 | 215 | ] |
147 | 216 | name: Check e2e test suite completion |
148 | 217 | runs-on: ubuntu-20.04 |
|
0 commit comments