mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-17 04:11:35 +00:00
Windows transcripts were ZERO bytes: ts-prefix.ps1 formatted with
{0:D2}, but Floor() returns a double and the D specifier is
integer-only - it threw per line, and under the driver's relaxed EAP
every line errored into the void. {0:00} fixes it (custom numeric
format works on doubles). Reproduced the exact pipeline locally
(empty file + Format specifier invalid), verified the fix produces
prefixed merged stdout+stderr with exit code intact. That is also
why the log timeline never auto-synced: there was nothing in the
files to sync.
The GitHub artifact URL 307s to /suites/... server-side and strips
the ?zip= query param. The player now reads the zip URL from a
#zip= HASH param (client-side, survives the redirect) with ?zip=
as fallback; the hash path was verified in a real browser against a
real leg zip (auto-fetch + boot).
Per ethie's design, one player artifact for the whole run: new
leg-player job uploads playback.html (archive:false) before the
matrix legs, the report job needs it, and each ran cell gets TWO
links - 📼 to the player with #zip=<that leg's logs zip> and ⬇️ to
the raw zip. Per-leg player uploads removed from all three run
workflows.
21 lines
906 B
PowerShell
21 lines
906 B
PowerShell
# Add-TsPrefix: prefix each pipeline line with [+MM:SS] relative to the
|
|
# moment the pipeline started (the playback.html leg player's sync axis).
|
|
#
|
|
# Usage (dot-sourced from a driver):
|
|
# & cmd 2>&1 | Add-TsPrefix | Out-File -Encoding UTF8 $log
|
|
#
|
|
# Call under the relaxed-EAP dance the driver already uses around native
|
|
# invocations (merging stderr through a pipe under EAP=Stop turns native
|
|
# stderr chatter into a terminating NativeCommandError).
|
|
|
|
$script:TsPrefixStart = Get-Date
|
|
|
|
function Add-TsPrefix {
|
|
process {
|
|
$t = (Get-Date) - $script:TsPrefixStart
|
|
# {0:00} not {0:D2}: Floor() returns a double and the D specifier
|
|
# is integer-only - it throws per line, and under the driver's
|
|
# relaxed EAP every line errors into the void (empty transcripts).
|
|
"[+{0:00}:{1:00}] {2}" -f [math]::Floor($t.TotalMinutes), [math]::Floor($t.TotalSeconds % 60), $_
|
|
}
|
|
}
|