zebra/zebra-utils/tests/build_utils_for_zebrad_test...

18 lines
742 B
Rust
Raw Normal View History

change(ci): Generate mainnet checkpoints in CI (#6550) * Add extra test type modes to support zebra-checkpoints * Add Mainnet and Testnet zebra-checkpoints test harnesses * Add zebra-checkpoints to test docker images * Add zebra-checkpoints test entrypoints * Add Mainnet CI workflow for zebra-checkpoints * Enable zebra-checkpoints feature in the test image * Use the same features for (almost) all the docker tests * Make workflow features match Docker features * Add a feature note * Add a zebra-checkpoints test feature to zebrad * Remove the "no cached state" testnet code * Log a startup message to standard error when launching zebra-checkpoints * Rename tests to avoid partial name conflicts * Fix log formatting * Add sentry feature to experimental docker image build * Explain what ENTRYPOINT_FEATURES is used for * Use the correct zebra-checkpoints path * Silence zebrad logs while generating checkpoints * Fix zebra-checkpoints log handling * Re-enable waiting for zebrad to fully sync * Add documentation for how to run these tests individually * Start generating checkpoints from the last compiled-in checkpoint * Fix clippy lints * Revert changes to TestType * Wait for all the checkpoints before finishing * Add more stderr debugging to zebra-checkpoints * Fix an outdated module comment * Add a workaround for zebra-checkpoints launch/run issues * Use temp dir and log what it is * Log extra metadata about the zebra-checkpoints binary * Add note about unstable feature -Z bindeps * Temporarily make the test run faster and with debug info * Log the original test command name when showing stdout and stderr * Try zebra-checkpoints in the system path first, then the cargo path * Fix slow thread close bug in dual process test harness * If the logs are shown, don't say they are hidden * Run `zebra-checkpoints --help` to work out what's going on in CI * Build `zebra-utils` binaries for `zebrad` integration tests * Revert temporary debugging changes * Revert changes that were moved to another PR
2023-04-26 21:39:43 -07:00
//! # Dependency Workaround
//!
//! This empty integration test makes `cargo` build the `zebra-checkpoints` binary for the `zebrad`
//! integration tests:
//!
//! > Binary targets are automatically built if there is an integration test or benchmark being
//! > selected to test.
//!
//! <https://doc.rust-lang.org/cargo/commands/cargo-test.html#target-selection>
//!
//! Each utility binary will only be built if its corresponding Rust feature is activated.
//! <https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-required-features-field>
//!
//! # Unstable `cargo` Feature
//!
//! When `cargo -Z bindeps` is stabilised, add a binary dependency to `zebrad/Cargo.toml` instead:
//! https://github.com/rust-lang/cargo/issues/9096