From b50515813e2681a4eb4de323d3ab231e1cb2fb2f Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 15:20:28 +0800 Subject: [PATCH 1/7] get cargo test CI job stats --- .github/workflows/forest.yml | 3 +++ .github/workflows/unit-tests.yml | 6 +++--- mise.toml | 15 +++++++++++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index 47bc0883bd17..270499152348 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -41,6 +41,7 @@ jobs: build-macos: name: Build MacOS runs-on: macos-latest + if: false steps: - name: Configure SCCache variables run: | @@ -65,6 +66,7 @@ jobs: build-ubuntu: name: Build Ubuntu runs-on: ubuntu-24.04 + if: false steps: - name: Configure SCCache variables run: | @@ -101,6 +103,7 @@ jobs: if-no-files-found: error cargo-publish-dry-run: runs-on: ubuntu-24.04 + if: false steps: - name: Checkout Sources uses: actions/checkout@v6 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 78e45d25b9a0..4b29caf09976 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -38,13 +38,15 @@ env: FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters RUST_LOG: error FOREST_ACTOR_BUNDLE_PATH: /var/tmp/forest_actor_bundle.car.zst + # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" jobs: tests-release: runs-on: ubuntu-24.04-arm # Run the job only if the PR is not a draft. # This is done to limit the runner cost. - if: github.event.pull_request.draft == false + # if: github.event.pull_request.draft == false steps: - name: Configure SCCache variables run: | @@ -77,6 +79,4 @@ jobs: - run: | mise test quick env: - # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 diff --git a/mise.toml b/mise.toml index 77a456a3438e..e37e28a1eb46 100644 --- a/mise.toml +++ b/mise.toml @@ -160,6 +160,18 @@ run = ''' cargo test --doc --profile ${usage_profile?} --features doctest-private --no-fail-fast ''' +[tasks."test:nextest"] +description = "Run Rust unit and integration tests with nextest." +usage = ''' +arg "" help="Build profile (quick, release, etc.)" default="quick" { + choices "quick" "release" "dev" +} +''' +run = ''' +echo "Running tests with profile: ${usage_profile?}" +cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-fail-fast +''' + [tasks."test:rust"] description = "Run Rust unit and integration tests." usage = ''' @@ -169,7 +181,7 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' echo "Running tests with profile: ${usage_profile?}" -cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-fail-fast +cargo test --profile ${usage_profile?} --workspace --no-default-features --features doctest-private --no-fail-fast ''' [tasks.test] @@ -181,7 +193,6 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' mise task run test:rust ${usage_profile?} -mise task run test:docs ${usage_profile?} ''' [tasks.codecov] From 6b4d93bcd4b1e65e88e3c3e62b6666eaca06570a Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 16:06:13 +0800 Subject: [PATCH 2/7] get CI nextest stats --- mise.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mise.toml b/mise.toml index e37e28a1eb46..146513b58c14 100644 --- a/mise.toml +++ b/mise.toml @@ -157,7 +157,7 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { } ''' run = ''' -cargo test --doc --profile ${usage_profile?} --features doctest-private --no-fail-fast +cargo test --doc --profile ${usage_profile?} --no-default-features --features doctest-private --no-fail-fast ''' [tasks."test:nextest"] @@ -169,7 +169,7 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' echo "Running tests with profile: ${usage_profile?}" -cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-fail-fast +cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-default-features --no-fail-fast ''' [tasks."test:rust"] @@ -192,7 +192,8 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { } ''' run = ''' -mise task run test:rust ${usage_profile?} +mise task run test:nextest ${usage_profile?} +mise task run test:docs ${usage_profile?} ''' [tasks.codecov] From 5930219df245f81183a13e1379957b0c22a1f6cc Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 17:30:06 +0800 Subject: [PATCH 3/7] cargo test group --- .github/workflows/coverage.yml | 2 +- AGENTS.md | 2 ++ Cargo.toml | 2 ++ build.rs | 3 ++- mise.toml | 27 ++++++--------------- src/state_manager/utils.rs | 43 +++++++++++++++++++++++----------- 6 files changed, 43 insertions(+), 36 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2580836edae2..e9dcacd36506 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,7 +44,7 @@ env: jobs: codecov: name: Coverage - if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' + # if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' runs-on: buildjet-4vcpu-ubuntu-2204 timeout-minutes: 45 steps: diff --git a/AGENTS.md b/AGENTS.md index 185d0946cf1c..89819ebe273f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -358,6 +358,7 @@ lldb target/debugging/forest ## Cargo Features - **`default`** - `jemalloc`, `tokio-console`, `tracing-loki`, `tracing-chrome` +- **`test`** - Default feature set for unit tests - **`slim`** - Minimal feature set (uses rustalloc) - **`jemalloc`** - Use jemalloc allocator (production default) - **`rustalloc`** - Use Rust standard allocator @@ -366,6 +367,7 @@ lldb target/debugging/forest - **`tracing-loki`** - Send telemetry to Loki - **`tracing-chrome`** - Chrome tracing support - **`no-f3-sidecar`** - Disable F3 sidecar build +- **`cargo-test`** - Group of tests that is recommended to run with `cargo test` instead of `nextest` - **`doctest-private`** - Enable doctests for private items - **`benchmark-private`** - Enable benchmark suite - **`interop-tests-private`** - Enable interop tests diff --git a/Cargo.toml b/Cargo.toml index 761694c215e5..269653193546 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -310,7 +310,9 @@ lto = "fat" # These should be refactored (probably removed) in #2984 [features] default = ["jemalloc", "tokio-console", "tracing-loki", "tracing-chrome", "sqlite"] +test = [] # default feature set for unit tests slim = ["rustalloc"] +cargo-test = [] # group of tests that is recommended to run with `cargo test` instead of `nextest` doctest-private = [] # see lib.rs::doctest_private benchmark-private = ["dep:criterion"] # see lib.rs::benchmark_private interop-tests-private = [] # see lib.rs::interop_tests_private diff --git a/build.rs b/build.rs index 71adeadcec41..04aa606d1430 100644 --- a/build.rs +++ b/build.rs @@ -81,8 +81,9 @@ fn rpc_regression_tests_gen() { writeln!( w, r#" + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn rpc_snapshot_test_{ident}() {{ + async fn cargo_test_rpc_snapshot_test_{ident}() {{ rpc_regression_test_run("{test}").await }} "#, diff --git a/mise.toml b/mise.toml index 146513b58c14..09c84d792b53 100644 --- a/mise.toml +++ b/mise.toml @@ -147,21 +147,8 @@ cargo clean rm -rf node_modules ''' -[tasks."test:docs"] -# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16 -# We need to run them separately. -description = "Run doctests." -usage = ''' -arg "" help="Build profile (quick, release, etc.)" default="quick" { - choices "quick" "release" "dev" -} -''' -run = ''' -cargo test --doc --profile ${usage_profile?} --no-default-features --features doctest-private --no-fail-fast -''' - [tasks."test:nextest"] -description = "Run Rust unit and integration tests with nextest." +description = "Run Rust unit and integration tests except `cargo-test` group with nextest." usage = ''' arg "" help="Build profile (quick, release, etc.)" default="quick" { choices "quick" "release" "dev" @@ -169,11 +156,11 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' echo "Running tests with profile: ${usage_profile?}" -cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-default-features --no-fail-fast +cargo nextest run --cargo-profile ${usage_profile?} --workspace --no-default-features --features "test" --no-fail-fast ''' -[tasks."test:rust"] -description = "Run Rust unit and integration tests." +[tasks."test:cargo"] +description = "Run Rust unit, integration and doc tests of `cargo-test` group with cargo test." usage = ''' arg "" help="Build profile (quick, release, etc.)" default="quick" { choices "quick" "release" "dev" @@ -181,7 +168,7 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' echo "Running tests with profile: ${usage_profile?}" -cargo test --profile ${usage_profile?} --workspace --no-default-features --features doctest-private --no-fail-fast +cargo test --profile ${usage_profile?} --workspace --no-default-features --features "test cargo-test doctest-private" --no-fail-fast -- --test "cargo_test_" ''' [tasks.test] @@ -192,14 +179,14 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { } ''' run = ''' +mise task run test:cargo ${usage_profile?} mise task run test:nextest ${usage_profile?} -mise task run test:docs ${usage_profile?} ''' [tasks.codecov] description = "Generate codecov report" run = ''' -cargo llvm-cov -p forest-filecoin --codecov --output-path lcov.info +cargo llvm-cov -p forest-filecoin --codecov --no-default-features --features cargo-test --output-path lcov.info ''' [tasks."docs:format-spellcheck-dictionary"] diff --git a/src/state_manager/utils.rs b/src/state_manager/utils.rs index 5c02fa27e5bf..1d6ca35f1a28 100644 --- a/src/state_manager/utils.rs +++ b/src/state_manager/utils.rs @@ -355,6 +355,7 @@ pub mod state_compute { //! use super::*; + #[cfg(feature = "cargo-test")] use crate::chain_sync::tipset_syncer::validate_tipset; #[tokio::test(flavor = "multi_thread")] @@ -366,8 +367,9 @@ pub mod state_compute { } // FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_mainnet_5709604() { + async fn cargo_test_state_compute_mainnet_5709604() { let chain = NetworkChain::Mainnet; let snapshot = get_state_compute_snapshot(&chain, 5709604).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -375,8 +377,9 @@ pub mod state_compute { } // FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_3408952() { + async fn cargo_test_state_compute_calibnet_3408952() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 3408952).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -384,8 +387,9 @@ pub mod state_compute { } // Shark state migration with FVM@2 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_16801() { + async fn cargo_test_state_compute_calibnet_16801() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 16801).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -393,8 +397,9 @@ pub mod state_compute { } // Hygge state migration with FVM@2 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_322355() { + async fn cargo_test_state_compute_calibnet_322355() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 322355).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -402,8 +407,9 @@ pub mod state_compute { } // Lightning state migration with FVM@3 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_489095() { + async fn cargo_test_state_compute_calibnet_489095() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 489095).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -411,8 +417,9 @@ pub mod state_compute { } // Watermelon state migration with FVM@3 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_1013135() { + async fn cargo_test_state_compute_calibnet_1013135() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 1013135).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -420,8 +427,9 @@ pub mod state_compute { } // Dragon state migration with FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_1427975() { + async fn cargo_test_state_compute_calibnet_1427975() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 1427975).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -429,8 +437,9 @@ pub mod state_compute { } // Waffle state migration with FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_1779095() { + async fn cargo_test_state_compute_calibnet_1779095() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 1779095).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -438,8 +447,9 @@ pub mod state_compute { } // TukTuk state migration with FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_2078795() { + async fn cargo_test_state_compute_calibnet_2078795() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 2078795).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -447,8 +457,9 @@ pub mod state_compute { } // Teep state migration with FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_2523455() { + async fn cargo_test_state_compute_calibnet_2523455() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 2523455).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); @@ -456,16 +467,18 @@ pub mod state_compute { } // GoldenWeek state migration with FVM@4 + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_compute_calibnet_3007295() { + async fn cargo_test_state_compute_calibnet_3007295() { let chain = NetworkChain::Calibnet; let snapshot = get_state_compute_snapshot(&chain, 3007295).await.unwrap(); let (sm, ts, ts_next) = prepare_state_compute(&chain, &snapshot).await.unwrap(); state_compute(&sm, ts, &ts_next).await.unwrap(); } + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_validate_mainnet_5688000() { + async fn cargo_test_state_validate_mainnet_5688000() { let chain = NetworkChain::Mainnet; let snapshot = get_state_validate_snapshot(&chain, 5688000).await.unwrap(); let (sm, fts) = prepare_state_validate(&chain, &snapshot).await.unwrap(); @@ -473,8 +486,9 @@ pub mod state_compute { } // Shark state migration + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_validate_calibnet_16802() { + async fn cargo_test_state_validate_calibnet_16802() { let chain = NetworkChain::Calibnet; let snapshot = get_state_validate_snapshot(&chain, 16802).await.unwrap(); let (sm, fts) = prepare_state_validate(&chain, &snapshot).await.unwrap(); @@ -482,8 +496,9 @@ pub mod state_compute { } // Hygge state migration + #[cfg(feature = "cargo-test")] #[tokio::test(flavor = "multi_thread")] - async fn state_validate_calibnet_322356() { + async fn cargo_test_state_validate_calibnet_322356() { let chain = NetworkChain::Calibnet; let snapshot = get_state_validate_snapshot(&chain, 322356).await.unwrap(); let (sm, fts) = prepare_state_validate(&chain, &snapshot).await.unwrap(); From 036d09472566becb263ec0c01a76a1a5772a48fd Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 17:40:14 +0800 Subject: [PATCH 4/7] fix --- mise.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mise.toml b/mise.toml index 09c84d792b53..436302ac44ef 100644 --- a/mise.toml +++ b/mise.toml @@ -147,6 +147,19 @@ cargo clean rm -rf node_modules ''' +[tasks."test:docs"] +# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16 +# We need to run them separately. +description = "Run doctests." +usage = ''' +arg "" help="Build profile (quick, release, etc.)" default="quick" { + choices "quick" "release" "dev" +} +''' +run = ''' +cargo test --doc --profile ${usage_profile?} --no-default-features --features "test doctest-private" --no-fail-fast +''' + [tasks."test:nextest"] description = "Run Rust unit and integration tests except `cargo-test` group with nextest." usage = ''' @@ -168,7 +181,7 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { ''' run = ''' echo "Running tests with profile: ${usage_profile?}" -cargo test --profile ${usage_profile?} --workspace --no-default-features --features "test cargo-test doctest-private" --no-fail-fast -- --test "cargo_test_" +cargo test --lib --profile ${usage_profile?} --workspace --no-default-features --features "test cargo-test" --no-fail-fast -- --test "cargo_test_" ''' [tasks.test] @@ -179,8 +192,9 @@ arg "" help="Build profile (quick, release, etc.)" default="quick" { } ''' run = ''' -mise task run test:cargo ${usage_profile?} mise task run test:nextest ${usage_profile?} +mise task run test:cargo ${usage_profile?} +mise task run test:docs ${usage_profile?} ''' [tasks.codecov] From f063ebd11b0f0db122a338da8b5a3a5266c1ea53 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 18:06:10 +0800 Subject: [PATCH 5/7] set CARGO_BUILD_JOBS=2 --- .github/workflows/unit-tests.yml | 2 ++ mise.toml | 2 +- src/tool/subcommands/api_cmd/test_snapshot.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 4b29caf09976..88a63204baa0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -80,3 +80,5 @@ jobs: mise test quick env: FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 + # https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories + CARGO_BUILD_JOBS: 2 diff --git a/mise.toml b/mise.toml index 436302ac44ef..bc6330964739 100644 --- a/mise.toml +++ b/mise.toml @@ -200,7 +200,7 @@ mise task run test:docs ${usage_profile?} [tasks.codecov] description = "Generate codecov report" run = ''' -cargo llvm-cov -p forest-filecoin --codecov --no-default-features --features cargo-test --output-path lcov.info +cargo llvm-cov -p forest-filecoin --codecov --no-default-features --features "test cargo-test" --output-path lcov.info ''' [tasks."docs:format-spellcheck-dictionary"] diff --git a/src/tool/subcommands/api_cmd/test_snapshot.rs b/src/tool/subcommands/api_cmd/test_snapshot.rs index 80265660b6d8..fee3b3620ca1 100644 --- a/src/tool/subcommands/api_cmd/test_snapshot.rs +++ b/src/tool/subcommands/api_cmd/test_snapshot.rs @@ -179,6 +179,7 @@ mod tests { // To run a single test: cargo test --lib filecoin_multisig_statedecodeparams_1754230255631789 -- --nocapture include!(concat!(env!("OUT_DIR"), "/__rpc_regression_tests_gen.rs")); + #[allow(dead_code)] async fn rpc_regression_test_run(name: &str) { // Set proof parameter data dir and make sure the proofs are available { From d95de14b058420d8d6d5875c5d2b3f6e3411b999 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 19:36:17 +0800 Subject: [PATCH 6/7] revert temp changes --- .github/workflows/coverage.yml | 2 +- .github/workflows/forest.yml | 3 --- .github/workflows/unit-tests.yml | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e9dcacd36506..2580836edae2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,7 +44,7 @@ env: jobs: codecov: name: Coverage - # if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' + if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' runs-on: buildjet-4vcpu-ubuntu-2204 timeout-minutes: 45 steps: diff --git a/.github/workflows/forest.yml b/.github/workflows/forest.yml index 270499152348..47bc0883bd17 100644 --- a/.github/workflows/forest.yml +++ b/.github/workflows/forest.yml @@ -41,7 +41,6 @@ jobs: build-macos: name: Build MacOS runs-on: macos-latest - if: false steps: - name: Configure SCCache variables run: | @@ -66,7 +65,6 @@ jobs: build-ubuntu: name: Build Ubuntu runs-on: ubuntu-24.04 - if: false steps: - name: Configure SCCache variables run: | @@ -103,7 +101,6 @@ jobs: if-no-files-found: error cargo-publish-dry-run: runs-on: ubuntu-24.04 - if: false steps: - name: Checkout Sources uses: actions/checkout@v6 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 88a63204baa0..41681b75c327 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-24.04-arm # Run the job only if the PR is not a draft. # This is done to limit the runner cost. - # if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false steps: - name: Configure SCCache variables run: | From 191bf25dfeba3c523f25bc701834cdf352244d7b Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 19:36:53 +0800 Subject: [PATCH 7/7] resolve merge conflict --- .github/workflows/unit-tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3fc678af6378..26f316987f40 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -40,8 +40,6 @@ env: FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters RUST_LOG: error FOREST_ACTOR_BUNDLE_PATH: /var/tmp/forest_actor_bundle.car.zst - # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" jobs: tests-release: