app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit e6bbb53928d069a4effb8ca7ae026f3c2b1963fd
parent 11af4fcb9d672b99ae25f27dbdc603ec394fcec5
Author: triesap <tyson@radroots.org>
Date:   Tue, 28 Apr 2026 18:50:46 +0000

tests: expand pack day validation

- run Pack day model, state, i18n, print, and batch tests explicitly
- remove broad Pack day validation coupling from scripts/check.sh
- align host startup wait attempts across run and smoke scripts
- keep the deterministic Darwin host smoke in the app check lane

Diffstat:
Mplatforms/macos/Scripts/run_host.sh | 3++-
Mplatforms/macos/Scripts/test_host.sh | 5++++-
Mscripts/check.sh | 8+++++---
3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/platforms/macos/Scripts/run_host.sh b/platforms/macos/Scripts/run_host.sh @@ -49,6 +49,7 @@ structured_log_file="${app_log_root}/${date_utc}.jsonl" latest_log_path="${app_log_root}/latest.jsonl" stdout_file="${app_log_root}/raw/stdout.${date_utc}.log" stderr_file="${app_log_root}/raw/stderr.${date_utc}.log" +startup_attempts="${RADROOTS_APP_HOST_STARTUP_ATTEMPTS:-300}" mkdir -p "${app_log_root}/raw" export RUST_LOG="${RADROOTS_APP_RUST_LOG:-info}" @@ -73,7 +74,7 @@ stop_app_with_error() { app_pid="$!" launch_confirmed=false -for _ in $(seq 1 100); do +for _ in $(seq 1 "${startup_attempts}"); do if [[ -f "${structured_log_file}" ]] && grep -q '"event":"runtime.launch"' "${structured_log_file}" 2>/dev/null; then launch_confirmed=true break diff --git a/platforms/macos/Scripts/test_host.sh b/platforms/macos/Scripts/test_host.sh @@ -68,6 +68,7 @@ release_app_path="$( tmp_root="$(mktemp -d)" runner_pid="" degraded_runner_pid="" +startup_wait_attempts="${RADROOTS_APP_HOST_STARTUP_ATTEMPTS:-300}" wait_for_log_event() { local structured_log_file="$1" @@ -75,7 +76,7 @@ wait_for_log_event() { local runner_pid="$3" local event_verified=false - for _ in $(seq 1 150); do + for _ in $(seq 1 "${startup_wait_attempts}"); do if [[ -f "${structured_log_file}" ]] && grep -q "\"event\":\"${expected_event}\"" "${structured_log_file}" 2>/dev/null; then event_verified=true break @@ -166,6 +167,7 @@ RADROOTS_APP_RUNTIME_MODE="${runtime_mode}" \ RADROOTS_APP_DEFAULT_NOSTR_RELAY_URL="${default_nostr_relay_url}" \ RADROOTS_APP_LOCAL_LOG_ROOT="${local_log_root}" \ RADROOTS_APP_HOST_BUNDLE_PATH="${app_path}" \ +RADROOTS_APP_HOST_STARTUP_ATTEMPTS="${startup_wait_attempts}" \ "${script_dir}/run_host.sh" & runner_pid="$!" @@ -187,6 +189,7 @@ env -u HOME \ RADROOTS_APP_DEFAULT_NOSTR_RELAY_URL="${default_nostr_relay_url}" \ RADROOTS_APP_LOCAL_LOG_ROOT="${degraded_log_root}" \ RADROOTS_APP_HOST_BUNDLE_PATH="${app_path}" \ + RADROOTS_APP_HOST_STARTUP_ATTEMPTS="${startup_wait_attempts}" \ "${script_dir}/run_host.sh" & degraded_runner_pid="$!" diff --git a/scripts/check.sh b/scripts/check.sh @@ -6,10 +6,12 @@ repo_root="$(git -C "${script_dir}" rev-parse --show-toplevel)" cd "${repo_root}" cargo metadata --format-version 1 --no-deps -cargo test -p radroots_app_i18n english_pack_day_copy_matches_the_contextual_execution_contract +cargo test -p radroots_app_models pack_day +cargo test -p radroots_app_state pack_day +cargo test -p radroots_app_i18n pack_day +cargo test -p radroots_app pack_day_print +cargo test -p radroots_app pack_day_batch cargo test -p radroots_app source_guards -cargo test -p radroots_app pack_day_host_handoff -cargo test -p radroots_app pack_day cargo check -p radroots_app if [[ "$(uname -s)" == "Darwin" ]]; then