Skip to content

ref(ci): Handle ENOENT instead of existsSync in token cost comment script - #2535

Merged
BYK merged 1 commit into
mainfrom
fix/token-cost-comment-enoent
Nov 26, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/token-cost-comment-enoent

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Follow-up to review feedback on #2533. scripts/token-cost-comment.mjs now reads the stats files and lists main's artifact folder directly, and treats ENOENT as missing instead of checking existsSync first. This skips the separate existence check and its check-then-read race, and any other read error still throws. Nothing else changes.

via @BYK.

--

View Session [Sentry]

…ript

Read the stats files and main's artifact folder directly and treat ENOENT
as missing, instead of checking with existsSync first.
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cli Ready Ready Preview Nov 26, 2026 6:33pm UTC
sentry-local Ready Ready Preview Nov 26, 2026 6:33pm UTC

Request Review

@BYK
BYK marked this pull request as ready for review November 26, 2026 19:01
@BYK
BYK merged commit e8db84f into main Nov 26, 2026
41 of 42 checks passed
@BYK
BYK deleted the fix/token-cost-comment-enoent branch November 26, 2026 19:01

This branch was successfully deployed

2 active deployments
Preview – cli — f63f527b Deployed Nov 26, 2026 by vercel[bot]
Preview – sentry-local — f63f527b Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant