Skip to content

Commit d322272

Browse files
committed
Merge branch 'master' into add-sr25519-support
* master: (86 commits) deps: update webrtc to 0.12.0 fix(gossip): correct clippy warning chore(deps): bump prometheus-client chore: replace deprecated clap attributes chore(deps): bump webpki chore(ci): allow triggering manually chore(examples): fix ipfs-kad example usage chore(ci): cargo deny, ignore RUSTSEC-2024-0436 chore(peer-store): use workspace edition chore: update igd-next to 0.16.1 chore: remove unreachable_patterns lint according to note feat(rz): emit `NewExternalAddrOfPeer` when discovering peers deps: bump Swatinem/rust-cache from 2.7.7 to 2.7.8 fix(misc): deprecated #[clap] attributes with #[arg] and #[command] chore(deps): bump github.com/quic-go/quic-go chore(deps): bump golang.org/x/net chore(ci): update golang version for wasm tests fix: deprecated #[clap] attributes with #[arg] and #[command] fix(gossipsub): race condition for messages already on the network docs(request-response): update docs about peer address management ...
2 parents e26cd4e + f4322c5 commit d322272

274 files changed

Lines changed: 4124 additions & 2352 deletions

File tree

Some content is hidden

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

.github/mergify.yml

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,30 @@
1-
defaults:
2-
actions:
3-
queue:
4-
method: squash
5-
commit_message_template: |
6-
{{ title }}
7-
8-
{{ body | get_section("## Description", "") }}
9-
10-
Pull-Request: #{{ number }}.
11-
12-
{{ body | get_section("## Attributions", "") }}
13-
141
pull_request_rules:
152
- name: Ask to resolve conflict
163
conditions:
174
- conflict
185
- -author=dependabot[bot]
196
- or:
20-
- -draft # Don't report conflicts on regular draft.
21-
- and: # Do report conflicts on draft that are scheduled for the next major release.
22-
- draft
23-
- milestone~=v[0-9]\.[0-9]{2}
7+
- -draft # Don't report conflicts on regular draft.
8+
- and: # Do report conflicts on draft that are scheduled for the next major release.
9+
- draft
10+
- milestone~=v[0-9]\.[0-9]{2}
2411
actions:
2512
comment:
26-
message: This pull request has merge conflicts. Could you please resolve them @{{author}}? 🙏
27-
28-
- name: Add to merge queue
29-
conditions:
30-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
31-
- label=send-it
32-
- base=master
33-
actions:
34-
queue:
35-
name: default
36-
37-
# Adds the Pr to the batch queue, so that we can run the interop tests. See the `external_prs` queue for more info.
38-
- name: Add to batch merge queue
39-
conditions:
40-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
41-
- label=send-it-batch
42-
- base=master
43-
actions:
44-
queue:
45-
name: external_prs
46-
47-
- name: Add approved dependabot PRs to merge queue
48-
conditions:
49-
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
50-
- author=dependabot[bot]
51-
- base=master
52-
actions:
53-
queue:
54-
name: default
13+
message: This pull request has merge conflicts. Could you please resolve them
14+
@{{author}}? 🙏
5515

5616
- name: Remove reviews on updates after PR is queued for merging
5717
conditions:
5818
- base=master
5919
- label=send-it
6020
- author!=@libp2p/rust-libp2p-maintainers
6121
- author!=dependabot[bot]
22+
# Do not remove approvals if last commit was a merge of master into the branch, required for the PR to be merged.
23+
- commits[-1].author!=@libp2p/rust-libp2p-maintainers
6224
actions:
6325
dismiss_reviews:
64-
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
26+
message: Approvals have been dismissed because the PR was updated after the
27+
`send-it` label was applied.
6528
changes_requested: false
6629

6730
- name: Approve trivial maintainer PRs
@@ -83,11 +46,33 @@ pull_request_rules:
8346
review:
8447
type: APPROVE
8548

49+
- name: Add approved dependabot PRs to merge queue
50+
conditions:
51+
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
52+
- author=dependabot[bot]
53+
- base=master
54+
actions:
55+
queue:
56+
57+
- name: Add send-it labeled PRs to merge queue
58+
conditions:
59+
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
60+
- base=master
61+
- label=send-it
62+
actions:
63+
queue:
64+
8665
queue_rules:
8766
- name: default
88-
conditions: []
89-
# External PR's don't have access to secrets and variables, therefore they don't run the interop tests.
90-
# using a batch queue allows to circumvent that as mergify creates it from an internal branch.
91-
- name: external_prs
92-
conditions: []
93-
batch_size: 1
67+
queue_conditions:
68+
- base=master
69+
merge_conditions: []
70+
merge_method: squash
71+
commit_message_template: |
72+
{{ title }}
73+
74+
{{ body | get_section("## Description", "") }}
75+
76+
Pull-Request: #{{ number }}.
77+
78+
{{ body | get_section("## Attributions", "") }}

