Skip to content
Merged
Show file tree
Hide file tree
Changes from 78 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
3 changes: 2 additions & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ status-level = "pass"

# --- All Tests profile ---
# Runs all tests except 'check_no_git_dependencies'
# TODO: We must find a better way to remove tests that are ignored, but also require a state or are flaky
[profile.all-tests]
default-filter = 'not test(check_no_git_dependencies)'
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)"

# --- Individual Test Profiles ---

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
--container-stdin \
--container-tty \
--container-image ${{ vars.GAR_BASE }}/zebrad@${{ needs.build.outputs.image_digest }} \
--container-env "NETWORK=${{ matrix.network }},LOG_FILE=${{ vars.CD_LOG_FILE }},SENTRY_DSN=${{ vars.SENTRY_DSN }}" \
--container-env "ZEBRA_NETWORK__NETWORK=${{ matrix.network }},LOG_FILE=${{ vars.CD_LOG_FILE }},SENTRY_DSN=${{ vars.SENTRY_DSN }}" \
--service-account ${{ vars.GCP_DEPLOYMENTS_SA }} \
--scopes cloud-platform \
--metadata google-logging-enabled=true,google-logging-use-fluentbit=true,google-monitoring-enabled=true \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
- name: Skip network tests on Ubuntu
# Ubuntu runners don't have reliable network or DNS during test steps.
shell: bash
run: echo "ZEBRA_SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV
run: echo "SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV

Check warning on line 87 in .github/workflows/ci-coverage.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ci-coverage.yml#L87

shellcheck reported issue in this script: SC2086:info:1:32: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/ci-coverage.yml:87:9: shellcheck reported issue in this script: SC2086:info:1:32: Double quote to prevent globbing and word splitting [shellcheck]

- name: Minimise proptest cases in Coverage tests
# We set cases to 1, because some tests already run 1 case by default.
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci-unit-tests-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "LIBCLANG_PATH=C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Skip network tests on Ubuntu and Windows
- name: Skip network tests on all OSes
# TODO: remove this step once we have reliable network on all OSes.
# Ubuntu runners don't have reliable network or DNS during test steps.
# Windows runners have an unreliable network.
# macOS is affected locally and in the CI, so we skip the tests on all OSes.
shell: bash
if: matrix.os != 'macos-latest'
run: echo "ZEBRA_SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV
run: echo "SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV

Check warning on line 153 in .github/workflows/ci-unit-tests-os.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ci-unit-tests-os.yml#L153

shellcheck reported issue in this script: SC2086:info:1:32: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/ci-unit-tests-os.yml:153:9: shellcheck reported issue in this script: SC2086:info:1:32: Double quote to prevent globbing and word splitting [shellcheck]

- name: Minimise proptest cases on macOS and Windows
# We set cases to 1, because some tests already run 1 case by default.
Expand All @@ -173,7 +174,7 @@
# Explicitly run any tests that are usually #[ignored]

- name: Run zebrad large sync tests${{ matrix.features }}
# Skip the entire step on Ubuntu and Windows, because the test would be skipped anyway due to ZEBRA_SKIP_NETWORK_TESTS
# Skip the entire step on Ubuntu and Windows, because the test would be skipped anyway due to SKIP_NETWORK_TESTS
if: matrix.os == 'macos-latest'
run: |
cargo test --features "${{ matrix.features }}" --release --verbose --package zebrad --test acceptance -- --nocapture --include-ignored sync_large_checkpoints_
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/sub-ci-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ on:
#! The job names in `ci-integration-tests-gcp.yml`, `ci-integration-tests-gcp.patch.yml` and
#! `ci-integration-tests-gcp.patch-external.yml` must be kept in sync.
#!
#! The test variables ZEBRA_CACHE_DIR and LWD_CACHE_DIR used in some steps are set in the
#! `sub-deploy-integration-tests-gcp.yml` workflow file as inputs. If modified in this file, they must
#! also be updated in the `sub-deploy-integration-tests-gcp.yml` file.
jobs:
# Check if the cached state disks used by the tests are available for the default network.
#
Expand Down Expand Up @@ -82,7 +79,7 @@ jobs:
app_name: zebrad
test_id: sync-to-mandatory-checkpoint
test_description: Test sync up to mandatory checkpoint
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-to-mandatory-checkpoint,ZEBRA_TEST_SYNC_TO_CHECKPOINT=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-to-mandatory-checkpoint,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 All @@ -106,7 +103,7 @@ jobs:
app_name: zebrad
test_id: sync-past-mandatory-checkpoint
test_description: Test full validation sync from a cached state
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-past-mandatory-checkpoint-${{ (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && 'mainnet' || 'testnet' }},ZEBRA_TEST_SYNC_PAST_CHECKPOINT=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-past-mandatory-checkpoint-${{ (inputs.network || vars.ZCASH_NETWORK) == 'Mainnet' && 'mainnet' || 'testnet' }},TEST_SYNC_PAST_CHECKPOINT=1"
needs_zebra_state: true
saves_to_disk: false
disk_suffix: checkpoint
Expand Down Expand Up @@ -138,7 +135,7 @@ jobs:
test_id: sync-full-mainnet
test_description: Test a full sync up to the tip
# TODO: update the test to use {{ input.network }} instead?
test_variables: NETWORK=Mainnet,NEXTEST_PROFILE=sync-full-mainnet,SYNC_FULL_MAINNET_TIMEOUT_MINUTES=0,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra
test_variables: ZEBRA_NETWORK__NETWORK=Mainnet,NEXTEST_PROFILE=sync-full-mainnet,SYNC_FULL_MAINNET_TIMEOUT_MINUTES=0
# This test runs for longer than 6 hours, so it needs multiple jobs
is_long_test: true
needs_zebra_state: false
Expand All @@ -165,7 +162,7 @@ jobs:
app_name: zebrad
test_id: sync-update-mainnet
test_description: Test syncing to tip with a Zebra tip state
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-update-mainnet,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=sync-update-mainnet"
needs_zebra_state: true
# update the disk on every PR, to increase CI speed
saves_to_disk: true
Expand Down Expand Up @@ -196,7 +193,7 @@ jobs:
test_id: generate-checkpoints-mainnet
test_description: Generate Zebra checkpoints on mainnet
# TODO: update the test to use {{ input.network }} instead?
test_variables: NETWORK=Mainnet,NEXTEST_PROFILE=generate-checkpoints-mainnet,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra
test_variables: ZEBRA_NETWORK__NETWORK=Mainnet,NEXTEST_PROFILE=generate-checkpoints-mainnet
needs_zebra_state: true
# sync-update-mainnet updates the disk on every PR, so we don't need to do it here
saves_to_disk: false
Expand Down Expand Up @@ -230,7 +227,7 @@ jobs:
app_name: zebrad
test_id: sync-full-testnet
test_description: Test a full sync up to the tip on testnet
test_variables: NETWORK=Testnet,NEXTEST_PROFILE=sync-full-testnet,SYNC_FULL_TESTNET_TIMEOUT_MINUTES=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra
test_variables: ZEBRA_NETWORK__NETWORK=Testnet,NEXTEST_PROFILE=sync-full-testnet,SYNC_FULL_TESTNET_TIMEOUT_MINUTES=1
network: Testnet
# A full testnet sync could take 2-10 hours in April 2023.
# The time varies a lot due to the small number of nodes.
Expand Down Expand Up @@ -261,7 +258,7 @@ jobs:
app_name: zebrad
test_id: generate-checkpoints-testnet
test_description: Generate Zebra checkpoints on testnet
test_variables: NETWORK=Testnet,NEXTEST_PROFILE=generate-checkpoints-testnet,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra
test_variables: ZEBRA_NETWORK__NETWORK=Testnet,NEXTEST_PROFILE=generate-checkpoints-testnet
network: Testnet
needs_zebra_state: true
# update the disk on every PR, to increase CI speed
Expand Down Expand Up @@ -295,7 +292,7 @@ jobs:
app_name: lightwalletd
test_id: lwd-sync-full
test_description: Test lightwalletd full sync
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-sync-full,ZEBRA_TEST_LIGHTWALLETD=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra,LWD_CACHE_DIR=/home/zebra/.cache/lwd"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-sync-full,TEST_LIGHTWALLETD=1"
# This test runs for longer than 6 hours, so it needs multiple jobs
is_long_test: true
needs_zebra_state: true
Expand All @@ -322,7 +319,7 @@ jobs:
app_name: lightwalletd
test_id: lwd-sync-update
test_description: Test lightwalletd update sync with both states
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-sync-update,ZEBRA_TEST_LIGHTWALLETD=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra,LWD_CACHE_DIR=/home/zebra/.cache/lwd"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-sync-update,TEST_LIGHTWALLETD=1"
needs_zebra_state: true
needs_lwd_state: true
saves_to_disk: true
Expand Down Expand Up @@ -350,7 +347,7 @@ jobs:
app_name: lightwalletd
test_id: lwd-rpc-test
test_description: Test lightwalletd RPC with a Zebra tip state
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-rpc-test,ZEBRA_TEST_LIGHTWALLETD=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-rpc-test,TEST_LIGHTWALLETD=1"
needs_zebra_state: true
saves_to_disk: false
secrets: inherit
Expand All @@ -372,7 +369,7 @@ jobs:
app_name: lightwalletd
test_id: lwd-rpc-send-tx
test_description: Test sending transactions via lightwalletd
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-rpc-send-tx,ZEBRA_TEST_LIGHTWALLETD=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra,LWD_CACHE_DIR=/home/zebra/.cache/lwd"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-rpc-send-tx,TEST_LIGHTWALLETD=1"
needs_zebra_state: true
needs_lwd_state: true
saves_to_disk: false
Expand All @@ -395,7 +392,7 @@ jobs:
app_name: lightwalletd
test_id: lwd-grpc-wallet
test_description: Test gRPC calls via lightwalletd
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-grpc-wallet,ZEBRA_TEST_LIGHTWALLETD=1,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra,LWD_CACHE_DIR=/home/zebra/.cache/lwd"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=lwd-grpc-wallet,TEST_LIGHTWALLETD=1"
needs_zebra_state: true
needs_lwd_state: true
saves_to_disk: false
Expand All @@ -422,7 +419,7 @@ jobs:
app_name: zebrad
test_id: rpc-get-block-template
test_description: Test getblocktemplate RPC method via Zebra's rpc server
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=rpc-get-block-template,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=rpc-get-block-template"
needs_zebra_state: true
needs_lwd_state: false
saves_to_disk: false
Expand All @@ -445,7 +442,7 @@ jobs:
app_name: zebrad
test_id: rpc-submit-block
test_description: Test submitting blocks via Zebra's rpc server
test_variables: "NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=rpc-submit-block,ZEBRA_CACHE_DIR=/home/zebra/.cache/zebra"
test_variables: "ZEBRA_NETWORK__NETWORK=${{ inputs.network || vars.ZCASH_NETWORK }},NEXTEST_PROFILE=rpc-submit-block"
needs_zebra_state: true
needs_lwd_state: false
saves_to_disk: false
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/sub-ci-unit-tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty \
-e NEXTEST_PROFILE=all-tests \
-e NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
-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 All @@ -74,14 +74,12 @@
short-length: 7

- name: Run zebrad large sync tests
env:
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
run: |
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty \
-e NEXTEST_PROFILE=sync-large-checkpoints-empty \
-e ZEBRA_TEST_LARGE_CHECKPOINTS=1 \
-e NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
-e TEST_LARGE_CHECKPOINTS=1 \
-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 All @@ -103,14 +101,12 @@
short-length: 7

- name: Run tests with empty lightwalletd launch
env:
NETWORK: ${{ inputs.network || vars.ZCASH_NETWORK }}
run: |
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty \
-e NEXTEST_PROFILE=lwd-integration \
-e ZEBRA_TEST_LIGHTWALLETD=1 \
-e NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
-e TEST_LIGHTWALLETD=1 \
-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 Expand Up @@ -163,7 +159,7 @@
docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}@${{ inputs.image_digest }}
docker run --tty \
-e NEXTEST_PROFILE=check-no-git-dependencies \
-e NETWORK="${{ inputs.network || vars.ZCASH_NETWORK }}" \
-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
2 changes: 1 addition & 1 deletion .github/workflows/sub-find-cached-disks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Format network name and branch name for disks
run: |
NETWORK_CAPS="${{ inputs.network }}"
echo "NETWORK=${NETWORK_CAPS,,}" >> "$GITHUB_ENV"
echo "ZEBRA_NETWORK__NETWORK=${NETWORK_CAPS,,}" >> "$GITHUB_ENV"
LONG_GITHUB_REF="${{ env.GITHUB_REF_POINT_SLUG_URL }}"
echo "SHORT_GITHUB_REF=${LONG_GITHUB_REF:0:12}" >> "$GITHUB_ENV"

Expand Down
Loading
Loading