Raise telemetry metric_frequency to 30s to fix broken CPU/memory charts

The workflow-telemetry action renders CPU/memory charts as mermaid
xychart blocks with every sample inlined as text (see src/graphing.ts);
there is no downsampling. GitHub renders mermaid with a fixed
maxTextSize of 50000 chars that the diagram author cannot raise, so on
our ~3h+ builds the default 5s sampling (~2300+ samples) blew past the
limit and the charts failed to render ("Maximum text size in diagram
exceeded").

Sampling every 30s yields ~390 points over a 3h15m run (~10k chars of
mermaid source), well under the limit with headroom for longer runs,
while keeping enough resolution to read CPU/memory trends.

Assisted-By: Claude (claude-4.8-opus)
This commit is contained in:
Axel Uhl committed 2026-09-02 15:14:40 +02:00
1 parent 53df2ecc1f
commit a42c6c1587
1 file changed
+1 -1
+1 -1
View File
@@ -158,7 +158,7 @@ jobs:
comment_on_pr: false
proc_trace_min_duration: 5000 # only chart processes running >= 5s
proc_trace_chart_max_count: 40 # cap Gantt bars to keep mermaid source under 50k
metric_frequency: 15 # coarser sampling so CPU/memory xychart source stays under mermaid's 50k maxTextSize
metric_frequency: 30 # ~3h+ builds: coarser sampling so the per-sample CPU/memory xychart source stays well under mermaid's 50k maxTextSize (~390 points/3h15m)
- name: Setup firefox
id: setup-firefox
uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2