dependabot[bot]
b4f6251c9d
build(deps): bump once_cell from 1.7.2 to 1.8.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.7.2 to 1.8.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.7.2...v1.8.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 17:06:52 -04:00
teor
56ef08e385
Rewrite acceptance test matching
...
- Add a custom semver match for `zebrad` versions
- Prefer "line contains string" matches, so tests ignore minor changes
- Escape regex meta-characters when a literal string match is intended
- Rename test functions so they are more precise
- Rewrite match internals to remove duplicate code and enable custom matches
- Document match functions
2021-06-10 22:46:33 -04:00
Alfredo Garcia
96a1b661f0
Rate limit initial genesis block download retries, Credit: Equilibrium ( #2255 )
...
* implement and test a rate limit in `request_genesis()`
* add `request_genesis_is_rate_limited` test to sync
* add ensure_timeouts constraint for GENESIS_TIMEOUT_RETRY
* Suppress expected warning logs in zebrad tests
Co-authored-by: teor <teor@riseup.net>
2021-06-09 23:39:51 +00:00
Pili Guerra
9aafa79fa3
Update versions for zebra v1.0.0-alpha.10 release ( #2245 )
...
* Update versions for zebra v1.0.0-alpha.10 release
* Update Cargo.lock
2021-06-09 12:56:36 +02:00
teor
34b2759f52
Allow multi-digit alpha versions ( #2250 )
...
This is a temporary fix for `alpha.10`, before a major refactor of the tests.
2021-06-07 10:59:23 +02:00
teor
b18c32f30f
Add the database format to the panic metadata ( #2249 )
...
Seems like it might be useful as we add more stuff to the state.
2021-06-04 14:42:15 +10:00
teor
2f0f379a9e
Standardise clippy lints and require docs ( #2238 )
...
* Standardise lints across Zebra crates, and add missing docs
The only remaining module with missing docs is `zebra_test::command`
* Todo -> TODO
* Clarify what a transcript ErrorChecker does
Also change `Error` -> `BoxError`
* TransError -> ExpectedTranscriptError
* Output Descriptions -> Output descriptions
2021-06-04 08:48:40 +10:00
dependabot[bot]
d8fc8ac4f6
build(deps): bump inferno from 0.10.5 to 0.10.6
...
Bumps [inferno](https://github.com/jonhoo/inferno ) from 0.10.5 to 0.10.6.
- [Release notes](https://github.com/jonhoo/inferno/releases )
- [Changelog](https://github.com/jonhoo/inferno/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jonhoo/inferno/compare/v0.10.5...v0.10.6 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 09:57:10 -04:00
dependabot[bot]
55403c8d57
build(deps): bump vergen from 5.1.7 to 5.1.8
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.7 to 5.1.8.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.7...5.1.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 09:55:30 -04:00
Pili Guerra
e3d2ae0a8a
Update versions for zebra v1.0.0-alpha.9 release ( #2196 )
...
* Update versions for zebra v1.0.0-alpha.9 release
* Update Cargo.lock
2021-05-26 13:01:39 +02:00
dependabot[bot]
bce1c99664
build(deps): bump vergen from 5.1.6 to 5.1.7 ( #2189 )
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.6 to 5.1.7.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.6...5.1.7 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 20:39:13 +10:00
dependabot[bot]
093075d69a
build(deps): bump vergen from 5.1.2 to 5.1.6
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.2 to 5.1.6.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.2...5.1.6 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-19 20:06:10 -04:00
teor
54080b0f6c
Add a "modified" flag to the panic report metadata
...
If the source code doesn't match the commit, the reported version will
end with ".modified".
2021-05-20 09:00:56 +10:00
teor
52dcaa2544
Stop ignoring lightweight git tags in panic metadata
...
Unfortunately, Zebra's first alpha release is an annotated tag, but
GitHub defaults to lightweight tags. (At least for pre-releases.)
2021-05-20 09:00:56 +10:00
teor
bcc59d11c3
Refactor metadata so git vars must be optional
...
We don't test non-git builds, but we can use the type system to make sure
they are always optional.
2021-05-20 09:00:56 +10:00
teor
b6c5ef8041
Add VERGEN_CARGO_PROFILE to the panic env vars
...
Some panics should only happen on debug profiles.
2021-05-20 09:00:56 +10:00
teor
62f053de9e
Enable cargo env vars when there is no .git
...
But still disable git env vars.
This change requires vergen 5.1.4 or later.
2021-05-20 09:00:56 +10:00
teor
92828bbb29
Reliability: send local listener address to peers
...
When peers ask for peer addresses, add our local listener address to the
set of addresses, sanitize, then truncate. Sanitize shuffles addresses,
so if there are lots of addresses in the address book, our address will
only be sent to some peers.
2021-05-18 14:02:19 +10:00
Pili Guerra
500dc2e511
Update version strings for Zebra v1.0.0-alpha.8 release ( #2136 )
...
* Update versions for zebra v1.0.0-alpha.8 release
* Update tower-batch and tower-fallback version strings
* Update Cargo.lock
2021-05-12 14:27:36 +02:00
teor
74e155ff9f
Spelling: gossipped -> gossiped ( #2119 )
2021-05-07 13:01:11 +02:00
dependabot[bot]
7721544bdb
build(deps): bump inferno from 0.10.4 to 0.10.5
...
Bumps [inferno](https://github.com/jonhoo/inferno ) from 0.10.4 to 0.10.5.
- [Release notes](https://github.com/jonhoo/inferno/releases )
- [Changelog](https://github.com/jonhoo/inferno/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jonhoo/inferno/compare/v0.10.4...v0.10.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 08:54:44 -04:00
dependabot[bot]
a04022adfc
build(deps): bump inferno from 0.10.3 to 0.10.4
...
Bumps [inferno](https://github.com/jonhoo/inferno ) from 0.10.3 to 0.10.4.
- [Release notes](https://github.com/jonhoo/inferno/releases )
- [Changelog](https://github.com/jonhoo/inferno/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jonhoo/inferno/compare/v0.10.3...v0.10.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 07:15:51 -04:00
dependabot[bot]
5632d8cbb8
build(deps): bump tracing-subscriber from 0.2.17 to 0.2.18 ( #2097 )
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.17 to 0.2.18.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.17...tracing-subscriber-0.2.18 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 09:13:14 +10:00
teor
b70b74c93a
Revert "build(deps): bump vergen from 5.1.2 to 5.1.5" ( #2078 )
...
This reverts commit 555805171c .
2021-04-28 09:38:10 -04:00
dependabot[bot]
555805171c
build(deps): bump vergen from 5.1.2 to 5.1.5
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.2 to 5.1.5.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.2...5.1.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-27 10:26:26 -04:00
dependabot[bot]
9ac0319602
build(deps): bump dirs from 3.0.1 to 3.0.2
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 14:04:31 -04:00
Pili Guerra
ea1446ee92
Update version strings for Zebra v1.0.0-alpha.7 release ( #2056 )
...
* Update version strings for Zebra v1.0.0-alpha.7 release
2021-04-23 12:56:25 +00:00
teor
7e2c3a2fc7
Clarify a duplicate log message
2021-04-21 23:59:29 -04:00
Kirill Fomichev
5b2f1cdfd5
Add journald support through tracing-journald ( #2034 )
...
* Add journald support through tracing-journald
* change journald to use_journald
* more fixes
2021-04-22 09:31:06 +10:00
teor
96b3c94dbc
Add the new commit count and git hash to the version ( #2038 )
...
* Use the git version + new commit count + hash for the app version
This helps diagnose bugs in versions of Zebra built from git branches,
rather than git version tags.
* Fill in assert
* Also log semver string
* Fix syntax
* Handle vergen using the cargo package version or raw git tag
* s/Semver/SemVer/
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
2021-04-21 22:14:36 +00:00
teor
0203d1475a
Refactor and document correctness for std::sync::Mutex<AddressBook>
2021-04-21 17:14:47 -04:00
teor
9e45e6bb23
Revert "Revert "build(deps): bump vergen from 5.1.1 to 5.1.2""
...
This reverts commit ccf5d82517 .
2021-04-20 19:30:20 -04:00
teor
79c0c4ec57
Stop assuming there will always be a git commit
...
Enable builds where:
* there is no google cloud git commit env var, and
* there is no `.git` directory.
By making all `vergen` env vars optional, and skipping any env vars that
don't exist.
2021-04-20 13:48:31 -04:00
Deirdre Connolly
ccf5d82517
Revert "build(deps): bump vergen from 5.1.1 to 5.1.2"
...
This reverts commit 962cb9c579 .
2021-04-20 10:19:02 -04:00
dependabot[bot]
962cb9c579
build(deps): bump vergen from 5.1.1 to 5.1.2
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/5.1.1...5.1.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 10:18:45 -04:00
Kirill Fomichev
43e792b9a4
Update to vergen 5, add branch, commit time, and build target to the panic metadata, automatically update app version from crate version ( #2029 )
...
* build(deps): bump vergen from 3.2.0 to 5.1.1
* fix hardcoded version for Tracing struct
* add additional metadata
* remove extra allocations for metadata
* Remove zebrad code version from release checklist
The zebrad code automatically uses the crate version now.
* Sort panic metadata into rough categories
Co-authored-by: teor <teor@riseup.net>
2021-04-20 06:48:14 +10:00
teor
1e4e5924ca
clippy: factor common code out of an if-else block
2021-04-14 23:16:45 -04:00
dependabot[bot]
7d36a5e2c3
build(deps): bump color-eyre from 0.5.10 to 0.5.11
...
Bumps [color-eyre](https://github.com/yaahc/color-eyre ) from 0.5.10 to 0.5.11.
- [Release notes](https://github.com/yaahc/color-eyre/releases )
- [Changelog](https://github.com/yaahc/color-eyre/blob/v0.5.11/CHANGELOG.md )
- [Commits](https://github.com/yaahc/color-eyre/compare/v0.5.10...v0.5.11 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-14 09:22:27 -04:00
teor
a417c7c8c7
Use meaningful names for select! variables
2021-04-13 23:56:16 -04:00
Alfredo Garcia
5ec05e91e1
update version strings for v1.0.0-alpha.6
2021-04-08 18:48:34 -04:00
teor
5bf0a2954e
Update a test comment
2021-04-07 19:25:31 +10:00
teor
bb3147dd1e
Update an outdated comment
2021-04-07 19:23:48 +10:00
teor
306fa88214
Document the correctness of Poll::Pending wakeups
2021-03-27 08:55:49 -04:00
teor
829a6f11c5
Document the behaviour of the `select!` macro
2021-03-27 08:55:49 -04:00
Deirdre Connolly
7efc700aca
Merge pull request #1713 from ZcashFoundation/use-groth16-batch-math
...
Use batch optimizations, load params in groth16::Verifier, verify Spend & Output descriptions in transaction verifier
2021-03-24 12:28:25 -04:00
Deirdre Connolly
ca1d2de87d
Bump versions for v1.0.0-alpha.5 ( #1932 )
...
Zebra's latest alpha checkpoints on Canopy activation, continues our work on NU5, and fixes a security issue.
Some notable changes include:
## Added
- Log address book metrics when PeerSet or CandidateSet don't have many peers (#1906 )
- Document test coverage workflow (#1919 )
- Add a final job to CI, so we can easily require all the CI jobs to pass (#1927 )
## Changed
- Zebra has moved its mandatory checkpoint from Sapling to Canopy (#1898 , #1926 )
- This is a breaking change for users that depend on the exact height of the mandatory checkpoint.
## Fixed
- tower-batch: wake waiting workers on close to avoid hangs (#1908 )
- Assert that pre-Canopy blocks use checkpointing (#1909 )
- Fix CI disk space usage by disabling incremental compilation in coverage builds (#1923 )
## Security
- Stop relying on unchecked length fields when preallocating vectors (#1925 )
2021-03-22 22:05:01 -04:00
teor
74cc30c307
Change the cached sync tests to canopy
...
This change requires a cached state rebuild. The rebuilt state will be
significantly larger.
2021-03-18 10:13:47 +10:00
Alfredo Garcia
d49eaab68e
Bump versions for zebrad 1.0.0-alpha.4 ( #1913 )
...
* Bump versions for zebrad 1.0.0-alpha.4
* add Cargo.lock
2021-03-16 21:12:37 -03:00
Jack Grigg
bae9a7ecd5
Expose binary data in metrics
...
This enables slicing and aggregating metrics based on zebrad version:
https://www.robustperception.io/exposing-the-software-version-to-prometheus
2021-03-17 09:38:07 +10:00
dependabot[bot]
b618f5b522
build(deps): bump tracing-subscriber from 0.2.16 to 0.2.17
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.16 to 0.2.17.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.16...tracing-subscriber-0.2.17 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-14 19:37:24 -04:00
teor
1e1859f5a3
Merge pull request #1887 from ZcashFoundation/revert-1877-revert-1789-large-sync-testnet-disable
...
Revert "Revert "Disable unreliable `sync_large_checkpoints_testnet`""
This disables the failing large testnet sync test.
2021-03-12 12:31:19 +10:00
teor
d494af1e90
Document how the syncer resists memory DoS
2021-03-11 06:24:46 -05:00
teor
c6358b157c
Reduce inbound concurrency to limit memory usage
...
Inbound malicious blocks can use a large amount of RAM when
deserialized. Limit inbound concurrency, so that the total amount
of RAM remains small.
2021-03-11 06:24:46 -05:00
teor
475deaf655
Adjust the crawl interval and acceptance test timeout ( #1878 )
2021-03-11 07:53:37 +10:00
teor
ac4611ffc4
Revert "Disable unreliable `sync_large_checkpoints_testnet` ( #1789 )"
...
This reverts commit bae49e54df .
2021-03-10 02:14:09 -05:00
dependabot[bot]
70327dc9f5
build(deps): bump once_cell from 1.6.0 to 1.7.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.6.0...v1.7.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-25 15:32:03 -05:00
teor
fb6acfaff7
Update the acceptance test port range ( #1812 )
...
Windows can reserve or use ports up to 53500.
Windows and macOS sequentially allocate ephemeral ports,
starting at 41952.
2021-02-25 09:27:56 +10:00
dependabot[bot]
dab65b33eb
build(deps): bump once_cell from 1.5.2 to 1.6.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.5.2...v1.6.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 10:59:40 -05:00
teor
7558f74c78
Bump versions for zebrad 1.0.0-alpha.3
2021-02-23 10:39:13 -05:00
dependabot[bot]
304d7682f5
build(deps): bump tracing-subscriber from 0.2.15 to 0.2.16
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.2.15 to 0.2.16.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.15...tracing-subscriber-0.2.16 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 01:38:42 -05:00
Alfredo Garcia
bae49e54df
Disable unreliable `sync_large_checkpoints_testnet` ( #1789 )
...
* delete `sync_large_checkpoints_testnet`
2021-02-19 21:40:01 +00:00
teor
b0bc4a79c9
Disable conflict failure cleanup on macOS
2021-02-20 06:22:11 +10:00
teor
af12f20732
Re-enable macOS conflict tests
...
We disabled these tests pending #1613 . But the comment incorrectly said
we were waiting for #1631 .
2021-02-20 06:22:11 +10:00
teor
c51fd688ee
Skip node2.is_running() on Windows
...
`node2.is_running()` can return `true` on Windows, even though `node2`
has logged a panic. This cleanup code only runs if `node2` fails to panic
and exit as expected. So it's ok for us to skip it.
See #1781 for details.
2021-02-19 18:03:07 +10:00
teor
631fe22422
Fix conflict test node termination
...
On Windows, if a process is killed after it is dead, it returns `true`
for `was_killed`. Instead, check if the process is running before killing
it.
Also make the section where processes are running as short as possible,
and include context for both processes in every error.
2021-02-19 18:03:07 +10:00
teor
bcb9cead88
Kill running acceptance test nodes on error ( #1770 )
...
And show the output from those nodes.
These changes help us diagnose errors that happen while one or more
acceptance test nodes are running.
2021-02-19 06:46:27 +10:00
teor
e61b5e50a2
Diagnostics for CI port conflict failures ( #1766 )
...
Log a "Trying..." message before each listener opens, to see if the
delay is inside Zebra, or in the test harness or OS.
Also report the configured and actual ports where possible, for better
diagnostics.
2021-02-18 12:15:09 -03:00
teor
972103d797
Fix tracing macro syntax
2021-02-17 11:09:22 -05:00
teor
253d1c02b3
Make sync logging a bit less verbose
...
And tweak some log content
2021-02-17 11:09:22 -05:00
teor
cc7d5bd2ad
Update comments for the inbound service ( #1740 )
2021-02-16 06:14:40 +10:00
teor
372a432179
Update the call_all comment in Inbound ( #1737 )
2021-02-16 06:14:16 +10:00
teor
e8d8a49f41
Increase the conflict acceptance test launch delay ( #1736 )
...
* Increase the conflict acceptance test launch delay
Also rename the tests - the listener is for the Zcash protocol,
but the state, metrics, and tracing are Zebra-specific.
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2021-02-16 05:52:30 +10:00
dependabot[bot]
af11cc4815
build(deps): bump vergen from 3.1.0 to 3.2.0
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/v3.1.0...v3.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-10 21:36:03 -05:00
teor
0b76352468
Document a state_contains bug ( #1715 )
...
* Document a state_contains bug in the syncer and Inbound
2021-02-10 09:05:14 +10:00
Deirdre Connolly
0c5daa8410
Bump versions for zebrad 1.0.0-alpha.2
...
Including tower-batch bump to 0.2.0, tower-fallback to 0.2.0, zebra-script to 1.0.0-alpha.3
2021-02-09 16:14:29 -05:00
teor
dce11358d7
Log when the syncer awaits peer readiness ( #1714 )
2021-02-10 07:09:27 +10:00
Alfredo Garcia
d7c40af2a8
Fix shutdown panics ( #1637 )
...
* add a shutdown flag in zebra_chain::shutdown
* fix network panic on shutdown
* fix checkpoint panic on shutdown
2021-02-03 19:03:28 +10:00
teor
6679a124e3
Require Inbound setup handlers to provide a result
...
Rather than having them default to `Ok(())`, which is incorrect
for some error handlers.
2021-02-03 08:32:10 +10:00
teor
09c8c89462
Make sure FailedInit never escapes Inbound::poll_ready
2021-02-03 08:32:10 +10:00
teor
134a5e78bd
Consistently use `network_setup` for the Inbound Setup
2021-02-03 08:32:10 +10:00
teor
1c8362fe01
Remove unused imports
2021-02-03 08:32:10 +10:00
Jane Lusby
4cf331562c
combine network setup into an exhaustive match
2021-02-03 08:32:10 +10:00
Jane Lusby
4d6ef89248
avoid using async blocks to avoid lifetime bug with generators
2021-02-03 08:32:10 +10:00
Jane Lusby
685a592399
Add clonable wrapper around TryRecvError
2021-02-03 08:32:10 +10:00
teor
6ffeb670ed
Log the failed response in an unreachable panic
2021-02-03 08:32:10 +10:00
teor
eac4fd181a
Add a Setup enum to manage Inbound network setup internal state
...
This change encodes a bunch of invariants in the type system,
and adds explicit failure states for:
* a closed oneshot,
* bugs in the initialization code.
2021-02-03 08:32:10 +10:00
teor
32b032204a
Consistently return Response::Nil during setup
...
And log an info-level message as a diagnostic, in case setup takes a
long time.
2021-02-03 08:32:10 +10:00
teor
94eb91305b
Stop using ServiceExt::call_all due to buffer bugs
...
ServiceExt::call_all leaks Tower::Buffer reservations, so we can't use
it in Zebra.
Instead, use a loop in the returned future.
See #1593 for details.
2021-02-03 08:32:10 +10:00
teor
64bc45cd2e
Fix state readiness hangs for Inbound
...
Use `ServiceExt::oneshot` to perform state requests.
Explain that `ServiceExt::call_all` calls `poll_ready` internally.
Document a state service invariant imposed by `ServiceExt::call_all`.
2021-02-03 08:32:10 +10:00
teor
4d1a2fd02e
Make the Inbound invariant clearer
2021-02-03 08:32:10 +10:00
teor
2a25b9ee72
Remove services that are never `call`ed from Inbound
...
Uses the `ServiceExt::oneshot` design pattern from #1593 .
2021-02-03 08:32:10 +10:00
Alfredo Garcia
4b34482264
Add hints to port conflict and lock file panics ( #1535 )
...
* add hint for port error
* add issue filter for port panic
* add lock file hint
* add metrics endpoint port conflict hint
* add hint for tracing endpoint port conflict
* add acceptance test for resource conflics
* Split out common conflict test code into a function
* Add state, metrics, and tracing conflict tests
* Add a full set of stderr acceptance test functions
This change makes the stdout and stderr acceptance test interfaces
identical.
* move Zcash listener opening
* add todo about hint for disk full
* add constant for lock file
* match path in state cache
* don't match windows cache path
* Use Display for state path logs
Avoids weird escaping on Windows when using Debug
* Add Windows conflict error messages
* Turn PORT_IN_USE_ERROR into a regex
And add another alternative Windows-specific port error
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Jane Lusby <jane@zfnd.org>
2021-01-29 22:36:33 +10:00
teor
24f1b9bad1
Document the Inbound service in the start module ( #1653 )
2021-01-29 22:19:06 +10:00
teor
21b0360114
Limit concurrent inbound gossipped block requests
...
Uses the "load shed directly" design pattern from #1618 .
2021-01-29 11:02:26 +10:00
teor
3d9888f736
Rewrite a sync comment
2021-01-29 11:02:26 +10:00
Deirdre Connolly
1b09538277
Bump versions for zebrad 1.0.0-alpha.1 ( #1646 )
...
* Bump versions where appropriate
Tested with cargo install --locked --path etc
* Remove fixed panics from 'Known Issues'
* Change to alpha release series in the README
Co-authored-by: teor <teor@riseup.net>
2021-01-27 20:31:39 -05:00
teor
391c53aa60
Move BoxError to zebrad's lib.rs
...
For consistency with other crates.
2021-01-27 12:14:27 -08:00
teor
494a5130c1
Fix clippy "unnecessary Vec::push" lints
2021-01-22 11:51:30 -08:00
teor
00c3ad5d8e
Fix clippy "unnecessary Ok" lints
2021-01-22 11:51:30 -08:00
teor
eadbea1423
Construct structs with ..default() to avoid a lint
2021-01-19 11:02:20 -05:00