Commit e5a6795
committed
ci(macrobenchmark): Decode Sauce's JSON-lines device log
The recovery worked on the device but not in the parser. Sauce returns
device.log as JSON lines -- {"tag", "message", "level", ...} -- so the payload
arrives with its quotes escaped and cannot be regexed straight out of the raw
line. Decode each entry and match against its message, falling back to the raw
line so the same parser still handles `adb logcat` output from a local run.
Enable pipefail in the workflow step too. Piping into tee meant the step exited
on tee's status, so this very failure reported success while producing no
results.
Verified against the device.log from run 31117974318: timeToInitialDisplayMs
min 443.5 / median 477.3 / max 571.2 over 12 iterations on a Pixel 9 Pro XL.1 parent 4f26d59 commit e5a6795
2 files changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
22 | 42 | | |
23 | 43 | | |
24 | 44 | | |
25 | 45 | | |
26 | 46 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 47 | + | |
| 48 | + | |
30 | 49 | | |
31 | 50 | | |
32 | 51 | | |
| |||
0 commit comments