From a22a2b382645083bab0bc4f0b8c431e1aa916050 Mon Sep 17 00:00:00 2001 From: Diogo Martins Date: Mon, 16 Feb 2026 15:09:33 +0000 Subject: [PATCH] Transpose rows with columns --- .github/workflows/probe.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/probe.yml b/.github/workflows/probe.yml index ce463d5..2fb85ee 100644 --- a/.github/workflows/probe.yml +++ b/.github/workflows/probe.yml @@ -244,28 +244,24 @@ jobs: continue lines.append(f'### {title}') lines.append('') - # Header row: Server | test1 | test2 | ... - hdr = '| Server | ' + ' | '.join(f'`{short(tid)}`' for tid in cat_tests) + ' |' - sep = '|---' + ''.join('|:---:' for _ in cat_tests) + '|' + # Header row: Test | Expected | Server1 | Server2 | ... + hdr = '| Test | Expected | ' + ' | '.join(f'**{n}**' for n in names) + ' |' + sep = '|---|---' + ''.join('|:---:' for _ in names) + '|' lines.append(hdr) lines.append(sep) - # Expected row - exp_cells = [] + # One row per test for tid in cat_tests: first = lookup[names[0]][tid] - exp_cells.append(first['expected']) - lines.append('| **Expected** | ' + ' | '.join(exp_cells) + ' |') - # Server rows - for n in names: + expected = first['expected'] cells = [] - for tid in cat_tests: + for n in names: r = lookup[n].get(tid) if not r: cells.append('—') else: icon = '✅' if r['verdict'] == 'Pass' else ('⚠️' if r['verdict'] == 'Warn' else '❌') cells.append(f"{icon}`{r['got']}`") - lines.append(f"| **{n}** | " + ' | '.join(cells) + ' |') + lines.append(f"| `{short(tid)}` | {expected} | " + ' | '.join(cells) + ' |') lines.append('') lines.append(f"Commit: {commit_id[:7]}")