This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for rust stable 1.60 (paritytech#11138)
* Prepare for rust stable 1.59 Besides preparing the UI tests this also adds a new script update-rust-stable.sh script for simplifying the update of a rust stable version. This script will run all UI tests for the new rust stable version and updating the expected output. * Ensure we run the UI tests in CI * use staging ci image * More test updates * Unignore test (paritytech#11097) * empty commit for pipeline rerun * empty commit for pipeline rerun * Try to make clippy happy * More clippy fixes * FMT * ci image production Co-authored-by: alvicsam <alvicsam@gmail.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
- Loading branch information
1 parent
6349f5e
commit 28f1b31
Showing
36 changed files
with
329 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Script for updating the UI tests for a new rust stable version. | ||
# | ||
# It needs to be called like this: | ||
# | ||
# update-rust-stable.sh 1.61 | ||
# | ||
# This will run all UI tests with the rust stable 1.61. The script | ||
# requires that rustup is installed. | ||
set -e | ||
|
||
if [ "$#" -ne 1 ]; then | ||
echo "Please specify the rust version to use. E.g. update-rust-stable.sh 1.61" | ||
exit | ||
fi | ||
|
||
RUST_VERSION=$1 | ||
|
||
if ! command -v rustup &> /dev/null | ||
then | ||
echo "rustup needs to be installed" | ||
exit | ||
fi | ||
|
||
rustup install $RUST_VERSION | ||
rustup component add rust-src --toolchain $RUST_VERSION | ||
|
||
# Ensure we run the ui tests | ||
export RUN_UI_TESTS=1 | ||
# We don't need any wasm files for ui tests | ||
export SKIP_WASM_BUILD=1 | ||
# Let trybuild overwrite the .stderr files | ||
export TRYBUILD=overwrite | ||
|
||
# Run all the relevant UI tests | ||
# | ||
# Any new UI tests in different crates need to be added here as well. | ||
rustup run $RUST_VERSION cargo test -p sp-runtime-interface ui | ||
rustup run $RUST_VERSION cargo test -p sp-api-test ui | ||
rustup run $RUST_VERSION cargo test -p frame-election-provider-solution-type ui | ||
rustup run $RUST_VERSION cargo test -p frame-support-test ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
error[E0277]: the trait bound `<T as Config>::C: Clone` is not satisfied | ||
--> tests/derive_no_bound_ui/clone.rs:7:2 | ||
| | ||
7 | c: T::C, | ||
| ^ the trait `Clone` is not implemented for `<T as Config>::C` | ||
| | ||
note: required by `clone` | ||
--> $RUST/core/src/clone.rs | ||
| | ||
| fn clone(&self) -> Self; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
--> tests/derive_no_bound_ui/clone.rs:7:2 | ||
| | ||
7 | c: T::C, | ||
| ^ the trait `Clone` is not implemented for `<T as Config>::C` |
14 changes: 4 additions & 10 deletions
14
frame/support/test/tests/derive_no_bound_ui/default.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
error[E0277]: the trait bound `<T as Config>::C: std::default::Default` is not satisfied | ||
--> $DIR/default.rs:7:2 | ||
| | ||
7 | c: T::C, | ||
| ^ the trait `std::default::Default` is not implemented for `<T as Config>::C` | ||
| | ||
note: required by `std::default::Default::default` | ||
--> $DIR/default.rs:116:5 | ||
| | ||
116 | fn default() -> Self; | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
--> tests/derive_no_bound_ui/default.rs:7:2 | ||
| | ||
7 | c: T::C, | ||
| ^ the trait `std::default::Default` is not implemented for `<T as Config>::C` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.