.github/workflows/cache-factory.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: dtolnay/rust-toolchain@stable
2424

25-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
25+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
2626
with:
2727
shared-key: stable-cache
2828

.github/workflows/cargo-audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: cargo audit
22
on:
33
schedule:
44
- cron: '0 0 * * *'
5+
workflow_dispatch:
56

67
jobs:
78
audit:

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
workflow_dispatch:
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
@@ -40,7 +41,7 @@ jobs:
4041

4142
- uses: dtolnay/rust-toolchain@stable
4243

43-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
44+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
4445
with:
4546
shared-key: stable-cache
4647
save-if: false
@@ -70,7 +71,7 @@ jobs:
7071
- name: Enforce version in `workspace.dependencies` matches the latest version
7172
if: env.CRATE != 'libp2p'
7273
run: |
73-
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml)
74+
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" -r --file ./Cargo.toml)
7475
7576
echo "Package version: $CRATE_VERSION";
7677
echo "Specified version: $SPECIFIED_VERSION";
@@ -133,7 +134,7 @@ jobs:
133134
os: ubuntu-latest
134135
- target: "wasm32-unknown-emscripten"
135136
os: ubuntu-latest
136-
- target: "wasm32-wasi"
137+
- target: "wasm32-wasip1"
137138
os: ubuntu-latest
138139
- target: "x86_64-apple-darwin"
139140
os: macos-latest
@@ -149,7 +150,7 @@ jobs:
149150

150151
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
151152

152-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
153+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
153154
with:
154155
key: ${{ matrix.target }}
155156
save-if: ${{ github.ref == 'refs/heads/master' }}
@@ -174,7 +175,7 @@ jobs:
174175

175176
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
176177

177-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
178+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
178179
with:
179180
save-if: ${{ github.ref == 'refs/heads/master' }}
180181

@@ -195,7 +196,7 @@ jobs:
195196

196197
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
197198

198-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
199+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
199200
with:
200201
key: ${{ matrix.features }}
201202
save-if: ${{ github.ref == 'refs/heads/master' }}
@@ -212,7 +213,7 @@ jobs:
212213

213214
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
214215

215-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
216+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
216217
with:
217218
save-if: ${{ github.ref == 'refs/heads/master' }}
218219

@@ -238,7 +239,7 @@ jobs:
238239

239240
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
240241

241-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
242+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
242243
with:
243244
save-if: ${{ github.ref == 'refs/heads/master' }}
244245

@@ -254,7 +255,7 @@ jobs:
254255

255256
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
256257

257-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
258+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
258259
with:
259260
save-if: ${{ github.ref == 'refs/heads/master' }}
260261

@@ -273,7 +274,7 @@ jobs:
273274

274275
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0
275276

276-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
277+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
277278
with:
278279
shared-key: stable-cache
279280
save-if: false
@@ -308,7 +309,7 @@ jobs:
308309
RUSTFLAGS: ''
309310
steps:
310311
- uses: actions/checkout@v4
311-
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.36.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
312+
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.39.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
312313
shell: bash
313314
- uses: obi1kenobi/cargo-semver-checks-action@7272cc2caa468d3e009a2b0a9cc366839348237b # v2.6
314315

@@ -365,7 +366,7 @@ jobs:
365366
steps:
366367
- uses: actions/checkout@v4
367368

368-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
369+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
369370

370371
- run: cargo install --version 0.10.0 pb-rs --locked
371372

@@ -391,7 +392,7 @@ jobs:
391392
runs-on: ubuntu-latest
392393
steps:
393394
- uses: actions/checkout@v4
394-
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
395+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
395396
- run: cargo metadata --locked --format-version=1 > /dev/null
396397

397398
cargo-deny:

.github/workflows/interop-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: libp2p/test-plans/.github/actions/run-transport-interop-test@master
3636
with:
3737
test-filter: ${{ matrix.flavour }}-rust-libp2p-head
38+
test-results-suffix: ${{matrix.flavour}}
3839
extra-versions: ${{ github.workspace }}/interop-tests/${{ matrix.flavour }}-ping-version.json
3940
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
4041
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)