Skip to content
This repository was archived by the owner on Nov 27, 2026. It is now read-only.

ci/vercel-build-log: Keep big changed-page lists a Slack table - #2161

Open
marcleblanc2 wants to merge 2 commits into
mainfrom
marc/slack-table-overflow
Open

marcleblanc2 wants to merge 2 commits into
mainfrom
marc/slack-table-overflow

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

When a PR's changed-page table is over Slack's 10,000-character limit for table cells, the build log reply fell back to one line of text per row. Slack then split that text into several replies and unfurled the preview links under it, e.g. the post for #2132 (4 replies) and the one for #2158.

Now the reply is one message carrying the log once, and stays a table: it keeps the pages that fit, and a last row counts the rest, including the pages past the preview-links comment's own 40-page limit (…and 18 more in the PR comment).

Test plan

Ran changedPageRows + fileMessage against the real preview-links comments:

PR Pages Table rows Cell characters (text + URLs) Last row
#2132 (merged) 50 header + 32 + count 9,407 …and 18 more in the PR comment
#2158 (open) 284 header + 25 + count 9,486 …and 259 more in the PR comment

A 6-row table comes out the same as before. Rows from two PRs still fall back to text, which now stops under Slack's 4,000-character message size (Slack split the old text there, attaching the log file to each piece), with …and 71 more in the PR comments for #2132's rows twice.

Ran the workflow from this branch on #2132's production deployment (gh workflow run vercel-build-log.yml --ref marc/slack-table-overflow): one reply with the log and table, under the four replies the old code posted.

A table over Slack's 10,000 characters fell back to text rows, which
Slack split into several replies and unfurled the preview links under.
Now the table keeps the pages that fit and counts the rest in a last
row, with the pages past the PR comment's own limit.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d43a-2ab9-77c4-9ac4-aeea3b840866
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sourcegraph-docs Ignored Ignored Preview Nov 15, 2026 9:59pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Slack splits text over 4,000 characters into several messages, each
carrying the log file again. The text rows for two PRs at one commit
now stop short of that and count the rest in a last line.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d43a-2ab9-77c4-9ac4-aeea3b840866
Co-authored-by: Amp <amp@ampcode.com>

Copy link
Copy Markdown
Contributor

We’re archiving this repo now that maintained docs live in sourcegraph/sourcegraph/docs/. If this work is still relevant, please carry it forward in the appropriate maintained repo. This PR and its diff will remain available after archival.

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants