Skip to content

Commit 28b0f7a

Browse files
donjor-agent[bot]rsi-pr-agent
authored andcommitted
fix(ci): the sync run summary keeps the log tail under GitHub's limit (#1618)
> 🤖 claude/anthropic claude-opus-5-5 (high) ## Problem The sync workflow's "Summarize the run" step writes the whole driver log to `$GITHUB_STEP_SUMMARY`. A run that reaches the battery logs over 1024k, so GitHub aborts the upload and the run page shows no summary. ```text ##[error]$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 3483k. ``` ## Change A log over 900,000 bytes writes only its tail, under a "Log tail only" note. The driver prints its rendered report last, so the tail keeps the outcome, target, and battery rows. A smaller log, or none, renders as before. ## Scope and approval Closes #1552. - [ ] The run page shows the outcome, the target, and each battery row, within GitHub's 1024k limit ## Verification The step script, extracted from the workflow and run with a scratch `RUNNER_TEMP`: | log | summary | | --- | --- | | 3.9 MB, report last | 900,010 bytes; ends with the report | | 2 lines | both lines, unchanged | | missing | "never ran" note | `vp run fork:ci` → exit 0; scripts 731/731. Not run: a real sync workflow run; the next scheduled sync proves it. Claude Opus 5.5 in Claude Code, inside T3 Code. ## Fork trailers Fork-Domain: fork-meta Fork-Tier: core Fork-Upstreamable: no <!-- gh-bot:attest {"v":2,"repo":"RSI-Software/t3code-hyprws","ref":"hyprws@8c2aafa","build":"252611418","agents":[{"role":"host","iface":"claude","provider":"anthropic","model":"claude-opus-5-5","effort":"high","harness":"[email protected]","session":"da5d3d04239a"}],"ts":"2026-10-04T02:22:57Z"} -->
1 parent fe0a298 commit 28b0f7a

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎.github/workflows/hyprws-upstream-sync.yml‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,25 @@ jobs:
158158
set -e
159159
exit "$code"
160160
161+
# GitHub rejects a step summary over 1024k, and a run that reaches the
162+
# battery logs more. The driver prints its rendered report last, so the
163+
# log's tail carries the outcome, target, and battery rows.
161164
- name: Summarize the run
162165
if: always()
163166
run: |
167+
log="$RUNNER_TEMP/fork-sync.log"
168+
limit=900000
164169
{
165170
printf '## hyprws upstream sync\n\n'
166-
if [ -f "$RUNNER_TEMP/fork-sync.log" ]; then
171+
if [ -f "$log" ] && [ "$(stat -c %s "$log")" -gt "$limit" ]; then
172+
printf 'Log tail only; the step output keeps the full log.\n\n'
167173
printf '```\n'
168-
cat "$RUNNER_TEMP/fork-sync.log"
174+
# Drop the tail's first line: the byte cut can split it.
175+
tail -c "$limit" "$log" | tail -n +2
176+
printf '```\n'
177+
elif [ -f "$log" ]; then
178+
printf '```\n'
179+
cat "$log"
169180
printf '```\n'
170181
else
171182
printf 'The sync driver never ran; see the earlier steps.\n'

0 commit comments

Comments
 (0)