Skip to content

Commit b5de8d1

Browse files
committed
FOREST_TEST_SKIP_PROOF_PARAM_CHECK
1 parent f63bdc1 commit b5de8d1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
env:
9090
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
9191
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
92+
FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1
9293
- id: get-cache-hash
9394
run: |
9495
ls -lhR ~/.cache/forest/test/rpc-snapshots/rpc_test/*

src/utils/proofs_api/paramfetch.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ pub enum SectorSizeOpt {
6060

6161
/// Ensures the parameter files are downloaded to cache dir
6262
pub async fn ensure_proof_params_downloaded() -> anyhow::Result<()> {
63+
#[cfg(test)]
64+
if is_env_truthy("FOREST_TEST_SKIP_PROOF_PARAM_CHECK") {
65+
return Ok(());
66+
}
67+
6368
let data_dir = std::env::var(PROOFS_PARAMETER_CACHE_ENV).unwrap_or_default();
6469
if data_dir.is_empty() {
6570
anyhow::bail!("Proof parameter data dir is not set");

0 commit comments

Comments
 (0)