Stop reporting user/environment errors as unexpected bugs#7168
Open
Stop reporting user/environment errors as unexpected bugs#7168
Conversation
Contributor
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
Add 'write EPIPE' and 'Unsupported platform' to errorMessageImpliesEnvironmentIssue so they are no longer flagged as unhandled CLI bugs in error-analytics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
423df70 to
0d134b9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 2 new patterns to
errorMessageImpliesEnvironmentIssueincli-kit/error.tsto prevent common user environment errors from being reported as unhandled CLI bugs in Bugsnag/error-analytics.These errors are caused by the user's environment, not CLI bugs. They were showing up as
handled=false(unexpected) in error-analytics, creating noise.Patterns added
write EPIPEnode:internal/stream_base_commons.Unsupported platformworkerd/lib/main.jsplatform check.Patterns considered but excluded
Cannot find module@shopify/cli/dist/which could indicate packaging bugs.does not provide an export namedFlowBasedAutomationsQuery...export 'f') — those are real bugs, not user issues.is not exported byBuild failedBuild function failedErrorfor unsupported config likebuildEnd, which is our code.Each included pattern was verified by inspecting individual stack traces to confirm zero CLI/Shopify code is involved.
Test plan
error.test.ts🤖 Generated with Claude Code