Skip to content

fix(error-reporting): Silence ValidationError in telemetry - #1233

Closed
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/cli-1an-silence-validation-error
Closed

sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/cli-1an-silence-validation-error

Conversation

@sentry

@sentry sentry Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Previously, ValidationError instances, specifically those indicating "Too many positional arguments," were being reported to Sentry. These errors are a result of user input mistakes, not CLI bugs, and should therefore be silenced.

The initial fix broadly silenced all ValidationError instances. However, upon review, it was noted that ValidationError is also used for internal validation (e.g., buildFormatFromUrl throws it for unsupported build formats, setting the field to "installUrl"). Silencing all ValidationErrors would hide potential genuine CLI or API-contract bugs.

This PR refines the fix by narrowing the silencing condition in classifySilenced() to only ValidationError instances where the field property is explicitly "positional". This ensures that only user-input errors related to positional arguments are silenced, while other ValidationErrors that might indicate deeper issues are still captured and reported to Sentry.

Fixes CLI-1AN

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-1233/

Built to branch gh-pages at 2026-07-13 22:41 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@BYK BYK removed the risk: high label Sep 9, 2026
@github-actions github-actions Bot added the risk: low PR risk score: low label Sep 21, 2026
@betegon

betegon commented Sep 23, 2026

Copy link
Copy Markdown
Member

we're not silencing using errors.

@betegon betegon closed this Sep 23, 2026
@betegon

betegon commented Sep 23, 2026

Copy link
Copy Markdown
Member

we're not silencing using errors.

1 similar comment
@betegon

betegon commented Sep 23, 2026

Copy link
Copy Markdown
Member

we're not silencing using errors.

@betegon betegon reopened this Sep 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ea58049. Configure here.

Comment thread src/lib/error-reporting.ts
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cli Error Error Sep 23, 2026 6:35pm UTC
sentry-local Error Error Sep 23, 2026 6:35pm UTC

Request Review

This branch had an error being deployed

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

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants