From f63bbca23bcdaa1622f71dbeb6751aadcc68bbee Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Sun, 8 Nov 2026 20:32:17 -0800 Subject: [PATCH] Live play: each bevy-ts case's run is bounded (RAEA_CASE_SECONDS, default 180, by coreutils' timeout where there is one), so a run that hangs is that case open, with its reason, rather than the whole check stuck; rc3's Windows Live play ran 24 minutes with no output until the run was cancelled. release.yml's step streams each case's line as it finishes, bounds each case at 300s (a fresh Windows runner's first play opens in about 100s, the next in seconds) and the step at 75 minutes --- .github/workflows/release.yml | 8 ++++++-- sdk/raea/bench/bevy-ts/check.sh | 9 ++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d3e8fb5..fd5e1855 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -196,14 +196,18 @@ jobs: if ($im) { Add-Content $env:GITHUB_PATH $im.FullName } # without the loader's debug lines (lavapipe.sh sets them for the driver's registration), and a failing case's # log tail in the job's log, since the runner and its logs go when the job ends + # each case is bounded by check.sh (RAEA_CASE_SECONDS: a fresh runner's first play opens in about 100s, the next in + # seconds); the step's own bound is for the rest - name: Live play (bevy-ts's play cases) + timeout-minutes: 75 env: VK_LOADER_DEBUG: "" + RAEA_CASE_SECONDS: "300" run: | b="$PWD/target/dist/raea.exe" out="${TMPDIR:-/tmp}/raea-bevy-ts" - s=0; RAEA_BIN="$b" RAEA_PLUGIN_BIN="$b" bash sdk/raea/bench/bevy-ts/check.sh $(grep -l '^// play:' sdk/raea/bench/bevy-ts/cases/*.tsx) > "$RUNNER_TEMP/play.txt" 2>&1 || s=$? - tee -a "$GITHUB_STEP_SUMMARY" < "$RUNNER_TEMP/play.txt" + s=0; RAEA_BIN="$b" RAEA_PLUGIN_BIN="$b" bash sdk/raea/bench/bevy-ts/check.sh $(grep -l '^// play:' sdk/raea/bench/bevy-ts/cases/*.tsx) 2>&1 | tee "$RUNNER_TEMP/play.txt" || s=$? + cat "$RUNNER_TEMP/play.txt" >> "$GITHUB_STEP_SUMMARY" for n in $(sed -n 's/^\([^ ]*\) (.*): OPEN.*/\1/p' "$RUNNER_TEMP/play.txt"); do echo "--- $n"; grep -v "known driver" "$out/$n.log" | tail -25; done exit $s - uses: actions/attest-build-provenance@v2 diff --git a/sdk/raea/bench/bevy-ts/check.sh b/sdk/raea/bench/bevy-ts/check.sh index 26b245b6..82df5c15 100755 --- a/sdk/raea/bench/bevy-ts/check.sh +++ b/sdk/raea/bench/bevy-ts/check.sh @@ -25,6 +25,11 @@ BIN=${RAEA_BIN:-raea} PLUGIN_BIN=${RAEA_PLUGIN_BIN:-$ROOT/sdk/raea/bench/bevy-plugins/motion.sh} OUT=${TMPDIR:-/tmp}/raea-bevy-ts mkdir -p "$OUT" +# each case's run bounded (RAEA_CASE_SECONDS, default 180), so a run that hangs is that case open rather than the whole +# check stuck (a Windows release job's Live play hung until it was cancelled); coreutils' timeout, gtimeout on a Mac +# with Homebrew's, else unbounded +bound=() +for t in timeout gtimeout; do command -v $t > /dev/null && { bound=($t -k 10 "${RAEA_CASE_SECONDS:-180}"); break; }; done cases=() if [ $# -eq 0 ]; then for f in "$HERE"/cases/*.tsx; do cases+=("$f"); done @@ -56,9 +61,11 @@ for edit in "${cases[@]}"; do else run=("$bin" render "$edit" --frame "${frame:-0}" ${extra[@]+"${extra[@]}"} -o "$png") fi - if ! RAEA_SCENE_ROWS=1 nice -n 10 "${run[@]}" > "$log" 2>&1 || [ ! -f "$png" ]; then + s=0; RAEA_SCENE_ROWS=1 nice -n 10 ${bound[@]+"${bound[@]}"} "${run[@]}" > "$log" 2>&1 || s=$? + if [ $s -ne 0 ] || [ ! -f "$png" ]; then # (not the Vulkan loader's own INFO lines, which VK_LOADER_DEBUG prints on a CI runner: "... is not recognized ...") why=$(grep -iE "error|refused|not |no " "$log" | grep -v "global logger" | grep -v "INFO |" | tail -1 | cut -c1-160) + [ $s -eq 124 ] || [ $s -eq 137 ] && why="it ran past ${RAEA_CASE_SECONDS:-180}s and was stopped" echo "$name ($gap): OPEN the render failed: ${why:-see $log}"; open=$((open + 1)); continue fi bad=""