Skip to content

Commit 4c9ec78

Browse files
committed
Merge remote-tracking branch 'original/unstable' into t-7245
2 parents ef39bc3 + 08882c6 commit 4c9ec78

File tree

777 files changed

+34153
-48990
lines changed

Some content is hidden

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

777 files changed

+34153
-48990
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/beacon_node/network/ @jxs
2+
/beacon_node/lighthouse_network/ @jxs

.github/workflows/book.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build-and-upload-to-s3:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
1717

.github/workflows/test-suite.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ env:
1919
# Disable debug info (see https://github.com/sigp/lighthouse/issues/4005)
2020
RUSTFLAGS: "-D warnings -C debuginfo=0"
2121
# Prevent Github API rate limiting.
22-
LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
# NOTE: this token is a personal access token on Jimmy's account due to the default GITHUB_TOKEN
23+
# not having access to other repositories. We should eventually devise a better solution here.
24+
LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.LIGHTHOUSE_GITHUB_TOKEN }}
2325
# Enable self-hosted runners for the sigp repo only.
2426
SELF_HOSTED_RUNNERS: ${{ github.repository == 'sigp/lighthouse' }}
25-
# Self-hosted runners need to reference a different host for `./watch` tests.
26-
WATCH_HOST: ${{ github.repository == 'sigp/lighthouse' && 'host.docker.internal' || 'localhost' }}
2727
# Disable incremental compilation
2828
CARGO_INCREMENTAL: 0
2929
# Enable portable to prevent issues with caching `blst` for the wrong CPU type
@@ -65,8 +65,7 @@ jobs:
6565
- name: Install dependencies
6666
run: apt update && apt install -y cmake libclang-dev
6767
- name: Check for deadlocks
68-
run: |
69-
cargo lockbud -k deadlock -b -l tokio_util
68+
run: ./scripts/ci/check-lockbud.sh
7069

7170
target-branch-check:
7271
name: target-branch-check
@@ -350,7 +349,7 @@ jobs:
350349
- name: Check formatting with cargo fmt
351350
run: make cargo-fmt
352351
- name: Lint code for quality and style with Clippy
353-
run: make lint
352+
run: make lint-full
354353
- name: Certify Cargo.lock freshness
355354
run: git diff --exit-code Cargo.lock
356355
- name: Typecheck benchmark code without running it
@@ -363,6 +362,8 @@ jobs:
363362
run: CARGO_HOME=$(readlink -f $HOME) make vendor
364363
- name: Markdown-linter
365364
run: make mdlint
365+
- name: Spell-check
366+
uses: rojopolis/spellcheck-github-actions@v0
366367
check-msrv:
367368
name: check-msrv
368369
runs-on: ubuntu-latest
@@ -390,6 +391,10 @@ jobs:
390391
cache: false
391392
env:
392393
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
394+
- name: Fetch libssl1.1
395+
run: wget https://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
396+
- name: Install libssl1.1
397+
run: sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
393398
- name: Create Cargo config dir
394399
run: mkdir -p .cargo
395400
- name: Install custom Cargo config
@@ -426,6 +431,21 @@ jobs:
426431
cache-target: release
427432
- name: Run Makefile to trigger the bash script
428433
run: make cli-local
434+
cargo-sort:
435+
name: cargo-sort
436+
needs: [check-labels]
437+
if: needs.check-labels.outputs.skip_ci != 'true'
438+
runs-on: ubuntu-latest
439+
steps:
440+
- uses: actions/checkout@v4
441+
- name: Get latest version of stable Rust
442+
uses: moonrepo/setup-rust@v1
443+
with:
444+
channel: stable
445+
cache-target: release
446+
bins: cargo-sort
447+
- name: Run cargo sort to check if Cargo.toml files are sorted
448+
run: cargo sort --check --workspace
429449
# This job succeeds ONLY IF all others succeed. It is used by the merge queue to determine whether
430450
# a PR is safe to merge. New jobs should be added here.
431451
test-suite-success:
@@ -453,6 +473,7 @@ jobs:
453473
'compile-with-beta-compiler',
454474
'cli-check',
455475
'lockbud',
476+
'cargo-sort',
456477
]
457478
steps:
458479
- uses: actions/checkout@v4

.spellcheck.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
matrix:
2+
- name: Markdown
3+
sources:
4+
- './book/**/*.md'
5+
- 'README.md'
6+
- 'CONTRIBUTING.md'
7+
- 'SECURITY.md'
8+
- './scripts/local_testnet/README.md'
9+
default_encoding: utf-8
10+
aspell:
11+
lang: en
12+
dictionary:
13+
wordlists:
14+
- wordlist.txt
15+
encoding: utf-8
16+
pipeline:
17+
- pyspelling.filters.url:
18+
- pyspelling.filters.markdown:
19+
markdown_extensions:
20+
- pymdownx.superfences:
21+
- pymdownx.highlight:
22+
- pymdownx.striphtml:
23+
- pymdownx.magiclink:
24+
- pyspelling.filters.html:
25+
comments: false
26+
ignores:
27+
- code
28+
- pre
29+
- pyspelling.filters.context:
30+
context_visible_first: true
31+
delimiters:
32+
# Ignore hex strings
33+
- open: '0x[a-fA-F0-9]'
34+
close: '[^a-fA-F0-9]'
35+

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ steps:
8585
5. Commit your changes and push them to your fork with `$ git push origin
8686
your_feature_name`.
8787
6. Go to your fork on github.com and use the web interface to create a pull
88-
request into the sigp/lighthouse repo.
88+
request into the sigp/lighthouse repository.
8989

9090
From there, the repository maintainers will review the PR and either accept it
9191
or provide some constructive feedback.

0 commit comments

Comments
 (0)