Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
6301c3b
ref(docker): improve cargo caching by aligning mounts with CARGO_HOME
gustavovalverde Apr 17, 2025
683db84
chore: fix typo
gustavovalverde Apr 29, 2025
6463d15
test: do not use cache mounts
gustavovalverde May 5, 2025
b3048dd
chore: trigger a build
gustavovalverde May 5, 2025
c53b392
imp(docker): revert to binds with `-Z checksum-freshness` Rust flag
gustavovalverde May 14, 2025
bf3605f
chore: trigger a build
gustavovalverde May 14, 2025
fec84d8
chore: reduce diff
gustavovalverde Jul 31, 2025
72d967f
fix: remove extra steps
gustavovalverde Jul 31, 2025
4b4ac6e
fix: reduce complexity
gustavovalverde Jul 31, 2025
f809abc
revert: use a better approach
gustavovalverde Jul 31, 2025
a5b0633
fix: create and own the cargo and cargo target folders
gustavovalverde Jul 31, 2025
ae5b63c
test building several features
gustavovalverde Aug 1, 2025
30cabdb
use nextest and avoid rustup compilation at runtime
gustavovalverde Aug 1, 2025
430579f
refactor: consolidate test features and migrate to cargo-nextest
gustavovalverde Aug 1, 2025
0fd48e5
fix: use correct package management
gustavovalverde Aug 1, 2025
a62ac20
fix: better handle different test cases
gustavovalverde Aug 1, 2025
3df79b9
refactor(ci): use nextest for triggering tests
gustavovalverde Aug 2, 2025
391e580
fix: use nextest overrides
gustavovalverde Aug 2, 2025
fc934b0
fix: delete extra profiles
gustavovalverde Aug 3, 2025
643452f
fix: use default filter instead
gustavovalverde Aug 3, 2025
cbf8507
refactor(testing): Use envars and nextest profiles for test control
gustavovalverde Aug 4, 2025
b766e68
refactor: remove compile-time feature gates from tests in favor of ru…
gustavovalverde Aug 4, 2025
e8cfc05
fix: build
gustavovalverde Aug 4, 2025
a5e10c9
feat: add indexer as a default feature
gustavovalverde Aug 4, 2025
3a883f0
refactor: make lightwalletd-grpc-tests and indexer features optional
gustavovalverde Aug 4, 2025
4a0755f
refactor(tests): remove unused import and use fully qualified path
gustavovalverde Aug 4, 2025
93311d0
refactor(docker): simplify dockerfile
gustavovalverde Aug 4, 2025
ed0607c
fix: formatting
gustavovalverde Aug 4, 2025
d7e72e0
fix: use the default cargo directories
gustavovalverde Aug 4, 2025
f1cd560
fix: build
gustavovalverde Aug 4, 2025
e88ddf0
fix: cargo ownership
gustavovalverde Aug 4, 2025
6da21f1
fix: use correct test filtering with nextest
gustavovalverde Aug 4, 2025
74a2e3e
fix: avoid cargo cache invalidation
gustavovalverde Aug 4, 2025
15a07ef
fix(ci): Correct Docker test execution and platform filtering
gustavovalverde Aug 4, 2025
ca325dc
fix: improve caching
gustavovalverde Aug 4, 2025
b844371
fix: segregate sync-past-mandatory test
gustavovalverde Aug 4, 2025
06efc95
fix: show output for specific test
gustavovalverde Aug 5, 2025
d99090e
revert: most sync and lwd changes
gustavovalverde Aug 5, 2025
dd9aeaf
fix: remove indexer
gustavovalverde Aug 5, 2025
45cf591
chore: reduce diff
gustavovalverde Aug 5, 2025
59fd617
fix: nextest timeouts
gustavovalverde Aug 5, 2025
a364067
Apply suggestions from code review
gustavovalverde Aug 6, 2025
c90c674
fix: linting errors
gustavovalverde Aug 6, 2025
d06e0f1
chore: update documentation and add missing profiles
gustavovalverde Aug 6, 2025
0e84e1e
chore: more documentation fixes
gustavovalverde Aug 6, 2025
b5b3d11
feat(config)!: migrate zebrad to config-rs; drop legacy env vars; upd…
gustavovalverde Aug 7, 2025
c6371f1
fix: remove extra variable validation
gustavovalverde Aug 7, 2025
7463aa4
Merge branch 'main' into imp-caching
gustavovalverde Aug 8, 2025
6dccf96
Merge branch 'imp-caching' into feat-config-rs
gustavovalverde Aug 8, 2025
e64534c
chore(deps,deny): bump workspace toml to 0.9; add skip for toml_datet…
gustavovalverde Aug 8, 2025
dc3882b
fix(test): adapt Docker tests to new config-rs and entrypoint
gustavovalverde Aug 8, 2025
aad07fa
fix: use correct test approach with Docker
gustavovalverde Aug 8, 2025
c76c6a5
fix: remaining bans
gustavovalverde Aug 8, 2025
12c3982
fix(test): correctly log the mining address
gustavovalverde Aug 8, 2025
159f685
refactor: remove STATE_CACHE_DIR and LWD_CACHE_DIR from workflows
gustavovalverde Aug 8, 2025
24451fc
fix: avoid test filesystem collisions with tests
gustavovalverde Aug 8, 2025
4244951
fix: use better mining configuration
gustavovalverde Aug 8, 2025
67d315a
chore: reduce diff and update docs
gustavovalverde Aug 8, 2025
22d3e9c
docs: update CHANGELOG with breaking changes
gustavovalverde Aug 8, 2025
274a890
chore: use a single `config.rs` for testing configurations
gustavovalverde Aug 8, 2025
661dd90
fix: linting
gustavovalverde Aug 8, 2025
565f53d
fix: simplify the grep command for mining
gustavovalverde Aug 8, 2025
19ab32a
chore: remove flaky test
gustavovalverde Aug 8, 2025
fa65b34
Merge branch 'main' into feat-config-rs
gustavovalverde Aug 11, 2025
0dad76f
Merge branch 'main' into feat-config-rs
gustavovalverde Aug 13, 2025
709ff0a
feat(config): deny sensitive env var overrides via suffix-based filter
gustavovalverde Aug 16, 2025
223a6c1
Merge branch 'main' into feat-config-rs
gustavovalverde Aug 18, 2025
be17a0d
fix:
gustavovalverde Aug 18, 2025
37def73
fix: SKIP_NETWORK_TESTS for all OSes
gustavovalverde Aug 20, 2025
8918aa1
fix: allow to change the Docker driver for building
gustavovalverde Aug 21, 2025
5aec055
fix: do not set provenance with default driver
gustavovalverde Aug 21, 2025
f55f067
fix: provenance default to none
gustavovalverde Aug 21, 2025
a17a2fd
fix: disable provenance
gustavovalverde Aug 21, 2025
06f5f17
fix: remove sbom as part of attestation
gustavovalverde Aug 21, 2025
6183b1e
feat(zebrad-config): error on sensitive env vars instead of ignoring
gustavovalverde Aug 21, 2025
1158848
Merge branch 'main' into feat-config-rs
gustavovalverde Aug 22, 2025
440bdf2
chore: Apply suggestions from code review
gustavovalverde Aug 22, 2025
1a1c5a0
fix: use `ZEBRA_NETWORK__NETWORK` instead of `NETWORK` in Zebra CI
gustavovalverde Aug 22, 2025
87e1605
refactor(config): simplify deprecated format checks and error handling
gustavovalverde Aug 23, 2025
baca560
chore: better comment
gustavovalverde Aug 23, 2025
ca9112f
chore: enhance comments for `all-tests` profile
gustavovalverde Aug 23, 2025
d967099
chore(deps): centralize `config` crate and bump to 0.15.14
gustavovalverde Aug 23, 2025
a0ed480
fix: wrong replace
gustavovalverde Aug 23, 2025
6abbcda
chore: delete extra committed file
gustavovalverde Aug 23, 2025
a14a504
feat(config): add env-prefix loader and use ZEBRA_TARGET for copy-state
gustavovalverde Aug 23, 2025
6dbd4ed
fix: PoisonError issues
gustavovalverde Aug 23, 2025
b655f1b
feat(config): add env prefix overrides for `copy-state` command
gustavovalverde Aug 23, 2025
7796f78
fix: temporarily move some tests out of test-all
gustavovalverde Aug 25, 2025
2a8776e
Removes `ZEBRA_NETWORK__NETWORK` env var from `Run all tests` (#9830)
arya2 Aug 26, 2025
ed53836
chore: apply suggestions from code review
gustavovalverde Aug 26, 2025
ebc9674
fix: format and clippy
gustavovalverde Aug 26, 2025
bcfce06
fix(tests): make `sync-to-mandatory-checkpoint` network-specific
gustavovalverde Aug 26, 2025
1cb799b
chore: remove `json` feature from `config`
gustavovalverde Aug 26, 2025
594874a
chore(test): add ZEBRA_ENV_PREFIX and use expect_err in tests
gustavovalverde Aug 26, 2025
afb0e5f
Merge branch 'main' into feat-config-rs
gustavovalverde Aug 26, 2025
76d3d18
fix: cargo.lock merge conflict
gustavovalverde Aug 26, 2025
72e588d
chore: suggestions from code review
gustavovalverde Aug 26, 2025
64aa261
chore: format
gustavovalverde Aug 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ status-level = "pass"
# below for running them when needed.
# TODO: We need a better test architecture to run all non-stateful
[profile.all-tests]
default-filter = "not test(check_no_git_dependencies) and not test(=fully_synced_rpc_z_getsubtreesbyindex_snapshot_test) and not test(=lwd_rpc_test) and not test(=lwd_rpc_send_tx) and not test(=lwd_grpc_wallet) and not test(=lwd_integration) and not test(=lwd_sync_full) and not test(=lwd_sync_update) and not test(=lightwalletd_test_suite) and not test(=rpc_get_block_template) and not test(=rpc_submit_block) and not test(=get_peer_info) and not test(~generate_checkpoints_) and not test(=trusted_chain_sync_handles_forks_correctly) and not test(=sync_update_mainnet) and not test(=trusted_chain_sync_handles_forks_correctly) and not test(=activate_mempool_mainnet) and not test(=downgrade_state_format) and not test(=invalidate_and_reconsider_block) and not test(=nu6_funding_streams_and_coinbase_balance)"
default-filter = "not test(check_no_git_dependencies) and not test(=fully_synced_rpc_z_getsubtreesbyindex_snapshot_test) and not test(=lwd_rpc_test) and not test(=lwd_rpc_send_tx) and not test(=lwd_grpc_wallet) and not test(=lwd_integration) and not test(=lwd_sync_full) and not test(=lwd_sync_update) and not test(=lightwalletd_test_suite) and not test(=rpc_get_block_template) and not test(=rpc_submit_block) and not test(=get_peer_info) and not test(~generate_checkpoints_) and not test(=sync_update_mainnet) and not test(=activate_mempool_mainnet)"

# --- Individual Test Profiles ---

Expand All @@ -42,10 +42,15 @@ slow-timeout = { period = "1500m", terminate-after = 1 }
success-output = "immediate"
default-filter = 'package(zebrad) and test(=sync_full_testnet)'

[profile.sync-to-mandatory-checkpoint]
[profile.sync-to-mandatory-checkpoint-mainnet]
slow-timeout = { period = "1500m", terminate-after = 1 }
success-output = "immediate"
default-filter = 'package(zebrad) and test(~sync_to_mandatory_checkpoint_)'
default-filter = 'package(zebrad) and test(=sync_to_mandatory_checkpoint_mainnet)'

[profile.sync-to-mandatory-checkpoint-testnet]
slow-timeout = { period = "1500m", terminate-after = 1 }
success-output = "immediate"
default-filter = 'package(zebrad) and test(=sync_to_mandatory_checkpoint_testnet)'

[profile.sync-update-mainnet]
slow-timeout = { period = "30m", terminate-after = 2 }
Expand Down Expand Up @@ -116,16 +121,3 @@ default-filter = 'package(zebrad) and test(=lightwalletd_test_suite)'
[profile.rpc-z-getsubtreesbyindex-snapshot]
slow-timeout = { period = "30m", terminate-after = 2 }
default-filter = 'package(zebrad) and test(=fully_synced_rpc_z_getsubtreesbyindex_snapshot_test)'

# TODO: This are not being tested in CI (they run forever)
[profile.downgrade-state-format]
slow-timeout = { period = "30m", terminate-after = 2 }
default-filter = 'package(zebrad) and test(=downgrade_state_format)'

[profile.invalidate-and-reconsider-block]
slow-timeout = { period = "30m", terminate-after = 2 }
default-filter = 'package(zebrad) and test(=invalidate_and_reconsider_block)'

[profile.nu6-funding-streams-and-coinbase-balance]
slow-timeout = { period = "30m", terminate-after = 2 }
default-filter = 'package(zebrad) and test(=nu6_funding_streams_and_coinbase_balance)'
2 changes: 1 addition & 1 deletion .github/workflows/sub-ci-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
app_name: zebrad
test_id: sync-to-mandatory-checkpoint
test_description: Test sync up to mandatory checkpoint
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-to-mandatory-checkpoint,TEST_SYNC_TO_CHECKPOINT=1"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-to-mandatory-checkpoint-${{ (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && 'mainnet' || 'testnet' }},TEST_SYNC_TO_CHECKPOINT=1"
network: ${{ inputs.network || vars.ZCASH_NETWORK }}
# This test commonly less than 3 hours by October 2024, but now it takes longer
is_long_test: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sub-ci-unit-tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty \
-e NEXTEST_PROFILE=all-tests \
-e ZEBRA_NETWORK__NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
-e RUST_LOG=${{ env.RUST_LOG }} \
-e RUST_BACKTRACE=${{ env.RUST_BACKTRACE }} \
-e RUST_LIB_BACKTRACE=${{ env.RUST_LIB_BACKTRACE }} \
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
dependencies = [
"hashbrown 0.15.4",
"hashbrown 0.15.5",
]

[[package]]
Expand Down Expand Up @@ -7087,7 +7087,7 @@ dependencies = [
"tokio",
"tokio-stream",
"toml 0.9.5",
"tonic 0.14.0",
"tonic 0.14.1",
"tonic-prost",
"tonic-prost-build",
"tower 0.4.13",
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ tokio-util = "0.7.14"
toml = "0.9.5"
tonic = "0.14"
tonic-prost = "0.14"
tonic-prost-build = "0.14"
tonic-prost-build = "0.14"
tonic-reflection = "0.14"
tower = "0.4.13"
tower-test = "0.4"
Expand All @@ -153,7 +153,7 @@ vergen-git2 = { version = "1.0", default-features = false }
x25519-dalek = "2.0.1"
zcash_note_encryption = "0.4.1"
zcash_script = "0.3.2"
config = { version = "0.15.14", features = ["toml", "json"] }
config = { version = "0.15.14", features = ["toml"] }

[patch.crates-io]
sapling-crypto = { git = "https://github.com/zcash/sapling-crypto", branch = "access-inner-param" }
Expand Down
6 changes: 3 additions & 3 deletions book/src/user/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ All available Cargo features are listed at

## Configuring Zebra

Zebra uses config-rs to layer configuration from defaults, an optional TOML file, and `ZEBRA_`-prefixed environment variables. When running with Docker, configure Zebra using any of the following (later items override earlier ones):
Zebra uses [config-rs](https://crates.io/crates/config) to layer configuration from defaults, an optional TOML file, and `ZEBRA_`-prefixed environment variables. When running with Docker, configure Zebra using any of the following (later items override earlier ones):

1. **Provide a specific config file path:** Set the `CONFIG_FILE_PATH` environment variable to point to your config file within the container. The entrypoint will pass it to `zebrad` via `--config`.
2. **Use the default config file:** Mount a config file to `/home/zebra/.config/zebrad.toml` (for example using the `configs:` mapping in `docker-compose.yml`). This file is loaded if `CONFIG_FILE_PATH` is not set.
Expand All @@ -90,7 +90,7 @@ You can verify your configuration by inspecting Zebra's logs at startup.

### RPC

Zebra's RPC server is disabled by default. Enable and configure it via TOML or environment variables:
Zebra's RPC server is disabled by default. Enable and configure it via the TOML configuration file, or configuration environment variables:

* **Using a config file:** Add or uncomment the `[rpc]` section in your `zebrad.toml`. Set `listen_addr` (e.g., `"0.0.0.0:8232"` for Mainnet).
* **Using environment variables:** Set `ZEBRA_RPC__LISTEN_ADDR` (e.g., `0.0.0.0:8232`). To disable cookie auth, set `ZEBRA_RPC__ENABLE_COOKIE_AUTH=false`. To change the cookie directory, set `ZEBRA_RPC__COOKIE_DIR=/path/inside/container`.
Expand Down Expand Up @@ -135,7 +135,7 @@ docker compose -f docker/docker-compose.lwd.yml up
```

Note that Docker will run Zebra with the RPC server enabled and the cookie
authentication mechanism disabled since Lightwalletd doesn't support it. In this
authentication mechanism disabled when running `docker compose -f docker/docker-compose.lwd.yml up`, since Lightwalletd doesn't support cookie authentication. In this
example, the RPC server is configured by setting `ZEBRA_` environment variables
directly in `docker/docker-compose.lwd.yml` (or an accompanying `.env` file).

Expand Down
8 changes: 7 additions & 1 deletion zebrad/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,13 @@ impl Application for ZebradApp {
// Ignore errors loading the config for some commands.
Err(_e) if command.cmd().should_ignore_load_config_error() => Default::default(),
Err(e) => {
status_err!("Zebra could not load its configuration: {}", e);
status_err!(
"Zebra could not load the provided configuration file and/or environment variables.\
This might mean you are using a deprecated format of the file, or are attempting to
configure deprecated or unknown fields via environment variables.\
You can generate a valid config by running \"zebrad generate\", \
and diff it against yours to examine any format inconsistencies."
);
// Convert config::ConfigError to FrameworkError using a generic IO error
let io_error = std::io::Error::new(
std::io::ErrorKind::InvalidData,
Expand Down
17 changes: 10 additions & 7 deletions zebrad/tests/acceptance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
//! will allow this test to run or give up. Value for the Mainnet full sync tests.
//! - `SYNC_FULL_TESTNET_TIMEOUT_MINUTES` env variable: The total number of minutes we
//! will allow this test to run or give up. Value for the Testnet full sync tests.
//! - `ZEBRA_STATE__CACHE_DIR` env variable: The path to a Zebra cached state directory.
//! - A zebrad state cache directory is required for some tests, either at the default state cache
//! directory path, or at the path defined in the `ZEBRA_STATE__CACHE_DIR` env variable.
//! For some sync tests, this directory needs to be created in the file system
//! with write permissions.
//!
Expand Down Expand Up @@ -903,7 +904,9 @@ fn invalid_generated_config() -> Result<()> {
let output = child.wait_with_output()?;

// Check that Zebra produced an informative message.
output.stderr_contains("Zebra could not load its configuration: invalid type: map, expected a string for key `mempool.eviction_memory_time`")?;
output.stderr_contains(
"Zebra could not load the provided configuration file and/or environment variables",
)?;

Ok(())
}
Expand Down Expand Up @@ -1784,7 +1787,7 @@ fn lwd_integration() -> Result<()> {

/// Make sure `zebrad` can sync from peers, but don't actually launch `lightwalletd`.
///
/// This test only runs when a persistent cached state is configured
/// This test only runs when a persistent cached state directory path is configured
/// (for example, by setting `ZEBRA_STATE__CACHE_DIR`).
///
/// This test might work on Windows.
Expand All @@ -1797,7 +1800,7 @@ fn sync_update_mainnet() -> Result<()> {
///
/// This test only runs when:
/// - `TEST_LIGHTWALLETD` is set,
/// - a persistent cached state is configured (e.g., via `ZEBRA_STATE__CACHE_DIR`), and
/// - a persistent cached state directory path is configured (e.g., via `ZEBRA_STATE__CACHE_DIR`), and
/// - Zebra is compiled with `--features=lightwalletd-grpc-tests`.
///
/// This test doesn't work on Windows, so it is always skipped on that platform.
Expand Down Expand Up @@ -1831,9 +1834,9 @@ fn lwd_sync_full() -> Result<()> {
///
/// Runs the tests in this order:
/// - launch lightwalletd with empty states,
/// - if a cached Zebra state is configured:
/// - if a cached Zebra state directory path is configured:
/// - run a full sync
/// - if a cached Zebra state is configured:
/// - if a cached Zebra state directory path is configured:
/// - run a quick update sync,
/// - run a send transaction gRPC test,
/// - run read-only gRPC tests.
Expand All @@ -1849,7 +1852,7 @@ async fn lightwalletd_test_suite() -> Result<()> {
launches_lightwalletd: true,
})?;

// Only runs when a cached Zebra state is configured.
// Only runs when a cached Zebra state directory path is configured with an environment variable.
lwd_integration_test(UpdateZebraCachedStateNoRpc)?;

// These tests need the compile-time gRPC feature
Expand Down
3 changes: 0 additions & 3 deletions zebrad/tests/common/cached_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ use crate::common::{
test_type::TestType,
};

// Deprecated: tests should read the cache dir from `ZEBRA_STATE__CACHE_DIR` if they need
// an external cached state directory. The actual application reads this via config-rs.

/// In integration tests, the interval between database format checks for newly added blocks.
///
/// This should be short enough that format bugs cause CI test failures,
Expand Down
6 changes: 3 additions & 3 deletions zebrad/tests/common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ pub fn default_test_config(net: &Network) -> Result<ZebradConfig> {

// Determine the effective network kind: prefer environment override if present.
let effective_kind: NetworkKind = match env::var("ZEBRA_NETWORK__NETWORK").ok().as_deref() {
Some("Mainnet") | Some("mainnet") | Some("Main") | Some("main") => NetworkKind::Mainnet,
Some("Regtest") | Some("regtest") => NetworkKind::Regtest,
Some("Testnet") | Some("testnet") => NetworkKind::Testnet,
Some("Mainnet") => NetworkKind::Mainnet,
Some("Regtest") => NetworkKind::Regtest,
Some("Testnet") => NetworkKind::Testnet,
_ => net.kind(),
};

Expand Down
4 changes: 2 additions & 2 deletions zebrad/tests/common/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ pub fn check_sync_logs_until(
Ok(zebrad)
}

/// Returns the cache directory for Zebra's state, as configured via config-rs.
/// Returns the cache directory for Zebra's state, as configured with [`ZebradConfig::load`] with config-rs.
///
/// Uses the resolved configuration from `ZebradConfig::load(None)`, which
/// Uses the resolved configuration from [`ZebradConfig::load(None)`](ZebradConfig::load), which
/// incorporates defaults, optional TOML, and environment overrides.
fn get_zebra_cached_state_dir() -> PathBuf {
ZebradConfig::load(None)
Expand Down
4 changes: 2 additions & 2 deletions zebrad/tests/common/test_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl TestType {
if default_path.exists() {
Some(default_path)
} else {
tracing::info!(
tracing::warn!(
?default_path,
"skipped {test_name:?} {self:?} lightwalletd test: no cached state found at default path",
);
Expand All @@ -307,7 +307,7 @@ impl TestType {
if default_path.exists() {
Some(default_path)
} else {
tracing::info!(
tracing::warn!(
?default_path,
"running {test_name:?} {self:?} lightwalletd test without cached state (no default found)",
);
Expand Down
Loading
Loading