ci: pass stale-banner via path: to sticky-pull-request-comment in tests + benchmarks workflows#1887
Conversation
🦋 Changeset detectedLatest commit: 9e1921c The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🧪 E2E Test Results✅ All tests passed Summary
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
✅ 📋 Other
|
📊 Benchmark Results
workflow with no steps💻 Local Development
workflow with 1 step💻 Local Development
workflow with 10 sequential steps💻 Local Development
workflow with 25 sequential steps💻 Local Development
workflow with 50 sequential steps💻 Local Development
Promise.all with 10 concurrent steps💻 Local Development
Promise.all with 25 concurrent steps💻 Local Development
Promise.all with 50 concurrent steps💻 Local Development
Promise.race with 10 concurrent steps💻 Local Development
Promise.race with 25 concurrent steps💻 Local Development
Promise.race with 50 concurrent steps💻 Local Development
workflow with 10 sequential data payload steps (10KB)💻 Local Development
workflow with 25 sequential data payload steps (10KB)💻 Local Development
workflow with 50 sequential data payload steps (10KB)💻 Local Development
workflow with 10 concurrent data payload steps (10KB)💻 Local Development
workflow with 25 concurrent data payload steps (10KB)💻 Local Development
workflow with 50 concurrent data payload steps (10KB)💻 Local Development
Stream Benchmarks (includes TTFB metrics)workflow with stream💻 Local Development
stream pipeline with 5 transform steps (1MB)💻 Local Development
10 parallel streams (1MB each)💻 Local Development
fan-out fan-in 10 streams (1MB each)💻 Local Development
SummaryFastest Framework by WorldWinner determined by most benchmark wins
Fastest World by FrameworkWinner determined by most benchmark wins
Column Definitions
Worlds:
|
There was a problem hiding this comment.
Pull request overview
Updates the CI PR “tests running” sticky comment flow to avoid exceeding runner ARG_MAX by passing the stale-banner content to marocchino/sticky-pull-request-comment via a file path instead of an inline message:.
Changes:
- Renders the stale-banner + previous results into a temp file in the
actions/github-scriptstep. - Switches the “stale warning” update step to use
sticky-pull-request-comment’spath:input. - Adds an empty changeset entry to reflect CI-only scope.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/tests.yml |
Writes the stale comment body to disk and passes it via path: to prevent oversized action invocation payloads. |
.changeset/pr-comment-stale-banner-via-path.md |
Adds an empty changeset (CI-only change). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
The
Update existing test comment with stale warning/Update existing benchmark comment with stale warningsteps in our two PR-commenting workflows inlined the previous comment body via${{ steps.get-comment.outputs.previous-results }}intomarocchino/sticky-pull-request-comment'smessage:input. As the e2e test matrix and benchmark tables grow, the resulting argv can exceedARG_MAXand the action fails withArgument list too long.This was first observed on a feature branch where the matrix had doubled, but the underlying fragility exists at any matrix size as the comment body grows over time.
Fix
Write the rendered stale-banner message to
$RUNNER_TEMP/stale-comment.mdinside theactions/github-scriptstep and pass the path tosticky-pull-request-commentvia itspath:input. The action accepts file input identically to inline messages, but with no argv-size limit. Robust to any future matrix size.Two files, two commits (same refactor applied to each):
.github/workflows/tests.yml.github/workflows/benchmarks.ymlThe final results-update step in
benchmarks.ymlalready usedpath: benchmark-summary.md; only the stale-banner step was inlined.Empty changeset since this is a CI-only change (no published packages affected).
Extracted from PR #1300.