The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(install-e2e): one time base for every transcript in a leg
ethernet7807f54b5104
diff --git a/tests/install/e2e-assets/ts-prefix.sh b/tests/install/e2e-assets/ts-prefix.shindex b340517dc14..5fb4a5055e4 100644--- a/tests/install/e2e-assets/ts-prefix.sh+++ b/tests/install/e2e-assets/ts-prefix.sh@@ -1,10 +1,14 @@#!/usr/bin/env bash-# ts_prefix: prefix each stdin line with [+MM:SS] relative to the moment-# the pipe started. The playback.html leg player uses these prefixes to-# sync a log file to the screen recording's timeline (the video starts a-# few seconds before the driver, hence the player's offset slider).+# ts_prefix: prefix each stdin line with [+MM:SS] relative to the DRIVER's+# start (TS_BASE), not this pipe's start -- every log in a leg shares one+# time base, so the playback.html sync (one offset slider against the+# recording) aligns all files at once. The playback.html leg player uses+# these prefixes to sync a log file to the screen recording's timeline+# (the video starts a few seconds before the driver, hence the player's+# offset slider).## Usage (sourced from a driver):+# TS_BASE=$SECONDS # once, at driver start# cmd 2>&1 | ts_prefix > "$LOG_DIR/x.log"## Must be the LAST consumer in the pipe: with `set -o pipefail` the exit@@ -12,10 +16,10 @@# SECONDS is bash-specific, so this helper is bash-only.ts_prefix() {- local _start=$SECONDS+ local _base="${TS_BASE:-$SECONDS}"local _line _twhile IFS= read -r _line; do- _t=$((SECONDS - _start))+ _t=$((SECONDS - _base))printf '[+%02d:%02d] %s\n' $((_t / 60)) $((_t % 60)) "$_line"done}diff --git a/tests/install/installer-script-e2e.sh b/tests/install/installer-script-e2e.shindex d7f3e77b37f..54785ba7083 100755--- a/tests/install/installer-script-e2e.sh+++ b/tests/install/installer-script-e2e.sh@@ -45,6 +45,11 @@set -euo pipefail+# One time base for every transcript in this leg: ts_prefix stamps lines+# relative to TS_BASE, so all logs share the driver's clock and a single+# playback.html offset slider aligns every file with the recording.+TS_BASE=$SECONDS+INSTALL_METHOD="installer-script"UPDATE_METHOD=""INSTALL_REF=""diff --git a/tests/install/macos-desktop-e2e.sh b/tests/install/macos-desktop-e2e.shindex cc644e9dafb..9bf8e494c7f 100755--- a/tests/install/macos-desktop-e2e.sh+++ b/tests/install/macos-desktop-e2e.sh@@ -32,6 +32,11 @@set -euo pipefail+# One time base for every transcript in this leg: ts_prefix stamps lines+# relative to TS_BASE, so all logs share the driver's clock and a single+# playback.html offset slider aligns every file with the recording.+TS_BASE=$SECONDS+PHASE="all"UPDATE_METHOD=""INSTALL_REF=""