iuna

iuna

iuna - experimental mainnet-candidate protocol
git clone https://getiuna.org/git/iuna.git
Log | Files | Refs | README | LICENSE

commit 87c9d88a5cf37a1db79676b1b4ab92ebaed26d43
parent 4377c85cd78611199bb4aace9234ea7873cfbb14
Author: Joris Hartog <jorishartog@hotmail.com>
Date:   Tue,  1 Sep 2026 13:34:51 +0200

Run long deployment tests by default

Diffstat:
MREADME.md | 11++++++-----
Mdeployment.sh | 22+++++++++++-----------
2 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/README.md b/README.md @@ -69,13 +69,14 @@ Release and deploy with: ``` By default, deployment audits all three Rust lockfiles, enforces the dependency -source/license policy, runs the regular unit tests, and verifies that the fuzz -targets compile against their locked dependencies. Release hosts therefore need -`cargo-audit` and `jq` in addition to the pinned Rust 1.88 toolchain. Run the -extended adversarial, fuzz, and release-property suites explicitly when needed: +source/license policy, runs the regular unit tests, verifies that the fuzz +targets compile against their locked dependencies, and runs the extended +adversarial, fuzz, and release-property suites. Release hosts therefore need +`cargo-audit` and `jq` in addition to the pinned Rust 1.88 toolchain. To +explicitly skip the long-running suites: ```sh -./deployment.sh --full-tests 0.2.48 +./deployment.sh --skip-long-tests 0.2.48 ``` To start a new chain, deploy with `--genesis`. This asks for confirmation, diff --git a/deployment.sh b/deployment.sh @@ -4,10 +4,10 @@ set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" usage() { - echo "Usage: $0 [--genesis] [--full-tests] <version>" >&2 + echo "Usage: $0 [--genesis] [--skip-long-tests] <version>" >&2 echo "Example: $0 0.2.48" >&2 echo " $0 --genesis 0.4.0" >&2 - echo " $0 --full-tests 0.4.0" >&2 + echo " $0 --skip-long-tests 0.4.0" >&2 } die() { @@ -115,7 +115,7 @@ versioned_nsis_installer() { } run_release_tests() { - local full_tests="$1" + local skip_long_tests="$1" require_command cargo @@ -123,8 +123,8 @@ run_release_tests() { cargo test --locked cargo check --locked --manifest-path fuzz/Cargo.toml - if [ "$full_tests" != "true" ]; then - echo "Quick release checks passed; use --full-tests to run adversarial, fuzz, and property suites" + if [ "$skip_long_tests" = "true" ]; then + echo "WARNING: skipping long-running adversarial, fuzz, and property test suites" return 0 fi @@ -554,7 +554,7 @@ deploy_docker_image() { main() { local genesis=false - local full_tests=false + local skip_long_tests=false local version="" while [ "$#" -gt 0 ]; do @@ -563,9 +563,9 @@ main() { [ "$genesis" = "false" ] || die "--genesis may only be specified once" genesis=true ;; - --full-tests) - [ "$full_tests" = "false" ] || die "--full-tests may only be specified once" - full_tests=true + --skip-long-tests) + [ "$skip_long_tests" = "false" ] || die "--skip-long-tests may only be specified once" + skip_long_tests=true ;; -*) die "unknown option: $1" @@ -601,7 +601,7 @@ main() { echo "Aborting deployment" exit 1 fi - run_release_tests "$full_tests" + run_release_tests "$skip_long_tests" build_linux_cli_archives "$version" build_docker_image "$version" deploy_docker_image "$version" "$genesis" @@ -609,7 +609,7 @@ main() { fi update_versions "$version" - run_release_tests "$full_tests" + run_release_tests "$skip_long_tests" build_versions "$version" commit_and_tag "$version" build_docker_image "$version"