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

[ci] Update CI image with rust 1.81.0 and 2024-09-11 #5676

Open
wants to merge 72 commits into
base: master
Choose a base branch
from

Conversation

alvicsam
Copy link
Contributor

@alvicsam alvicsam commented Sep 11, 2024

@alvicsam alvicsam requested review from a team as code owners September 11, 2024 10:27
@alvicsam alvicsam added the R0-silent Changes should not be mentioned in any release notes label Sep 11, 2024
@alvicsam
Copy link
Contributor Author

/cmd help

Copy link

Command "help" has started 🚀 See logs here

Copy link

Command "help" has failed ❌! See logs here

@alvicsam
Copy link
Contributor Author

bot fmt

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318086 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 1-f635b668-ec61-4fba-8c53-6d0873da4411 to cancel this command or bot cancel to cancel all commands in this pull request.

@alvicsam
Copy link
Contributor Author

bot help

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318086 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318086/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

Here's a link to docs

@alvicsam
Copy link
Contributor Author

bot -v CMD_IMAGE=docker.io/paritytech/ci-unified:bullseye-1.81.0-2024-09-11-v202409111034 fmt

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318088 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 2-69c20856-38ce-4cb3-90f3-359d2f53dde3 to cancel this command or bot cancel to cancel all commands in this pull request.

@paritytech-ci paritytech-ci requested review from a team and koute as code owners September 11, 2024 10:36
@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318088 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318088/artifacts/download.

@paritytech-review-bot paritytech-review-bot bot requested a review from a team September 11, 2024 10:37
@alvicsam
Copy link
Contributor Author

bot update-ui latest --rust_version=1.81

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318182 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/update-ui/update-ui.sh" --rust_version=1.81. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 3-ab4bc0bc-095e-4f2b-8ae0-24b6a3628629 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Sep 11, 2024

@alvicsam Command "$PIPELINE_SCRIPTS_DIR/commands/update-ui/update-ui.sh" --rust_version=1.81 has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318182 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7318182/artifacts/download.

@alvicsam
Copy link
Contributor Author

@ggwpez could you please help with the CI errors (tests, clippy)?

@ggwpez
Copy link
Member

ggwpez commented Sep 11, 2024

@gui1117 i applied your fix here, just FYI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@@ -226,13 +226,16 @@ pub trait RaceState<SourceHeaderId, TargetHeaderId>: Clone + Send + Sync {
fn set_best_finalized_source_header_id_at_best_target(&mut self, id: SourceHeaderId);

/// Best finalized source header id at the source client.
#[allow(dead_code)]
Copy link
Member

Choose a reason for hiding this comment

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

Is this trait not public outside of this module? We should remove this code then.

@@ -39,15 +39,19 @@ pub struct RelayReference<
TargetClient: MessageLaneTargetClient<P>,
> {
/// The client that is connected to the message lane source node.
#[allow(dead_code)] // FAIL-CI
Copy link
Member

Choose a reason for hiding this comment

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

What is about this?

@@ -31,6 +31,7 @@ pub trait WeightBounds<RuntimeCall> {

/// A means of getting approximate weight consumption for a given destination message executor and a
/// message.
#[allow(dead_code)]
Copy link
Member

Choose a reason for hiding this comment

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

Why is this dead code? Is the trait not reachable form the outside? Then we should remove it.

@@ -282,6 +282,7 @@ pub enum NotifsHandlerOut {
/// Name of the protocol that was actually negotiated, if the default one wasn't available.
negotiated_fallback: Option<ProtocolName>,
/// The endpoint of the connection that is open for custom protocols.
#[allow(dead_code)]
Copy link
Member

Choose a reason for hiding this comment

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

Remove?

@@ -193,6 +193,7 @@ pub struct NotificationsInOpen<TSubstream> {
pub handshake: Vec<u8>,
/// If the negotiated name is not the "main" protocol name but a fallback, contains the
/// name of the negotiated fallback.
#[allow(dead_code)]
Copy link
Member

Choose a reason for hiding this comment

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

Remove

@@ -713,6 +713,7 @@ where
}

/// Implement `Encode` by forwarding the stored raw vec.
#[allow(dead_code)]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#[allow(dead_code)]
#[cfg(any(test, feature = "fuzzing"))]

Copy link
Member

Choose a reason for hiding this comment

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

It is still used in two log statements, so guarding it with test and fuzzing wont work.

@@ -713,6 +713,7 @@ where
}

/// Implement `Encode` by forwarding the stored raw vec.
#[allow(dead_code)]
struct EncodeOpaqueValue(Vec<u8>);

impl Encode for EncodeOpaqueValue {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
impl Encode for EncodeOpaqueValue {
#[cfg(any(test, feature = "fuzzing"))]
impl Encode for EncodeOpaqueValue {

substrate/utils/frame/benchmarking-cli/build.rs Outdated Show resolved Hide resolved
substrate/utils/frame/benchmarking-cli/build.rs Outdated Show resolved Hide resolved
substrate/utils/wasm-builder/src/wasm_project.rs Outdated Show resolved Hide resolved
ggwpez and others added 26 commits September 18, 2024 21:24
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Clippy otherwise reports a duplicated trait bound and is unhappy about that.

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez
Copy link
Member

ggwpez commented Sep 19, 2024

Something in the orchestrator crate seems to emit code that trigger clippy:

error: trait `OrchestraFieldState` is never used
     --> /__w/polkadot-sdk/polkadot-sdk/target/debug/build/expander-f21e58b59c39b7b5/out/orchestra-expansion-d13355006895.rs:14155:7
      |
14155 | trait OrchestraFieldState<T> {}
      |       ^^^^^^^^^^^^^^^^^^^
      |
      = note: `-D dead-code` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(dead_code)]`

    Rustc finished with error: exit status 1
error: could not compile `polkadot-overseer` (lib) due to 1 previous error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants