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 to Libp2p 0.52 #4087

Closed
wants to merge 71 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
7dd0ea0
update libp2p to v0.51.1
divagant-martian Mar 14, 2023
f3693c2
Revert "Ensure protoc is installed for release CI (#3621)"
divagant-martian Mar 14, 2023
b700771
Revert "Merge pull request #3546 from divagant-martian/cross-update"
divagant-martian Mar 14, 2023
28e02c4
remove protobuf installation ops and instructions
divagant-martian Mar 14, 2023
672807b
update path for ConnectionId
divagant-martian Mar 14, 2023
2cbd05a
update deprecated type aliases
divagant-martian Mar 15, 2023
77681d2
use new identity top level crate
divagant-martian Mar 15, 2023
d273f1b
fix bandwidth logging code
divagant-martian Mar 15, 2023
d203526
update most of the handler required changes
divagant-martian Mar 15, 2023
0e87da9
update behaviour function names in the rpc
divagant-martian Mar 15, 2023
d213b6a
weird change needed for the NetworkBehaviour macro to work
divagant-martian Mar 15, 2023
07b711b
update prometheus client
divagant-martian Mar 15, 2023
ec8fc7d
fix updates to the rpc handler
divagant-martian Mar 15, 2023
26d24ff
partially update the peer manager's network behaviour code
divagant-martian Mar 15, 2023
d004913
fix generics over NetworkBehaviourAction
divagant-martian Mar 15, 2023
51445b5
fix rpc network behaviour
divagant-martian Mar 15, 2023
a596d54
fix connection event buffer limits
divagant-martian Mar 15, 2023
a5c2e72
fix discovery and rpc network behaviour impls
divagant-martian Mar 15, 2023
05ea5e6
use utf encoding in prometheus to align with open metrics format
divagant-martian Mar 15, 2023
d425cb5
remove unnecesary code
divagant-martian Mar 16, 2023
b76e3b6
update libp2p-identity to latest release
divagant-martian Mar 20, 2023
823828a
fix warnings where the fix does not bring an unnecesary clone
divagant-martian Mar 20, 2023
c7798b3
partially address ConnectionLimits deprecation in favor of connection…
divagant-martian Apr 13, 2023
b524150
allow necessary deprecated variant
divagant-martian Apr 14, 2023
9d3e0a2
Merge branch 'unstable' into libp2p-0.51.3
divagant-martian Jun 5, 2023
1245fde
fix import in tests
divagant-martian Jun 5, 2023
f67bfbc
Merge branch 'unstable' into libp2p-0.51.1
divagant-martian Jun 10, 2023
283982e
prepare for 0.52 upgrade
divagant-martian Jun 10, 2023
c413c5a
replace NetworkBehaviourAction with ToSwarm
divagant-martian Jun 10, 2023
894cb77
deprecation warns
divagant-martian Jun 10, 2023
40aa0d9
annoying stuff
divagant-martian Jun 14, 2023
a0b2cc2
wip
divagant-martian Jun 15, 2023
2fa23a0
need to stop coding tired
divagant-martian Jun 16, 2023
b933fa3
Merge branch 'unstable' into libp2p-0.51.1
divagant-martian Jun 19, 2023
e5570fd
Merge branch 'unstable' into libp2p-0.51.1
divagant-martian Jun 19, 2023
51c2148
Merge branch 'unstable' into libp2p-0.51.1
divagant-martian Jun 23, 2023
40d0db1
address deprecation warning
divagant-martian Jun 23, 2023
d121bc9
address deprecation warning
divagant-martian Jun 23, 2023
d66835d
temp fix errors, see warns
divagant-martian Jun 23, 2023
e84095b
move libp2p a bit up to deal with deprecation warnings that had no wa…
divagant-martian Jun 23, 2023
9a4dde9
use Into to get public key
divagant-martian Jun 23, 2023
288bfdb
keypair clones everywhere
divagant-martian Jun 23, 2023
bb360ee
use new function names
divagant-martian Jun 23, 2023
96afe89
more deprecation warns
divagant-martian Jun 23, 2023
b433d7f
more deprecation warns
divagant-martian Jun 23, 2023
9ae2f55
follow suggested code style
divagant-martian Jun 23, 2023
007e6db
follow suggested code style
divagant-martian Jun 23, 2023
9e47c60
Merge remote-tracking branch 'origin/libp2p-0.51.1' into libp2p-0.51.1
divagant-martian Jun 23, 2023
c97c5ff
follow suggested code style
divagant-martian Jun 23, 2023
e01e17c
incrementally addressing deprecations
divagant-martian Jun 23, 2023
9949dfa
use gossipsub types from the root
divagant-martian Jun 23, 2023
fcbae56
remove ProtocolName
divagant-martian Jun 23, 2023
0ce49bd
no deprecations checkpoint
divagant-martian Jun 23, 2023
06b9da1
remove handling of error that was dead code in libp2p
divagant-martian Jun 23, 2023
0f9f012
remove deprecated ban reports
divagant-martian Jun 23, 2023
3a09b5d
placeholders everywhere
divagant-martian Jun 23, 2023
ce2c34b
address change to StreamUpgradeError
divagant-martian Jun 24, 2023
0102ee7
address change to StreamUpgradeError
divagant-martian Jun 24, 2023
4ab0ef4
Merge remote-tracking branch 'origin/libp2p-0.51.1' into libp2p-0.51.1
divagant-martian Jun 24, 2023
d537025
change to Stream
divagant-martian Jun 24, 2023
1a2fe18
so many renamings omg
divagant-martian Jun 24, 2023
0e509e5
rename `Custom` variant to `NotifyBehaviour`
divagant-martian Jun 24, 2023
9c4b429
use new event field
divagant-martian Jun 24, 2023
c95c5c5
add new events reporting addresses
divagant-martian Jun 24, 2023
165f2d2
checkpoint
divagant-martian Jun 24, 2023
73947b5
change identity path
divagant-martian Jun 24, 2023
4fa7762
multiaddr can no longer produce invalid peer ids
divagant-martian Jun 24, 2023
1dd0420
checkpoint
divagant-martian Jun 24, 2023
eeb9232
v0.52. Finally
divagant-martian Jun 24, 2023
e62db42
cargo update
divagant-martian Jun 24, 2023
44e4e90
Merge branch 'unstable' into libp2p-0.51.1
divagant-martian Jun 24, 2023
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
4 changes: 0 additions & 4 deletions .github/workflows/local-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:

- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install geth (ubuntu)
if: matrix.os == 'ubuntu-22.04'
run: |
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,6 @@ jobs:
if: startsWith(matrix.arch, 'x86_64-windows')
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV

# ==============================
# Windows & Mac dependencies
# ==============================
- name: Install Protoc
if: contains(matrix.arch, 'darwin') || contains(matrix.arch, 'windows')
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

# ==============================
# Builds
# ==============================
Expand Down
72 changes: 2 additions & 70 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Run tests in release
Expand All @@ -76,7 +72,7 @@ jobs:
node-version: '14'
- name: Install windows build tools
run: |
choco install python protoc visualstudio2019-workload-vctools -y
choco install python visualstudio2019-workload-vctools -y
npm config set msvs_version 2019
- name: Install anvil
# Extra feature to work around https://github.com/foundry-rs/foundry/issues/5115
Expand All @@ -99,10 +95,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run beacon_chain tests for all known forks
run: make test-beacon-chain
op-pool-tests:
Expand All @@ -113,10 +105,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run operation_pool tests for all known forks
run: make test-op-pool
slasher-tests:
Expand All @@ -137,10 +125,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Run tests in debug
Expand All @@ -153,10 +137,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run state_transition_vectors in release.
run: make run-state-transition-tests
ef-tests-ubuntu:
Expand All @@ -167,10 +147,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run consensus-spec-tests with blst, milagro and fake_crypto
run: make test-ef
dockerfile-ubuntu:
Expand All @@ -193,10 +169,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Run the beacon chain sim that starts from an eth1 contract
Expand All @@ -209,10 +181,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Run the beacon chain sim and go through the merge transition
Expand All @@ -225,10 +193,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the beacon chain sim without an eth1 connection
run: cargo run --release --bin simulator no-eth1-sim
syncing-simulator-ubuntu:
Expand All @@ -239,10 +203,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Run the syncing simulator
Expand All @@ -255,10 +215,6 @@ jobs:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install geth
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
Expand Down Expand Up @@ -290,10 +246,6 @@ jobs:
dotnet-version: '6.0.201'
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run exec engine integration tests in release
run: make test-exec-engine
check-benchmarks:
Expand All @@ -303,25 +255,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Typecheck benchmark code without running it
run: make check-benches
clippy:
name: clippy
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint code for quality and style with Clippy
run: make lint
- name: Certify Cargo.lock freshness
Expand All @@ -334,10 +274,6 @@ jobs:
- uses: actions/checkout@v3
- 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@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run cargo check
run: cargo check --workspace
arbitrary-check:
Expand Down Expand Up @@ -376,10 +312,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust (${{ env.PINNED_NIGHTLY }})
run: rustup toolchain install $PINNED_NIGHTLY
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install cargo-udeps
run: cargo install cargo-udeps --locked --force
- name: Create Cargo config dir
Expand All @@ -401,4 +333,4 @@ jobs:
- name: Use Rust beta
run: rustup override set beta
- name: Run make
run: make
run: make
Loading