Skip to content

Commit ff19179

Browse files
cliffhallclaude
andcommitted
fix(interface-diff): bound the job summary; watch the Windows helper (#4860)
Copilot round 6 on #4975: - Cap the job summary below GitHub's 1 MiB limit, pointing to the artifact when the report is longer. - Add scripts/lib/win-shell-args.mjs, which the script imports, to the path filters. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent fe4cef3 commit ff19179

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/everything-mcp-diff.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ on:
3838
- "package-lock.json"
3939
- "tsconfig.json"
4040
- "scripts/interface-diff.mjs"
41+
- "scripts/lib/win-shell-args.mjs"
4142
- ".github/workflows/everything-mcp-diff.yml"
4243
# No branch filter: PRs to v2/main and to main both run, and so does a PR
4344
# stacked on another PR's branch. The base is the PR's own base either way.
@@ -48,6 +49,7 @@ on:
4849
- "package-lock.json"
4950
- "tsconfig.json"
5051
- "scripts/interface-diff.mjs"
52+
- "scripts/lib/win-shell-args.mjs"
5153
- ".github/workflows/everything-mcp-diff.yml"
5254
# A published Release (a milestone, tagged vX.Y.Z on main; see RELEASING.md)
5355
# surfaces the cumulative interface delta since the previous Release. This
@@ -160,7 +162,12 @@ jobs:
160162
run: |
161163
{
162164
if [ -f mcp-diff-report/report.md ]; then
163-
cat mcp-diff-report/report.md
165+
# A step summary holds at most 1 MiB.
166+
head -c 900000 mcp-diff-report/report.md
167+
if [ "$(wc -c < mcp-diff-report/report.md)" -gt 900000 ]; then
168+
echo ""
169+
echo "_The report is truncated here; the full report is in the run's \`mcp-diff-report\` artifact._"
170+
fi
164171
else
165172
echo "The interface diff produced no report; see the job log."
166173
fi

0 commit comments

Comments
 (0)