Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade libp2p to v0.47.0 #3491

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
64023d9
version upgrades
divagant-martian Aug 23, 2022
01b6b62
type renames to aid in refactor
divagant-martian Aug 23, 2022
289a9d0
remove network behaviour implementation of old behaviour, move swarm …
divagant-martian Aug 23, 2022
7de09e3
fix most compilation issues
divagant-martian Aug 23, 2022
5452541
create network
divagant-martian Aug 23, 2022
68132a0
add start function
divagant-martian Aug 24, 2022
ed4d820
poll without event queueing
divagant-martian Aug 24, 2022
37e6f5e
file renaming
divagant-martian Aug 24, 2022
8e7fcd3
fix most compilation issues in the network crate
divagant-martian Aug 24, 2022
53d9159
use better name for Old BehaviourEvent
divagant-martian Aug 24, 2022
bb16b07
get right pollling the network
divagant-martian Aug 24, 2022
4ad7131
fix pm tests
divagant-martian Aug 24, 2022
1a76514
revert allowing pm tests in debug
divagant-martian Aug 24, 2022
43b2eda
further cleanup
divagant-martian Aug 24, 2022
d427348
fmt and clippy for the day
divagant-martian Aug 24, 2022
0f972aa
more fmt
divagant-martian Aug 24, 2022
bcbd9d1
update installation guide
divagant-martian Aug 25, 2022
812f34e
install protoc for windows in CI using installation guide commands
divagant-martian Aug 25, 2022
421fe09
only windows tests for quick CI feedback
divagant-martian Aug 25, 2022
ca5bf55
remove more workflows
divagant-martian Aug 25, 2022
3843eaf
enable fmt
divagant-martian Aug 25, 2022
df17e61
enable debug tests with protoc
divagant-martian Aug 25, 2022
9b999a5
Revert "remove more workflows"
divagant-martian Aug 25, 2022
fd3b435
add protoc step to Dockerfile and CI
divagant-martian Aug 25, 2022
1993263
update instalation steps in ubuntu
divagant-martian Aug 25, 2022
9538870
poll swarm in loop
divagant-martian Aug 26, 2022
825ff6f
fixes
divagant-martian Aug 26, 2022
1f6db5d
code reorg
divagant-martian Aug 26, 2022
2d04c87
remove advisory ignore
divagant-martian Aug 30, 2022
01cf480
update diff
divagant-martian Sep 5, 2022
1e5694f
add docs to the Network's start function
divagant-martian Sep 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/local-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:

- name: Get latest version of stable Rust
run: rustup update stable

- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: npm install ganache@latest --global

Expand Down
92 changes: 63 additions & 29 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run tests in release
Expand All @@ -68,7 +70,7 @@ jobs:
node-version: '14'
- name: Install windows build tools
run: |
choco install python visualstudio2019-workload-vctools -y
choco install python protoc visualstudio2019-workload-vctools -y
npm config set msvs_version 2019
- name: Install ganache
run: npm install -g ganache --loglevel verbose
Expand All @@ -90,6 +92,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run beacon_chain tests for all known forks
run: make test-beacon-chain
op-pool-tests:
Expand All @@ -100,6 +104,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run operation_pool tests for all known forks
run: make test-op-pool
slasher-tests:
Expand All @@ -120,6 +126,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run tests in debug
Expand All @@ -132,6 +140,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run state_transition_vectors in release.
run: make run-state-transition-tests
ef-tests-ubuntu:
Expand All @@ -142,6 +152,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run consensus-spec-tests with blst, milagro and fake_crypto
run: make test-ef
dockerfile-ubuntu:
Expand All @@ -164,6 +176,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run the beacon chain sim that starts from an eth1 contract
Expand All @@ -176,6 +190,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run the beacon chain sim and go through the merge transition
Expand All @@ -188,6 +204,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run the beacon chain sim without an eth1 connection
Expand All @@ -197,35 +215,39 @@ jobs:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install ganache
run: sudo npm install -g ganache
- name: Run the syncing simulator
run: cargo run --release --bin simulator syncing-sim
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Run the syncing simulator
run: cargo run --release --bin simulator syncing-sim
doppelganger-protection-test:
name: doppelganger-protection-test
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install ganache
run: sudo npm install -g ganache
- name: Install lighthouse and lcli
run: |
make
make install-lcli
- name: Run the doppelganger protection success test script
run: |
cd scripts/tests
./doppelganger_protection.sh success
- name: Run the doppelganger protection failure test script
run: |
cd scripts/tests
./doppelganger_protection.sh failure
name: doppelganger-protection-test
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install ganache
run: sudo npm install -g ganache
- name: Install lighthouse and lcli
run: |
make
make install-lcli
- name: Run the doppelganger protection success test script
run: |
cd scripts/tests
./doppelganger_protection.sh success
- name: Run the doppelganger protection failure test script
run: |
cd scripts/tests
./doppelganger_protection.sh failure
execution-engine-integration-ubuntu:
name: execution-engine-integration-ubuntu
runs-on: ubuntu-latest
Expand All @@ -240,6 +262,8 @@ jobs:
dotnet-version: '6.0.201'
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run exec engine integration tests in release
run: make test-exec-engine
check-benchmarks:
Expand All @@ -250,6 +274,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Typecheck benchmark code without running it
run: make check-benches
check-consensus:
Expand All @@ -270,6 +296,8 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Lint code for quality and style with Clippy
run: make lint
- name: Certify Cargo.lock freshness
Expand All @@ -289,6 +317,8 @@ jobs:
git checkout 31a49666ccfcd7963b63345d6ce757c373f22c2a
cargo build --release --bin cargo-clippy --bin clippy-driver
cargo build --release --bin cargo-clippy --bin clippy-driver -Zunstable-options --out-dir $(rustc --print=sysroot)/bin
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run Clippy with the disallowed-from-async lint
run: make nightly-lint
check-msrv:
Expand All @@ -299,6 +329,8 @@ jobs:
- uses: actions/checkout@v1
- name: Install Rust @ MSRV (${{ needs.extract-msrv.outputs.MSRV }})
run: rustup override set ${{ needs.extract-msrv.outputs.MSRV }}
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Run cargo check
run: cargo check --workspace
arbitrary-check:
Expand Down Expand Up @@ -339,6 +371,8 @@ jobs:
run: rustup toolchain install $PINNED_NIGHTLY
# NOTE: cargo-udeps version is pinned until this issue is resolved:
# https://github.com/est31/cargo-udeps/issues/135
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install cargo-udeps
run: cargo install cargo-udeps --locked --force --version 0.1.30
- name: Create Cargo config dir
Expand Down
Loading