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

build(deps): update linkerd/dev from v43 to v44 #3420

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ FROM ghcr.io/linkerd/dev:${DEV_VERSION}
RUN scurl https://run.linkerd.io/install-edge | sh && \
mkdir -p "$HOME/bin" && ln -s "$HOME/.linkerd2/bin/linkerd" "$HOME/bin/linkerd"

ENV RUSTFLAGS="--cfg tokio_unstable"

# XXX(ver) This doesn't currently work, because it puts
# /usr/local/cargo/registry into a weird state with regard to permissions.
#RUN rustup toolchain install --profile=minimal nightly
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
"DEV_VERSION": "v43",
"DEV_VERSION": "v44",
"http_proxy": "${localEnv:http_proxy}",
"https_proxy": "${localEnv:https_proxy}"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
container: ghcr.io/linkerd/dev:v44-rust
timeout-minutes: 20
continue-on-error: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: docker://ghcr.io/linkerd/dev:v43-rust
image: docker://ghcr.io/linkerd/dev:v44-rust
options: --security-opt seccomp=unconfined # 🤷
env:
CXX: "/usr/bin/clang++-14"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
list-changed:
timeout-minutes: 3
runs-on: ubuntu-latest
container: docker://rust:1.76.0
container: docker://rust:1.83.0
steps:
- run: apt update && apt install -y jo
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Expand All @@ -48,7 +48,7 @@ jobs:
needs: [list-changed]
timeout-minutes: 40
runs-on: ubuntu-latest
container: docker://rust:1.76.0
container: docker://rust:1.83.0
strategy:
matrix:
dir: ${{ fromJson(needs.list-changed.outputs.dirs) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
container: ghcr.io/linkerd/dev:v44-rust
timeout-minutes: 20
continue-on-error: true
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
if: needs.meta.outputs.actions_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: linkerd/dev/actions/setup-tools@v44
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: just action-lint
- run: just action-dev-check
Expand All @@ -85,7 +85,7 @@ jobs:
needs: meta
if: needs.meta.outputs.cargo_changed == 'true' || needs.meta.outputs.rust_changed == 'true'
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
container: ghcr.io/linkerd/dev:v44-rust
permissions:
contents: read
timeout-minutes: 20
Expand All @@ -111,7 +111,7 @@ jobs:
if: needs.meta.outputs.cargo_changed == 'true'
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
container: ghcr.io/linkerd/dev:v44-rust
strategy:
matrix:
crate: ${{ fromJson(needs.meta.outputs.cargo_crates) }}
Expand All @@ -130,7 +130,7 @@ jobs:
env:
WAIT_TIMEOUT: 2m
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: linkerd/dev/actions/setup-tools@v44
- name: scurl https://run.linkerd.io/install-edge | sh
run: |
scurl https://run.linkerd.io/install-edge | sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
continue-on-error: ${{ needs.meta.outputs.publish != 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 40
container: docker://ghcr.io/linkerd/dev:v43-rust-musl
container: docker://ghcr.io/linkerd/dev:v44-rust-musl
env:
LINKERD2_PROXY_VENDOR: ${{ github.repository_owner }}
LINKERD2_PROXY_VERSION: ${{ needs.meta.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: linkerd/dev/actions/setup-tools@v44
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: just sh-lint
4 changes: 2 additions & 2 deletions .github/workflows/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
jobs:
devcontainer:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
container: ghcr.io/linkerd/dev:v44-rust
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand All @@ -37,7 +37,7 @@ jobs:
workflows:
runs-on: ubuntu-latest
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: linkerd/dev/actions/setup-tools@v44
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4

[[package]]
name = "addr2line"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This is intended **DEVELOPMENT ONLY**, i.e. so that proxy developers can
# easily test the proxy in the context of the larger `linkerd2` project.

ARG RUST_IMAGE=ghcr.io/linkerd/dev:v43-rust
ARG RUST_IMAGE=ghcr.io/linkerd/dev:v44-rust

# Use an arbitrary ~recent edge release image to get the proxy
# identity-initializing and linkerd-await wrappers.
Expand Down
28 changes: 2 additions & 26 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[graph]
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "aarch64-unknown-linux-gnu" },
Expand All @@ -7,10 +8,6 @@ targets = [
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "deny"
notice = "warn"
ignore = []

[licenses]
Expand All @@ -21,12 +18,7 @@ allow = [
"ISC",
"MIT",
"Unicode-3.0",
"Unicode-DFS-2016",
]
deny = []
copyleft = "deny"
allow-osi-fsf-free = "neither"
default = "deny"
# Ignore local workspace license values for unpublished crates.
private = { ignore = true }
confidence-threshold = 0.8
Expand Down Expand Up @@ -60,18 +52,10 @@ deny = [
{ name = "webpki" },
]
skip = [
# The proc-macro ecosystem is in the middle of a migration from `syn` v1 to
# `syn` v2. Allow both versions to coexist peacefully for now.
#
# Since `syn` is used by proc-macros (executed at compile time), duplicate
# versions won't have an impact on the final binary size.
{ name = "syn" },
# `tonic` v0.6 depends on `bitflags` v1.x, while `boring-sys` depends on
# `bitflags` v2.x. Allow both versions to coexist peacefully for now.
{ name = "bitflags", version = "1" },
# `linkerd-trace-context`, `rustls-pemfile` and `tonic` depend on `base64`
# v0.13.1 while `rcgen` depends on v0.21.5
{ name = "base64" },
{ name = "bitflags", version = "1" },
# https://github.com/hawkw/matchers/pull/4
{ name = "regex-automata", version = "0.1" },
{ name = "regex-syntax", version = "0.6" },
Expand All @@ -82,17 +66,9 @@ skip = [
{ name = "hashbrown", version = "0.12" },
]
skip-tree = [
# right now we have a mix of versions of this crate in the ecosystem
# procfs uses 0.36.14, tempfile uses 0.37.4
{ name = "rustix" },
# Hyper v0.14 depends on an older socket2 version.
{ name = "socket2" },
]

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]

[sources.allow-org]
github = ["linkerd"]
3 changes: 3 additions & 0 deletions linkerd/addr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ http = "0.2"
ipnet = "2.10"
linkerd-dns-name = { path = "../dns/name" }
thiserror = "1"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
2 changes: 1 addition & 1 deletion linkerd/app/core/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl FmtLabels for Direction {
}
}

impl<'a> FmtLabels for Authority<'a> {
impl FmtLabels for Authority<'_> {
fn fmt_labels(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "authority=\"{}\"", self.0)
}
Expand Down
4 changes: 2 additions & 2 deletions linkerd/app/core/src/transport/labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'t> From<&'t tls::ConditionalServerTls> for TlsAccept<'t> {
}
}

impl<'t> FmtLabels for TlsAccept<'t> {
impl FmtLabels for TlsAccept<'_> {
fn fmt_labels(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self.0 {
Conditional::None(tls::NoServerTls::Disabled) => {
Expand Down Expand Up @@ -148,7 +148,7 @@ impl<'t> From<&'t tls::ConditionalClientTls> for TlsConnect<'t> {
}
}

impl<'t> FmtLabels for TlsConnect<'t> {
impl FmtLabels for TlsConnect<'_> {
fn fmt_labels(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self.0 {
Conditional::None(tls::NoClientTls::Disabled) => {
Expand Down
3 changes: 3 additions & 0 deletions linkerd/app/inbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ linkerd-proxy-server-policy = { path = "../../proxy/server-policy", features = [
linkerd-tracing = { path = "../../tracing", features = ["ansi"] }
tokio = { version = "1", features = ["full", "macros"] }
tokio-test = "0.4"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
2 changes: 1 addition & 1 deletion linkerd/app/integration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
macro_rules! assert_eventually {
($cond:expr, retries: $retries:expr, $($arg:tt)+) => {
{
use std::{env, u64};
use std::{env};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: unnecessary brackets

use std::str::FromStr;
use tokio::time::{Instant, Duration};
use tracing::Instrument as _;
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/integration/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ impl MetricMatch {
}

pub async fn assert_in(&self, client: &crate::client::Client) {
use std::env;
use std::str::FromStr;
use std::{env, u64};
use tokio::time::{Duration, Instant};
use tracing::Instrument as _;
const MAX_RETRIES: usize = 5;
Expand Down
5 changes: 5 additions & 0 deletions linkerd/app/outbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ allow-loopback = []
test-subscriber = []
test-util = ["linkerd-app-test", "linkerd-meshtls-rustls/test-util"]

prometheus-client-rust-242 = [] # TODO
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah--we are using this marker feature to disable some test assertions. In newer rust versions, we have to declare all of the features in the cargo.toml...


[dependencies]
ahash = "0.8"
bytes = "1"
Expand Down Expand Up @@ -67,3 +69,6 @@ linkerd-meshtls-rustls = { path = "../../meshtls/rustls", features = [
] }
linkerd-stack = { path = "../../stack", features = ["test-util"] }
linkerd-tracing = { path = "../../tracing", features = ["ansi"] }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
4 changes: 0 additions & 4 deletions linkerd/app/outbound/src/http/logical/policy/route/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ use linkerd_http_retry::{self as retry, peek_trailers::PeekTrailersBody};
use linkerd_proxy_client_policy as policy;
use tokio::time;

// A request extension that marks that a request is a retry.
#[derive(Copy, Clone, Debug)]
pub struct IsRetry(());

pub type NewHttpRetry<F, N> =
retry::NewHttpRetry<RetryPolicy, RouteLabels, F, RouteLabelExtract, N>;

Expand Down
3 changes: 1 addition & 2 deletions linkerd/app/src/env/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ pub(super) fn parse_port_range_set(s: &str) -> Result<RangeInclusiveSet<u16>, Pa
let low = parse_number::<u16>(low)?;
if let Some(high) = parts.next() {
let high = high.trim();
let high = parse_number::<u16>(high).map_err(|e| {
let high = parse_number::<u16>(high).inspect_err(|_| {
error!("Not a valid port range: {part}");
e
})?;
if high < low {
error!("Not a valid port range: {part}; {high} is greater than {low}");
Expand Down
6 changes: 2 additions & 4 deletions linkerd/app/test/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ impl<T: Param<ConcreteAddr>, E> tower::Service<T> for Dst<E> {
.endpoints
.lock()
.remove(&addr)
.map(|x| {
.inspect(|_| {
tracing::trace!("found endpoint for target");
x
})
.unwrap_or_else(|| {
tracing::debug!(?addr, "no endpoint configured for");
Expand Down Expand Up @@ -188,9 +187,8 @@ impl Profiles {
.endpoints
.lock()
.remove(&addr)
.map(|x| {
.inspect(|_| {
tracing::trace!("found endpoint for addr");
x
})
.unwrap_or_else(|| {
tracing::debug!(?addr, "no endpoint configured for");
Expand Down
3 changes: 1 addition & 2 deletions linkerd/app/test/src/resolver/client_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ impl ClientPolicies {
.endpoints
.lock()
.remove(&addr)
.map(|x| {
.inspect(|_| {
tracing::trace!("found policy for addr");
x
})
.ok_or_else(|| {
tracing::debug!(?addr, "no policy configured for");
Expand Down
2 changes: 1 addition & 1 deletion linkerd/conditional/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<C, R> Conditional<C, R> {
}
}

impl<'a, C, R> Conditional<&'a C, R>
impl<C, R> Conditional<&C, R>
where
C: Clone,
{
Expand Down
3 changes: 3 additions & 0 deletions linkerd/dns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ thiserror = "1"
tracing = "0.1"
hickory-resolver = "0.24.1"
tokio = { version = "1", features = ["rt", "sync", "time"] }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
2 changes: 1 addition & 1 deletion linkerd/dns/name/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Name(Arc<str>);
/// allowed.
///
/// [RFC 5280 Section 7.2]: https://tools.ietf.org/html/rfc5280#section-7.2
#[derive(Clone, Copy, Debug, Eq, Hash)]
#[derive(Clone, Copy, Debug, Eq)]
pub struct NameRef<'a>(&'a str);

#[derive(Copy, Clone, Debug, Eq, PartialEq, Error)]
Expand Down
4 changes: 2 additions & 2 deletions linkerd/http/access-log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ where
.map(|x| span.record("response_bytes", x));

span.record("status", response.status().as_u16());
span.record("total_ns", &field::display(total_ns));
span.record("processing_ns", &field::display(processing_ns));
span.record("total_ns", field::display(total_ns));
span.record("processing_ns", field::display(processing_ns));

Poll::Ready(Ok(response))
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/http/metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ where
}
}

impl<'p, N: fmt::Display> fmt::Display for Prefixed<'p, N> {
impl<N: fmt::Display> fmt::Display for Prefixed<'_, N> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if self.prefix.is_empty() {
return self.name.fmt(f);
Expand Down
Loading
Loading