From 851d5f86132025b8e8b97853f30e34254d90086b Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 14 Sep 2021 20:17:18 +1000 Subject: [PATCH 1/2] tests: Correct heading in static checks test The github static checks action has a section heading called "Building rust". It doesn't actually build rust, though, just installs it with rustup. Correct the misleading message. Signed-off-by: David Gibson --- .github/workflows/static-checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 1877fbe3d..235e7f2f8 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -60,7 +60,7 @@ jobs: cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/setup.sh env: GOPATH: ${{ runner.workspace }}/kata-containers - - name: Building rust + - name: Installing rust if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} run: | cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/install_rust.sh From 25ac3524c9ec0090a51cfd0283b2477ba1b034bb Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 14 Sep 2021 20:10:44 +1000 Subject: [PATCH 2/2] versions: Allow newer Rust versions Rust 1.47.0 which is the latest we note as tested in versions.yaml is now getting fairly old - many current distros have newer versions (e.g. Rust 1.54.0 in Fedora 34). Bring this more up to date. Note that this is only updating the 'newest-version', not the minimum required version. The new version changes the name of the 'clippy::unknown_clipp_lints' option to simply 'unknown_lints' so we need to change that as well to avoid warnings. fixes #2633 Signed-off-by: David Gibson --- src/agent/src/watcher.rs | 2 +- src/agent/vsock-exporter/src/lib.rs | 2 +- versions.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agent/src/watcher.rs b/src/agent/src/watcher.rs index 94f1b1966..b6ec52898 100644 --- a/src/agent/src/watcher.rs +++ b/src/agent/src/watcher.rs @@ -3,7 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 // -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] use std::collections::HashMap; use std::path::{Path, PathBuf}; diff --git a/src/agent/vsock-exporter/src/lib.rs b/src/agent/vsock-exporter/src/lib.rs index f83ee5072..27e71e64b 100644 --- a/src/agent/vsock-exporter/src/lib.rs +++ b/src/agent/vsock-exporter/src/lib.rs @@ -12,7 +12,7 @@ // payload, which allows the forwarder to know how many bytes it must read to // consume the trace span. The payload is a serialised version of the trace span. -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] use async_trait::async_trait; use byteorder::{ByteOrder, NetworkEndian}; diff --git a/versions.yaml b/versions.yaml index ebf143f18..326766710 100644 --- a/versions.yaml +++ b/versions.yaml @@ -255,7 +255,7 @@ languages: description: | 'newest-version' is the latest version known to work when building Kata - newest-version: "1.47.0" + newest-version: "1.54.0" specs: description: "Details of important specifications"