iuna

iuna

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

commit 77d841ed9a35a6324bbda7bc675a7ff34b8b5ed3
parent 9bd00d5361a67888e0fa6a5bd386ea12db5d096e
Author: Joris Hartog <jorishartog@hotmail.com>
Date:   Wed, 19 Aug 2026 21:54:01 +0200

Validate release fuzz run override

Diffstat:
Mdeployment.sh | 12+++++++++++-
Mdocs/genesis.md | 2+-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/deployment.sh b/deployment.sh @@ -45,6 +45,13 @@ replace_in_file() { perl -0pi -e "s|${pattern}|${replacement}|g" "$file" } +validate_positive_integer() { + local name="$1" + local value="$2" + + [[ "$value" =~ ^[1-9][0-9]*$ ]] || die "${name} must be a positive integer" +} + ensure_clean_worktree() { require_command git @@ -75,6 +82,7 @@ run_release_tests() { require_command cargo local fuzz_runs="${IUNA_FUZZ_RUNS:-256}" + validate_positive_integer IUNA_FUZZ_RUNS "$fuzz_runs" cargo test --locked cargo check --locked --manifest-path fuzz/Cargo.toml @@ -439,4 +447,6 @@ main() { deploy_docker_image "$version" } -main "$@" +if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then + main "$@" +fi diff --git a/docs/genesis.md b/docs/genesis.md @@ -54,7 +54,7 @@ cargo test --locked --release --test properties -- --ignored The deployment script writes release packages to `downloads/` and creates `downloads/SHA256SUMS`. It runs `256` iterations per fuzz target by default; set `IUNA_FUZZ_RUNS` -only for an explicitly documented emergency redeploy. +to a positive integer only for an explicitly documented emergency redeploy. Verify the files before publishing them: