diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index c731405830..ea1c6d0664 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -1,6 +1,6 @@ on: - # push: - # branches: [main, 'release-v**'] + push: + branches: ['ci-rewrite-n-cache'] pull_request: paths: - 'src/' @@ -42,12 +42,12 @@ jobs: # # make Cargo.toml # echo "Generate code coverage for ${{ matrix.target }}" # cargo +nightly tarpaulin --verbose --no-fail-fast --workspace --timeout 300 --out Xml - # fi + # fi - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh env: TARGET: ${{ matrix.target }} - RUSTC_WRAPPER: "sccache" + RUSTC_WRAPPER: "sccache" # UPLOAD REPORTS (requires cargo 1.70.0) # - name: Upload codecov report @@ -58,7 +58,7 @@ jobs: # # flags: unittests # optional # # name: codecov-umbrella # optional # # fail_ci_if_error: true # optional (default = false) - # verbose: true # optional (default = false) + # verbose: true # optional (default = false) benchmark-check: name: bench-check-${{ matrix.runtime }} @@ -81,6 +81,7 @@ jobs: - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh env: + RUST_LOG: ERROR TARGET: benchmark-check RUNTIME: ${{ matrix.runtime }} RUSTC_WRAPPER: "sccache" diff --git a/ci/run-check.sh b/ci/run-check.sh index f3fe6b094b..bc487c252f 100755 --- a/ci/run-check.sh +++ b/ci/run-check.sh @@ -10,15 +10,15 @@ cargo --version case $TARGET in cargo-build) - cargo build --release "$@" + cargo build "$@" ;; test-general) - cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests + cargo test --workspace --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests ;; test-integration) - cargo test --release --package runtime-integration-tests --features fast-runtime + cargo test --package runtime-integration-tests --features fast-runtime ;; lint-fmt) diff --git a/docs/DEVELOPING.md b/docs/DEVELOPING.md index fb5042790a..412784b0ea 100644 --- a/docs/DEVELOPING.md +++ b/docs/DEVELOPING.md @@ -28,7 +28,7 @@ and another one to verify how it works in a more real environment as a parachain The following command will run the unit and integration tests: ```bash -cargo +nightly test --workspace --release --features runtime-benchmarks,try-runtime +cargo test --workspace --features runtime-benchmarks,try-runtime ``` ### Environment tests @@ -84,7 +84,7 @@ You can play with it from the parachain client, make transfers, inspect events, ## Linting ### Source code -Lint the source code with `cargo +nightly fmt`. This excludes certain paths (defined in `rustfmt.toml`) that we want to stay as close as possible to `paritytech/substrate` to simplify upgrading to new releases. +Lint the source code with `cargo fmt`. This excludes certain paths (defined in `rustfmt.toml`) that we want to stay as close as possible to `paritytech/substrate` to simplify upgrading to new releases. ### Cargo.toml files 1. Install [taplo](https://github.com/tamasfe/taplo) with `cargo install taplo-cli`. diff --git a/runtime/integration-tests/src/utils/logs.rs b/runtime/integration-tests/src/utils/logs.rs index fec9837e5a..4e583fc8e8 100644 --- a/runtime/integration-tests/src/utils/logs.rs +++ b/runtime/integration-tests/src/utils/logs.rs @@ -21,7 +21,7 @@ const UNINITIALIZED: usize = 0; const INITIALIZING: usize = 1; const INITIALIZED: usize = 2; -const LOG_LEVEL: LevelFilter = LevelFilter::INFO; +const LOG_LEVEL: LevelFilter = LevelFilter::ERROR; pub fn init_logs() { if GLOBAL_INIT