Skip to content

Commit c00665f

Browse files
authored
Merge of #2052
2 parents f6c85ce + a26fbf1 commit c00665f

File tree

6 files changed

+803
-3
lines changed

6 files changed

+803
-3
lines changed

.github/workflows/test-suite-e2e-operators-tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
- name: Setup Docker
9595
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
9696

97+
- name: Install Foundry
98+
uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de # v1.4.0
99+
97100
- name: Login to GitHub Container Registry
98101
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
99102
with:
@@ -125,7 +128,7 @@ jobs:
125128
SNS_WORKER_VERSION: ${{ inputs.sns_worker_version }}
126129
ZKPROOF_WORKER_VERSION: ${{ inputs.zkproof_worker_version }}
127130
run: |
128-
./fhevm-cli deploy
131+
./fhevm-cli deploy --coprocessors 2 --coprocessor-threshold 2
129132
130133
- name: All operators tests
131134
working-directory: test-suite/fhevm
@@ -150,6 +153,15 @@ jobs:
150153
echo "::group::Transaction Sender Logs (filtered)"
151154
./fhevm-cli logs transaction-sender | grep -v "Selected 0 rows to process"
152155
echo "::endgroup::"
156+
echo "::group::Coprocessor 2 - SNS Worker"
157+
./fhevm-cli logs coprocessor-2-sns-worker 2>/dev/null | grep -v "Selected 0 rows to process" || true
158+
echo "::endgroup::"
159+
echo "::group::Coprocessor 2 - Transaction Sender (filtered)"
160+
./fhevm-cli logs coprocessor-2-transaction-sender 2>/dev/null | grep -v "Selected 0 rows to process" || true
161+
echo "::endgroup::"
162+
echo "::group::Coprocessor 2 - TFHE Worker"
163+
./fhevm-cli logs coprocessor-2-tfhe-worker 2>/dev/null || true
164+
echo "::endgroup::"
153165
154166
- name: Cleanup
155167
working-directory: test-suite/fhevm

.github/workflows/test-suite-e2e-tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ jobs:
117117
- name: Setup Docker
118118
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
119119

120+
- name: Install Foundry
121+
uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de # v1.4.0
122+
120123
- name: Login to GitHub Container Registry
121124
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
122125
with:
@@ -140,7 +143,7 @@ jobs:
140143
- name: Deploy fhevm Stack
141144
working-directory: test-suite/fhevm
142145
run: |
143-
./fhevm-cli deploy
146+
./fhevm-cli deploy --coprocessors 2 --coprocessor-threshold 2
144147
145148
# E2E tests on pausing the Host contracts
146149
- name: Pause Host Contracts
@@ -247,6 +250,15 @@ jobs:
247250
echo "::group::TFHE Worker"
248251
./fhevm-cli logs coprocessor-tfhe-worker
249252
echo "::endgroup::"
253+
echo "::group::Coprocessor 2 - SNS Worker"
254+
./fhevm-cli logs coprocessor-2-sns-worker 2>/dev/null | grep -v "Selected 0 rows to process" || true
255+
echo "::endgroup::"
256+
echo "::group::Coprocessor 2 - Transaction Sender (filtered)"
257+
./fhevm-cli logs coprocessor-2-transaction-sender 2>/dev/null | grep -v "Selected 0 rows to process" || true
258+
echo "::endgroup::"
259+
echo "::group::Coprocessor 2 - TFHE Worker"
260+
./fhevm-cli logs coprocessor-2-tfhe-worker 2>/dev/null || true
261+
echo "::endgroup::"
250262
251263
- name: Cleanup
252264
working-directory: test-suite/fhevm

test-suite/e2e/hardhat.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const config: HardhatUserConfig = {
165165
defaultNetwork: DEFAULT_NETWORK,
166166
mocha: {
167167
timeout: 300000,
168+
rootHooks: require('./test/consensusWatchdog').mochaHooks,
168169
},
169170
gasReporter: {
170171
currency: 'USD',

0 commit comments

Comments
 (0)