Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Harden sync CI for shared runners and Linux ffmpeg setup
Richie McIlroy4fb95615d2fd
diff --git a/.github/workflows/sync-tests.yml b/.github/workflows/sync-tests.ymlindex 6f393a767..e1c2af717 100644--- a/.github/workflows/sync-tests.yml+++ b/.github/workflows/sync-tests.yml@@ -61,6 +61,8 @@ jobs:node-version: 24- name: Native dependencies+ env:+ RUST_TARGET_TRIPLE: ${{ runner.os == 'Linux' && 'x86_64-unknown-linux-gnu' || '' }}run: node scripts/setup.js- name: Add FFmpeg DLLs to PATH@@ -94,12 +96,12 @@ jobs:if [ -f "$REPORT" ]; thenecho "| Case | Result | Detail |"echo "| --- | --- | --- |"- python3 - "$REPORT" << 'PYEOF'+ PYTHONIOENCODING=utf-8 python3 - "$REPORT" << 'PYEOF'import json, sysfor case in json.load(open(sys.argv[1])):- icon = "✅" if case["pass"] else "❌"+ verdict = "PASS" if case["pass"] else "FAIL"detail = case["detail"].replace("|", "\\|")- print(f"| {case['name']} | {icon} | {detail} |")+ print(f"| {case['name']} | {verdict} | {detail} |")PYEOFelseecho "No report produced — the matrix crashed before writing results."diff --git a/crates/recording/tests/sync_matrix.rs b/crates/recording/tests/sync_matrix.rsindex c9adb1aea..43b3c31da 100644--- a/crates/recording/tests/sync_matrix.rs+++ b/crates/recording/tests/sync_matrix.rs@@ -30,11 +30,13 @@ use serde::Serialize;const CONTENT_SECS: f64 = 4.0;/// Absolute tolerance for a muxed pts vs the sent capture timestamp. Covers-/// warmup anchoring, emission jitter and encoder rounding.-const ABS_TOLERANCE_SECS: f64 = 0.20;+/// warmup anchoring, emission jitter and encoder rounding, plus scheduler+/// noise on shared CI runners.+const ABS_TOLERANCE_SECS: f64 = 0.25;/// Tolerance for the relative structure (pts deltas vs sent deltas), which is-/// what actually determines sync drift.-const REL_TOLERANCE_SECS: f64 = 0.10;+/// what actually determines sync drift. The bug class this guards against+/// produces errors of a second or more.+const REL_TOLERANCE_SECS: f64 = 0.15;/// Tolerance for decoded audio duration vs generated duration.const AUDIO_DURATION_TOLERANCE_SECS: f64 = 0.15;