Skip to content

Commit d1b215f

Browse files
committed
Merge remote-tracking branch 'origin/unstable' into tree-states
2 parents 6e18734 + 2548be3 commit d1b215f

File tree

193 files changed

+8304
-3111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+8304
-3111
lines changed

.github/workflows/local-testnet.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,23 @@ jobs:
2525
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
2626
with:
2727
repo-token: ${{ secrets.GITHUB_TOKEN }}
28-
- name: Install ganache
29-
run: npm install ganache@latest --global
30-
28+
- name: Install geth (ubuntu)
29+
if: matrix.os == 'ubuntu-22.04'
30+
run: |
31+
sudo add-apt-repository -y ppa:ethereum/ethereum
32+
sudo apt-get update
33+
sudo apt-get install ethereum
34+
- name: Install geth (mac)
35+
if: matrix.os == 'macos-12'
36+
run: |
37+
brew tap ethereum/ethereum
38+
brew install ethereum
39+
- name: Install GNU sed & GNU grep
40+
if: matrix.os == 'macos-12'
41+
run: |
42+
brew install gnu-sed grep
43+
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
44+
echo "$(brew --prefix)/opt/grep/libexec/gnubin" >> $GITHUB_PATH
3145
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
3246
- uses: actions/cache@v3
3347
id: cache-cargo
@@ -44,7 +58,7 @@ jobs:
4458
run: make && make install-lcli
4559

4660
- name: Start local testnet
47-
run: ./start_local_testnet.sh && sleep 60
61+
run: ./start_local_testnet.sh genesis.json && sleep 60
4862
working-directory: scripts/local_testnet
4963

5064
- name: Print logs
@@ -60,7 +74,7 @@ jobs:
6074
working-directory: scripts/local_testnet
6175

6276
- name: Start local testnet with blinded block production
63-
run: ./start_local_testnet.sh -p && sleep 60
77+
run: ./start_local_testnet.sh -p genesis.json && sleep 60
6478
working-directory: scripts/local_testnet
6579

6680
- name: Print logs for blinded block testnet
@@ -69,4 +83,4 @@ jobs:
6983

7084
- name: Stop local testnet with blinded block production
7185
run: ./stop_local_testnet.sh
72-
working-directory: scripts/local_testnet
86+
working-directory: scripts/local_testnet

.github/workflows/publish-crate.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/test-suite.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
5959
with:
6060
repo-token: ${{ secrets.GITHUB_TOKEN }}
61-
- name: Install ganache
62-
run: sudo npm install -g ganache
61+
- name: Install anvil
62+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
6363
- name: Run tests in release
6464
run: make test-release
6565
release-tests-windows:
@@ -78,8 +78,9 @@ jobs:
7878
run: |
7979
choco install python protoc visualstudio2019-workload-vctools -y
8080
npm config set msvs_version 2019
81-
- name: Install ganache
82-
run: npm install -g ganache --loglevel verbose
81+
- name: Install anvil
82+
# Extra feature to work around https://github.com/foundry-rs/foundry/issues/5115
83+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil --features ethers/ipc
8384
- name: Install make
8485
run: choco install -y make
8586
- uses: KyleMayes/install-llvm-action@v1
@@ -140,8 +141,8 @@ jobs:
140141
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
141142
with:
142143
repo-token: ${{ secrets.GITHUB_TOKEN }}
143-
- name: Install ganache
144-
run: sudo npm install -g ganache
144+
- name: Install anvil
145+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
145146
- name: Run tests in debug
146147
run: make test-debug
147148
state-transition-vectors-ubuntu:
@@ -196,8 +197,8 @@ jobs:
196197
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
197198
with:
198199
repo-token: ${{ secrets.GITHUB_TOKEN }}
199-
- name: Install ganache
200-
run: sudo npm install -g ganache
200+
- name: Install anvil
201+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
201202
- name: Run the beacon chain sim that starts from an eth1 contract
202203
run: cargo run --release --bin simulator eth1-sim
203204
merge-transition-ubuntu:
@@ -212,8 +213,8 @@ jobs:
212213
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
213214
with:
214215
repo-token: ${{ secrets.GITHUB_TOKEN }}
215-
- name: Install ganache
216-
run: sudo npm install -g ganache
216+
- name: Install anvil
217+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
217218
- name: Run the beacon chain sim and go through the merge transition
218219
run: cargo run --release --bin simulator eth1-sim --post-merge
219220
no-eth1-simulator-ubuntu:
@@ -228,8 +229,6 @@ jobs:
228229
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
229230
with:
230231
repo-token: ${{ secrets.GITHUB_TOKEN }}
231-
- name: Install ganache
232-
run: sudo npm install -g ganache
233232
- name: Run the beacon chain sim without an eth1 connection
234233
run: cargo run --release --bin simulator no-eth1-sim
235234
syncing-simulator-ubuntu:
@@ -244,8 +243,8 @@ jobs:
244243
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
245244
with:
246245
repo-token: ${{ secrets.GITHUB_TOKEN }}
247-
- name: Install ganache
248-
run: sudo npm install -g ganache
246+
- name: Install anvil
247+
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
249248
- name: Run the syncing simulator
250249
run: cargo run --release --bin simulator syncing-sim
251250
doppelganger-protection-test:
@@ -260,20 +259,23 @@ jobs:
260259
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
261260
with:
262261
repo-token: ${{ secrets.GITHUB_TOKEN }}
263-
- name: Install ganache
264-
run: sudo npm install -g ganache
262+
- name: Install geth
263+
run: |
264+
sudo add-apt-repository -y ppa:ethereum/ethereum
265+
sudo apt-get update
266+
sudo apt-get install ethereum
265267
- name: Install lighthouse and lcli
266268
run: |
267269
make
268270
make install-lcli
269-
- name: Run the doppelganger protection success test script
271+
- name: Run the doppelganger protection failure test script
270272
run: |
271273
cd scripts/tests
272-
./doppelganger_protection.sh success
273-
- name: Run the doppelganger protection failure test script
274+
./doppelganger_protection.sh failure genesis.json
275+
- name: Run the doppelganger protection success test script
274276
run: |
275277
cd scripts/tests
276-
./doppelganger_protection.sh failure
278+
./doppelganger_protection.sh success genesis.json
277279
execution-engine-integration-ubuntu:
278280
name: execution-engine-integration-ubuntu
279281
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)