Skip to content

Commit

Permalink
dev: v43 with Rust v1.76
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Feb 21, 2024
1 parent 098dd0d commit 7895ec2
Show file tree
Hide file tree
Showing 28 changed files with 50 additions and 50 deletions.
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": "v42",
"DEV_VERSION": "v43",
"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 @@ -22,7 +22,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
timeout-minutes: 20
continue-on-error: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
check-all:
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-each.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
list-changed-crates:
timeout-minutes: 10
runs-on: ubuntu-latest
container: docker://ghcr.io/linkerd/dev:v42-rust
container: docker://ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand All @@ -58,7 +58,7 @@ jobs:
needs: list-changed-crates
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
strategy:
matrix:
crate: ${{ fromJson(needs.list-changed-crates.outputs.crates) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: docker://ghcr.io/linkerd/dev:v42-rust
image: docker://ghcr.io/linkerd/dev:v43-rust
options: --security-opt seccomp=unconfined # 🤷
env:
CXX: "/usr/bin/clang++-14"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
deprecated:
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
clippy:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand All @@ -31,7 +31,7 @@ jobs:
fmt:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand All @@ -40,7 +40,7 @@ jobs:
docs:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
timeout-minutes: 20
continue-on-error: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
continue-on-error: ${{ !needs.meta.outputs.publish }}
runs-on: ubuntu-latest
timeout-minutes: 40
container: docker://ghcr.io/linkerd/dev:v42-rust-musl
container: docker://ghcr.io/linkerd/dev:v43-rust-musl
env:
LINKERD2_PROXY_VENDOR: ${{ github.repository_owner }}
LINKERD2_PROXY_VERSION: ${{ needs.meta.outputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
meshtls:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand All @@ -43,7 +43,7 @@ jobs:
unit:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
Expand Down
2 changes: 1 addition & 1 deletion .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:v42-rust
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
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:v42-rust
ARG RUST_IMAGE=ghcr.io/linkerd/dev:v43-rust

# Use an arbitrary ~recent edge release image to get the proxy
# identity-initializing and linkerd-await wrappers.
Expand Down
30 changes: 15 additions & 15 deletions linkerd/app/integration/src/tests/profile_dst_overrides.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ async fn add_a_dst_override() {
let apex = "apex";
let apex_svc = Service::new(apex).await;
let profile_tx = ctrl.profile_tx(apex_svc.addr().to_string());
ctrl.destination_tx(&apex_svc.authority())
ctrl.destination_tx(apex_svc.authority())
.send_addr(apex_svc.svc.addr);

let leaf = "leaf";
let leaf_svc = Service::new(leaf).await;
ctrl.destination_tx(&leaf_svc.authority())
ctrl.destination_tx(leaf_svc.authority())
.send_addr(leaf_svc.svc.addr);

let proxy = proxy::new()
Expand Down Expand Up @@ -114,16 +114,16 @@ async fn add_multiple_dst_overrides() {

let apex = "apex";
let apex_svc = Service::new(apex).await;
ctrl.destination_tx(&apex_svc.authority())
ctrl.destination_tx(apex_svc.authority())
.send_addr(apex_svc.svc.addr);

let leaf_a = "leaf-a";
let leaf_a_svc = Service::new(leaf_a).await;
ctrl.destination_tx(&leaf_a_svc.authority())
ctrl.destination_tx(leaf_a_svc.authority())
.send_addr(leaf_a_svc.svc.addr);
let leaf_b = "leaf-b";
let leaf_b_svc = Service::new(leaf_b).await;
ctrl.destination_tx(&leaf_b_svc.authority())
ctrl.destination_tx(leaf_b_svc.authority())
.send_addr(leaf_b_svc.svc.addr);

let profile_tx = ctrl.profile_tx(apex_svc.addr().to_string());
Expand Down Expand Up @@ -166,15 +166,15 @@ async fn set_a_dst_override_weight_to_zero() {

let apex = "apex";
let apex_svc = Service::new(apex).await;
ctrl.destination_tx(&apex_svc.authority())
ctrl.destination_tx(apex_svc.authority())
.send_addr(apex_svc.svc.addr);
let leaf_a = "leaf-a";
let leaf_a_svc = Service::new(leaf_a).await;
ctrl.destination_tx(&leaf_a_svc.authority())
ctrl.destination_tx(leaf_a_svc.authority())
.send_addr(leaf_a_svc.svc.addr);
let leaf_b = "leaf-b";
let leaf_b_svc = Service::new(leaf_b).await;
ctrl.destination_tx(&leaf_b_svc.authority())
ctrl.destination_tx(leaf_b_svc.authority())
.send_addr(leaf_b_svc.svc.addr);

let profile_tx = ctrl.profile_tx(apex_svc.addr().to_string());
Expand Down Expand Up @@ -235,17 +235,17 @@ async fn set_all_dst_override_weights_to_zero() {

let apex = "apex";
let apex_svc = Service::new(apex).await;
let apex_tx0 = ctrl.destination_tx(&apex_svc.authority());
let apex_tx0 = ctrl.destination_tx(apex_svc.authority());
apex_tx0.send_addr(apex_svc.svc.addr);
let leaf_a = "leaf-a";
let leaf_a_svc = Service::new(leaf_a).await;
let leaf_a_tx = ctrl.destination_tx(&leaf_a_svc.authority());
let leaf_a_tx = ctrl.destination_tx(leaf_a_svc.authority());
leaf_a_tx.send_addr(leaf_a_svc.svc.addr);
let leaf_b = "leaf-b";
let leaf_b_svc = Service::new(leaf_b).await;
let leaf_b_tx = ctrl.destination_tx(&leaf_b_svc.authority());
let leaf_b_tx = ctrl.destination_tx(leaf_b_svc.authority());
leaf_b_tx.send_addr(leaf_b_svc.svc.addr);
let apex_tx1 = ctrl.destination_tx(&apex_svc.authority());
let apex_tx1 = ctrl.destination_tx(apex_svc.authority());

let profile_tx = ctrl.profile_tx(apex_svc.addr().to_string());
profile_tx.send(profile(
Expand Down Expand Up @@ -308,9 +308,9 @@ async fn remove_a_dst_override() {
let leaf = "leaf";
let leaf_svc = Service::new(leaf).await;
let ctrl = controller::new_unordered();
let apex_tx0 = ctrl.destination_tx(&apex_svc.authority());
let leaf_tx = ctrl.destination_tx(&leaf_svc.authority());
let apex_tx1 = ctrl.destination_tx(&apex_svc.authority());
let apex_tx0 = ctrl.destination_tx(apex_svc.authority());
let leaf_tx = ctrl.destination_tx(leaf_svc.authority());
let apex_tx1 = ctrl.destination_tx(apex_svc.authority());

let profile_tx = ctrl.profile_tx(apex_svc.addr().to_string());
profile_tx.send(profile(
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/outbound/src/http/require_id_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<N> NewRequireIdentity<N> {
Self { inner }
}

pub fn layer() -> impl svc::layer::Layer<N, Service = Self> + Clone + Copy {
pub fn layer() -> impl svc::layer::Layer<N, Service = Self> + Copy {
svc::layer::mk(Self::new)
}
}
Expand Down
4 changes: 2 additions & 2 deletions linkerd/app/outbound/src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::Outbound;
use linkerd_app_core::{
io, svc,
transport::{self, addrs::*, metrics},
Error,
Error, Infallible,
};

mod connect;
Expand Down Expand Up @@ -55,7 +55,7 @@ impl<N> Outbound<N> {
.push(metrics::NewServer::layer(
rt.metrics.proxy.transport.clone(),
))
.push_filter(|t: T| Accept::try_from(t.param()))
.push_filter(|t: T| Ok::<_, Infallible>(Accept::from(t.param())))
.push(rt.metrics.tcp_errors.to_layer())
.instrument(mk_span)
.arc_new_tcp()
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 @@ -11,7 +11,7 @@ pub enum Conditional<C, R> {

impl<C, R> Conditional<C, R>
where
R: Copy + Clone,
R: Copy,
{
pub fn as_ref(&self) -> Conditional<&'_ C, R> {
match self {
Expand Down
2 changes: 1 addition & 1 deletion linkerd/http-box/src/erase_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl<S> EraseRequest<S> {
Self(inner)
}

pub fn layer() -> impl layer::Layer<S, Service = Self> + Clone + Copy {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self::new)
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/http-box/src/erase_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<S> EraseResponse<S> {
Self(inner)
}

pub fn layer() -> impl layer::Layer<S, Service = Self> + Clone + Copy {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {

Check warning on line 36 in linkerd/http-box/src/erase_response.rs

View check run for this annotation

Codecov / codecov/patch

linkerd/http-box/src/erase_response.rs#L36

Added line #L36 was not covered by tests
layer::mk(Self::new)
}
}
Expand Down
4 changes: 2 additions & 2 deletions linkerd/http-box/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ impl<B, S> BoxRequest<B, S> {
BoxRequest(inner, PhantomData)
}

pub fn layer() -> impl layer::Layer<S, Service = Self> + Clone + Copy {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self::new)
}
}

impl<S> BoxRequest<S, ()> {
/// Constructs a boxing layer that erases the inner request type with [`EraseRequest`].
pub fn erased() -> impl layer::Layer<S, Service = EraseRequest<S>> + Clone + Copy {
pub fn erased() -> impl layer::Layer<S, Service = EraseRequest<S>> + Copy {
EraseRequest::layer()
}
}
Expand Down
4 changes: 2 additions & 2 deletions linkerd/http-box/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ use std::task::{Context, Poll};
pub struct BoxResponse<S>(S);

impl<S> BoxResponse<S> {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Clone + Copy {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self)
}

/// Constructs a boxing layer that erases the inner response type with [`EraseResponse`].
pub fn erased() -> impl layer::Layer<S, Service = EraseResponse<S>> + Clone + Copy {
pub fn erased() -> impl layer::Layer<S, Service = EraseResponse<S>> + Copy {

Check warning on line 18 in linkerd/http-box/src/response.rs

View check run for this annotation

Codecov / codecov/patch

linkerd/http-box/src/response.rs#L18

Added line #L18 was not covered by tests
EraseResponse::layer()
}
}
Expand Down
4 changes: 2 additions & 2 deletions linkerd/proxy/http/src/normalize_uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct MarkAbsoluteForm<S> {
// === impl NewNormalizeUri ===

impl<N> NewNormalizeUri<(), N> {
pub fn layer() -> impl layer::Layer<N, Service = Self> + Copy + Clone {
pub fn layer() -> impl layer::Layer<N, Service = Self> + Copy {
layer::mk(|inner| Self::new((), inner))
}
}
Expand Down Expand Up @@ -137,7 +137,7 @@ impl<S> MarkAbsoluteForm<S> {
Self { inner }
}

pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy + Clone {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self::new)
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/http/src/orig_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl HttpBody for UpgradeResponseBody {
// === impl Downgrade ===

impl<S> Downgrade<S> {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy + Clone {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(|inner| Self { inner })
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/http/src/retain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<S, B> Retain<S, B> {
}
}

pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy + Clone {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self::new)
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/tcp/src/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl<C> Forward<C> {
Self { connect }
}

pub fn layer() -> impl layer::Layer<C, Service = Self> + Clone + Copy {
pub fn layer() -> impl layer::Layer<C, Service = Self> + Copy {
layer::mk(Self::new)
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd/stack/src/arc_new_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct ArcNewService<T, S> {
}

impl<T, S> ArcNewService<T, S> {
pub fn layer<N>() -> impl layer::Layer<N, Service = Self> + Clone + Copy
pub fn layer<N>() -> impl layer::Layer<N, Service = Self> + Copy
where
N: NewService<T, Service = S> + Send + Sync + 'static,
S: Send + 'static,
Expand Down
2 changes: 1 addition & 1 deletion linkerd/stack/src/loadshed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl<S> LoadShed<S> {
/// (e.g., via [`SpawnReady`], where appropriate).
///
/// [`SpawnReady`]: tower::spawn_ready::SpawnReady
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy + Clone {
pub fn layer() -> impl layer::Layer<S, Service = Self> + Copy {
layer::mk(Self::new)
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.73.0"
channel = "1.76.0"

0 comments on commit 7895ec2

Please sign in to comment.