Commit 1c93440
ci: clamp the duration accumulator and truncate section bodies structurally
Round-6 review fixes:
- test.yml: the serialised duration is clamped too — per-case isfinite keeps each addend and the slowest list finite, but a sum of finite doubles (two 1e308s) still overflows to inf, and round(inf,1) would emit bare Infinity into the JSON. Failed test-case entries with neither fullname nor name fall back to "(unnamed)" so sorted(set(...)) cannot hit a None/str TypeError.
- upsert-ci-status.sh: the 20k cap now guards both body paths (env and file), and truncation closes any code fence or <details> the cut severed — an unterminated construct would render the rest of the comment inside it, visually eating the neighbouring sections.
Committed via API because repository rules require verified signatures.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 29b7e7b commit 1c93440
2 files changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
845 | 847 | | |
846 | 848 | | |
847 | 849 | | |
848 | 850 | | |
849 | 851 | | |
850 | 852 | | |
851 | | - | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
852 | 857 | | |
853 | 858 | | |
854 | 859 | | |
| |||
0 commit comments