app: cherry-pick rune's pause and sound fixes onto the checkout

Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch
ported, carrying the four commits of upstream issues 1320 (a pause while
a clip is layered holds the layer's picture and time) and 1325 (a video's
sound is read ahead of the clock and leads it). Both were written against
eb9f1104 and ported across the refactors since. The faults are the first
two and the third in docs/rune-upstream.md; the app's workarounds in
review.rs stay until the fixes arrive upstream.
This commit is contained in:
vhaudiquet committed 2026-11-22 22:16:30 +01:00
1 parent 80fef698ce
commit 5bf262b82b
3795 files changed
+663463 -28

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
# Run BOTH revisions on the same Linux worker/toolchain with a shared target dir.
# First: ... save; on the candidate: ... check. Never silently bless a missing baseline.
set -eu
[ "$(uname -s)" = Linux ] || { echo 'Linux + Valgrind required' >&2; exit 1; }
command -v valgrind >/dev/null
command -v gungraun-runner >/dev/null
export RUSTC_WRAPPER=
export RUSTFLAGS="${RUSTFLAGS:-} -C llvm-args=-fp-contract=off"
baseline="${CARGO_TARGET_DIR:-target}/rune-ref-instruction-baseline"
case "${1:-check}" in
save)
cargo bench --locked -p rune-ref --bench instructions -- --save-baseline=main
mkdir -p "$(dirname "$baseline")"
{ rustc -Vv; valgrind --version; gungraun-runner --version; } > "$baseline"
;;
check)
[ -f "$baseline" ] || { echo 'Missing baseline: measure base revision with save first' >&2; exit 1; }
current=$(mktemp)
trap 'rm -f "$current"' EXIT
{ rustc -Vv; valgrind --version; gungraun-runner --version; } > "$current"
cmp "$baseline" "$current"
cargo bench --locked -p rune-ref --bench instructions -- --baseline=main
;;
*) echo 'usage: check-reference-instructions.sh save|check' >&2; exit 1 ;;
esac