Skip to content

Commit 307ade9

Browse files
Merge tag 'v3.4.0' into develop
v3.4.0
2 parents 62dc610 + 38514c0 commit 307ade9

File tree

201 files changed

+8857
-4431
lines changed

Some content is hidden

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

201 files changed

+8857
-4431
lines changed

.github/custom/clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async-wrapper-methods = [
1616
"task_executor::TaskExecutor::spawn_blocking_handle",
1717
"warp_utils::task::blocking_task",
1818
"warp_utils::task::blocking_json_task",
19+
"beacon_chain::beacon_chain::BeaconChain::spawn_blocking_handle",
1920
"validator_client::http_api::blocking_signed_json_task",
2021
"execution_layer::test_utils::MockServer::new",
2122
"execution_layer::test_utils::MockServer::new_with_config",

.github/workflows/local-testnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Get latest version of stable Rust
2222
run: rustup update stable
2323
- name: Install Protoc
24-
uses: arduino/setup-protoc@v1
24+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
2525
with:
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
2727
- name: Install ganache

.github/workflows/release.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
env:
99
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
1010
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
11-
REPO_NAME: sigp/lighthouse
12-
IMAGE_NAME: sigp/lighthouse
11+
REPO_NAME: ${{ github.repository_owner }}/lighthouse
12+
IMAGE_NAME: ${{ github.repository_owner }}/lighthouse
1313

1414
jobs:
1515
extract-version:
@@ -63,12 +63,8 @@ jobs:
6363
steps:
6464
- name: Checkout sources
6565
uses: actions/checkout@v3
66-
- name: Build toolchain
67-
uses: actions-rs/toolchain@v1
68-
with:
69-
toolchain: stable
70-
profile: minimal
71-
override: true
66+
- name: Get latest version of stable Rust
67+
run: rustup update stable
7268

7369
# ==============================
7470
# Windows dependencies
@@ -88,7 +84,7 @@ jobs:
8884
# ==============================
8985
- name: Install Protoc
9086
if: contains(matrix.arch, 'darwin') || contains(matrix.arch, 'windows')
91-
uses: arduino/setup-protoc@v1
87+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
9288
with:
9389
repo-token: ${{ secrets.GITHUB_TOKEN }}
9490

@@ -179,13 +175,13 @@ jobs:
179175
# =======================================================================
180176

181177
- name: Upload artifact
182-
uses: actions/upload-artifact@v2
178+
uses: actions/upload-artifact@v3
183179
with:
184180
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
185181
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
186182

187183
- name: Upload signature
188-
uses: actions/upload-artifact@v2
184+
uses: actions/upload-artifact@v3
189185
with:
190186
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
191187
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
@@ -208,19 +204,22 @@ jobs:
208204
# ==============================
209205

210206
- name: Download artifacts
211-
uses: actions/download-artifact@v2
207+
uses: actions/download-artifact@v3
212208

213209
# ==============================
214210
# Create release draft
215211
# ==============================
216212

217213
- name: Generate Full Changelog
218214
id: changelog
219-
run: echo "CHANGELOG=$(git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 ${{ env.VERSION }}^)..${{ env.VERSION }})" >> $GITHUB_OUTPUT
215+
run: |
216+
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
217+
echo "$(git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 ${{ env.VERSION }}^)..${{ env.VERSION }})" >> $GITHUB_OUTPUT
218+
echo "EOF" >> $GITHUB_OUTPUT
220219
221220
- name: Create Release Draft
222221
env:
223-
GITHUB_USER: sigp
222+
GITHUB_USER: ${{ github.repository_owner }}
224223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
225224

226225
# The formatting here is borrowed from OpenEthereum: https://github.com/openethereum/openethereum/blob/main/.github/workflows/build.yml

.github/workflows/test-suite.yml

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ env:
1212
# Deny warnings in CI
1313
RUSTFLAGS: "-D warnings"
1414
# The Nightly version used for cargo-udeps, might need updating from time to time.
15-
PINNED_NIGHTLY: nightly-2022-05-20
15+
PINNED_NIGHTLY: nightly-2022-12-15
16+
# Prevent Github API rate limiting.
17+
LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1618
jobs:
1719
target-branch-check:
1820
name: target-branch-check
@@ -51,7 +53,7 @@ jobs:
5153
- name: Get latest version of stable Rust
5254
run: rustup update stable
5355
- name: Install Protoc
54-
uses: arduino/setup-protoc@v1
56+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
5557
with:
5658
repo-token: ${{ secrets.GITHUB_TOKEN }}
5759
- name: Install ganache
@@ -95,7 +97,7 @@ jobs:
9597
- name: Get latest version of stable Rust
9698
run: rustup update stable
9799
- name: Install Protoc
98-
uses: arduino/setup-protoc@v1
100+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
99101
with:
100102
repo-token: ${{ secrets.GITHUB_TOKEN }}
101103
- name: Run beacon_chain tests for all known forks
@@ -109,7 +111,7 @@ jobs:
109111
- name: Get latest version of stable Rust
110112
run: rustup update stable
111113
- name: Install Protoc
112-
uses: arduino/setup-protoc@v1
114+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
113115
with:
114116
repo-token: ${{ secrets.GITHUB_TOKEN }}
115117
- name: Run operation_pool tests for all known forks
@@ -133,7 +135,7 @@ jobs:
133135
- name: Get latest version of stable Rust
134136
run: rustup update stable
135137
- name: Install Protoc
136-
uses: arduino/setup-protoc@v1
138+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
137139
with:
138140
repo-token: ${{ secrets.GITHUB_TOKEN }}
139141
- name: Install ganache
@@ -149,7 +151,7 @@ jobs:
149151
- name: Get latest version of stable Rust
150152
run: rustup update stable
151153
- name: Install Protoc
152-
uses: arduino/setup-protoc@v1
154+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
153155
with:
154156
repo-token: ${{ secrets.GITHUB_TOKEN }}
155157
- name: Run state_transition_vectors in release.
@@ -163,7 +165,7 @@ jobs:
163165
- name: Get latest version of stable Rust
164166
run: rustup update stable
165167
- name: Install Protoc
166-
uses: arduino/setup-protoc@v1
168+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
167169
with:
168170
repo-token: ${{ secrets.GITHUB_TOKEN }}
169171
- name: Run consensus-spec-tests with blst, milagro and fake_crypto
@@ -189,7 +191,7 @@ jobs:
189191
- name: Get latest version of stable Rust
190192
run: rustup update stable
191193
- name: Install Protoc
192-
uses: arduino/setup-protoc@v1
194+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
193195
with:
194196
repo-token: ${{ secrets.GITHUB_TOKEN }}
195197
- name: Install ganache
@@ -205,7 +207,7 @@ jobs:
205207
- name: Get latest version of stable Rust
206208
run: rustup update stable
207209
- name: Install Protoc
208-
uses: arduino/setup-protoc@v1
210+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
209211
with:
210212
repo-token: ${{ secrets.GITHUB_TOKEN }}
211213
- name: Install ganache
@@ -221,7 +223,7 @@ jobs:
221223
- name: Get latest version of stable Rust
222224
run: rustup update stable
223225
- name: Install Protoc
224-
uses: arduino/setup-protoc@v1
226+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
225227
with:
226228
repo-token: ${{ secrets.GITHUB_TOKEN }}
227229
- name: Install ganache
@@ -237,7 +239,7 @@ jobs:
237239
- name: Get latest version of stable Rust
238240
run: rustup update stable
239241
- name: Install Protoc
240-
uses: arduino/setup-protoc@v1
242+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
241243
with:
242244
repo-token: ${{ secrets.GITHUB_TOKEN }}
243245
- name: Install ganache
@@ -253,7 +255,7 @@ jobs:
253255
- name: Get latest version of stable Rust
254256
run: rustup update stable
255257
- name: Install Protoc
256-
uses: arduino/setup-protoc@v1
258+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
257259
with:
258260
repo-token: ${{ secrets.GITHUB_TOKEN }}
259261
- name: Install ganache
@@ -285,7 +287,7 @@ jobs:
285287
- name: Get latest version of stable Rust
286288
run: rustup update stable
287289
- name: Install Protoc
288-
uses: arduino/setup-protoc@v1
290+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
289291
with:
290292
repo-token: ${{ secrets.GITHUB_TOKEN }}
291293
- name: Run exec engine integration tests in release
@@ -299,7 +301,7 @@ jobs:
299301
- name: Get latest version of stable Rust
300302
run: rustup update stable
301303
- name: Install Protoc
302-
uses: arduino/setup-protoc@v1
304+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
303305
with:
304306
repo-token: ${{ secrets.GITHUB_TOKEN }}
305307
- name: Typecheck benchmark code without running it
@@ -323,34 +325,13 @@ jobs:
323325
- name: Get latest version of stable Rust
324326
run: rustup update stable
325327
- name: Install Protoc
326-
uses: arduino/setup-protoc@v1
328+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
327329
with:
328330
repo-token: ${{ secrets.GITHUB_TOKEN }}
329331
- name: Lint code for quality and style with Clippy
330332
run: make lint
331333
- name: Certify Cargo.lock freshness
332334
run: git diff --exit-code Cargo.lock
333-
disallowed-from-async-lint:
334-
name: disallowed-from-async-lint
335-
runs-on: ubuntu-latest
336-
needs: cargo-fmt
337-
continue-on-error: true
338-
steps:
339-
- uses: actions/checkout@v3
340-
- name: Install SigP Clippy fork
341-
run: |
342-
cd ..
343-
git clone https://github.com/michaelsproul/rust-clippy.git
344-
cd rust-clippy
345-
git checkout 31a49666ccfcd7963b63345d6ce757c373f22c2a
346-
cargo build --release --bin cargo-clippy --bin clippy-driver
347-
cargo build --release --bin cargo-clippy --bin clippy-driver -Zunstable-options --out-dir $(rustc --print=sysroot)/bin
348-
- name: Install Protoc
349-
uses: arduino/setup-protoc@v1
350-
with:
351-
repo-token: ${{ secrets.GITHUB_TOKEN }}
352-
- name: Run Clippy with the disallowed-from-async lint
353-
run: make nightly-lint
354335
check-msrv:
355336
name: check-msrv
356337
runs-on: ubuntu-latest
@@ -360,7 +341,7 @@ jobs:
360341
- name: Install Rust @ MSRV (${{ needs.extract-msrv.outputs.MSRV }})
361342
run: rustup override set ${{ needs.extract-msrv.outputs.MSRV }}
362343
- name: Install Protoc
363-
uses: arduino/setup-protoc@v1
344+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
364345
with:
365346
repo-token: ${{ secrets.GITHUB_TOKEN }}
366347
- name: Run cargo check
@@ -404,7 +385,7 @@ jobs:
404385
# NOTE: cargo-udeps version is pinned until this issue is resolved:
405386
# https://github.com/est31/cargo-udeps/issues/135
406387
- name: Install Protoc
407-
uses: arduino/setup-protoc@v1
388+
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
408389
with:
409390
repo-token: ${{ secrets.GITHUB_TOKEN }}
410391
- name: Install cargo-udeps

0 commit comments

Comments
 (0)