From 09148efe6ade591c9f3e10efd0edc59e3f13adee Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 17 Aug 2026 13:39:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20ci:=20Codegraph=20Probe=20Summar?= =?UTF-8?q?y=20Rendering=20(#14942)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codegraph-select.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codegraph-select.yml b/.github/workflows/codegraph-select.yml index e74c6ee213..f9ba0bb166 100644 --- a/.github/workflows/codegraph-select.yml +++ b/.github/workflows/codegraph-select.yml @@ -50,7 +50,7 @@ jobs: exit 0 fi - echo "$RESP" | jq -r ' + TABLE=$(echo "$RESP" | jq -r ' "graph `\(.gate.head[0:12] // "?")` · \(.engine) · \(.mode) · \(.ms)ms · reached \(.reached)", "", "| workspace | decision |", @@ -62,11 +62,20 @@ jobs: "", "matrix: " + ([.matrix | to_entries[] | .key as $wf | .value | to_entries[] | "\($wf)/\(.key)=" + (if .value then "run" else "SKIP" end)] | join(" ")), - (if .shards then "shards: " + (.shards | to_json) else empty end), - (if .lock_workspaces then "lockfile → " + (.lock_workspaces | to_json) else empty end), + (if .shards then "shards: " + (.shards | tojson) else empty end), + (if .lock_workspaces then "lockfile → " + (.lock_workspaces | tojson) else empty end), (if .e2e and (.e2e.error | not) then "e2e tiers: must \(.e2e.must_run | length) · floor \(.e2e.floor | length) · skippable \(.e2e.skippable | length)" + (if (.e2e.must_run | length) > 0 then " — must: " + (.e2e.must_run[:4] | join(", ")) else "" end) else empty end) - ' >> "$GITHUB_STEP_SUMMARY" + ' 2>render.err) + if [ -n "$TABLE" ]; then + echo "$TABLE" >> "$GITHUB_STEP_SUMMARY" + else + note "_summary render failed: $(head -c 200 render.err 2>/dev/null)_" + note '~~~' + note "${RESP:0:600}" + note '~~~' + fi + echo "rendered summary: ${#TABLE} chars" exit 0