Skip to content

Commit 1a0b2f1

Browse files
committed
Add all code changes from Zcash main (exclude testnet deployment)
1 parent 252dd79 commit 1a0b2f1

File tree

632 files changed

+30997
-22909
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

632 files changed

+30997
-22909
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ rustdocflags = [
8888
# Links in public docs can point to private items.
8989
"-Arustdoc::private_intra_doc_links",
9090
]
91+
92+
[env]
93+
RUST_BACKTRACE="1"

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[codespell]
2-
ignore-words-list = crate,Sur,inout,Groth,groth,re-use,
2+
ignore-words-list = crate,Sur,inout,Groth,groth,re-use,abl,
33
exclude-file = book/mermaid.min.js
44
skip = ./zebra-rpc/qa/rpc-tests,./supply-chain

.config/nextest.toml

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Nextest configuration for Zebra
2+
# This file centralizes all test execution configuration.
3+
4+
[profile.default]
5+
fail-fast = true
6+
status-level = "pass"
7+
8+
# --- All Tests profile ---
9+
# CI-friendly test selection.
10+
#
11+
# Runs fast unit/integration tests and explicitly excludes:
12+
# - 'check_no_git_dependencies' (it has its own profile)
13+
# - stateful or long-running tests that require a local cache dir or external
14+
# services (lightwalletd RPC/GRPC, full sync, checkpoint generation, mining
15+
# RPCs, etc.).
16+
#
17+
# Notes:
18+
# - CI now provides a default cache directory, so stateful tests are no longer
19+
# auto-skipped when the cache dir is undefined. To keep this profile fast and
20+
# deterministic, we exclude those tests here and offer dedicated profiles
21+
# below for running them when needed.
22+
# TODO: We need a better test architecture to run all non-stateful
23+
[profile.all-tests]
24+
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)"
25+
26+
# --- Individual Test Profiles ---
27+
28+
[profile.check-no-git-dependencies]
29+
default-filter = 'test(check_no_git_dependencies)'
30+
31+
[profile.sync-large-checkpoints-empty]
32+
slow-timeout = { period = "60m", terminate-after = 2 }
33+
default-filter = 'package(zebrad) and test(=sync_large_checkpoints_empty)'
34+
35+
[profile.sync-full-mainnet]
36+
slow-timeout = { period = "30000m", terminate-after = 1 }
37+
success-output = "immediate"
38+
default-filter = 'package(zebrad) and test(=sync_full_mainnet)'
39+
40+
[profile.sync-full-testnet]
41+
slow-timeout = { period = "1500m", terminate-after = 1 }
42+
success-output = "immediate"
43+
default-filter = 'package(zebrad) and test(=sync_full_testnet)'
44+
45+
[profile.sync-to-mandatory-checkpoint-mainnet]
46+
slow-timeout = { period = "1500m", terminate-after = 1 }
47+
success-output = "immediate"
48+
default-filter = 'package(zebrad) and test(=sync_to_mandatory_checkpoint_mainnet)'
49+
50+
[profile.sync-to-mandatory-checkpoint-testnet]
51+
slow-timeout = { period = "1500m", terminate-after = 1 }
52+
success-output = "immediate"
53+
default-filter = 'package(zebrad) and test(=sync_to_mandatory_checkpoint_testnet)'
54+
55+
[profile.sync-update-mainnet]
56+
slow-timeout = { period = "30m", terminate-after = 2 }
57+
success-output = "immediate"
58+
default-filter = 'package(zebrad) and test(=sync_update_mainnet)'
59+
60+
[profile.sync-past-mandatory-checkpoint-mainnet]
61+
slow-timeout = { period = "60m", terminate-after = 2 }
62+
default-filter = 'package(zebrad) and test(=sync_past_mandatory_checkpoint_mainnet)'
63+
64+
[profile.sync-past-mandatory-checkpoint-testnet]
65+
slow-timeout = { period = "60m", terminate-after = 2 }
66+
default-filter = 'package(zebrad) and test(=sync_past_mandatory_checkpoint_testnet)'
67+
68+
[profile.generate-checkpoints-mainnet]
69+
slow-timeout = { period = "90m", terminate-after = 1 }
70+
success-output = "immediate"
71+
default-filter = 'package(zebrad) and test(=generate_checkpoints_mainnet)'
72+
73+
[profile.generate-checkpoints-testnet]
74+
slow-timeout = { period = "90m", terminate-after = 1 }
75+
success-output = "immediate"
76+
default-filter = 'package(zebrad) and test(=generate_checkpoints_testnet)'
77+
78+
[profile.lwd-rpc-test]
79+
test-threads = 1
80+
slow-timeout = { period = "60m", terminate-after = 2 }
81+
default-filter = 'package(zebrad) and test(=lwd_rpc_test)'
82+
83+
[profile.lwd-integration]
84+
slow-timeout = { period = "30m", terminate-after = 2 }
85+
default-filter = 'package(zebrad) and test(=lwd_integration)'
86+
87+
[profile.lwd-sync-full]
88+
slow-timeout = { period = "30000m", terminate-after = 1 }
89+
success-output = "immediate"
90+
default-filter = 'package(zebrad) and test(=lwd_sync_full)'
91+
92+
[profile.lwd-sync-update]
93+
slow-timeout = { period = "30m", terminate-after = 2 }
94+
success-output = "immediate"
95+
default-filter = 'package(zebrad) and test(=lwd_sync_update)'
96+
97+
[profile.lwd-grpc-wallet]
98+
slow-timeout = { period = "60m", terminate-after = 2 }
99+
default-filter = 'package(zebrad) and test(=lwd_grpc_wallet)'
100+
101+
[profile.lwd-rpc-send-tx]
102+
slow-timeout = { period = "30m", terminate-after = 2 }
103+
default-filter = 'package(zebrad) and test(=lwd_rpc_send_tx)'
104+
105+
[profile.rpc-get-block-template]
106+
slow-timeout = { period = "30m", terminate-after = 2 }
107+
default-filter = 'package(zebrad) and test(=rpc_get_block_template)'
108+
109+
[profile.rpc-submit-block]
110+
slow-timeout = { period = "30m", terminate-after = 2 }
111+
default-filter = 'package(zebrad) and test(=rpc_submit_block)'
112+
113+
[profile.indexer-has-spending-transaction-ids]
114+
slow-timeout = { period = "30m", terminate-after = 2 }
115+
default-filter = 'package(zebrad) and test(=has_spending_transaction_ids)'
116+
117+
[profile.lightwalletd-test-suite]
118+
slow-timeout = { period = "60m", terminate-after = 2 }
119+
default-filter = 'package(zebrad) and test(=lightwalletd_test_suite)'
120+
121+
[profile.rpc-z-getsubtreesbyindex-snapshot]
122+
slow-timeout = { period = "30m", terminate-after = 2 }
123+
default-filter = 'package(zebrad) and test(=fully_synced_rpc_z_getsubtreesbyindex_snapshot_test)'

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
# Now un-exclude required files and folders:
1616
#
1717
!.cargo
18+
!.config
1819
!*.toml
1920
!*.lock
2021
!tower-*
2122
!zebra-*
2223
!zebrad
2324
!docker/entrypoint.sh
24-
!docker/default_zebra_config.toml
25+
!docker/default-zebra-config.toml

0 commit comments

Comments
 (0)