Skip to content

Ability to unblock CI builds if Sentry is experiencing outage/downtime #16195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zackdotcomputer opened this issue May 5, 2025 · 5 comments
Assignees
Labels

Comments

@zackdotcomputer
Copy link

Problem Statement

At the time of writing, Sentry is experiencing a "major outage". This is, in turn, blocking my company from being able to build or deploy locally, to staging, or to production. Whenever we attempt to build our NextJS application, the build fails at the end with:

Sentry CLI Plugin: Command failed: /Users/zack/code/addition/lewis/web/node_modules/@sentry/cli/sentry-cli releases new nit4tTNbwVGr2JmDchPc6
error: API request failed
  caused by: sentry reported an error: bad gateway (http status: 502)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

There does not appear to be a documented workaround to allow us to disable Sentry temporarily or allow the Sentry "create new release" step to fail gracefully. As such, while Sentry is down, we are unable to work.

Solution Brainstorm

We would like a env variable or other configurable value that would allow us to either:

  1. Disable Sentry's build post-processing
  2. Allow Sentry's build post-processing to fail without killing the webpack build.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 5, 2025
@zackdotcomputer zackdotcomputer changed the title Ability to unblock CI builds if Sentry is experience outage/downtime Ability to unblock CI builds if Sentry is experiencing outage/downtime May 5, 2025
@rgegriff
Copy link

rgegriff commented May 5, 2025

Adding this for context; getsentry/sentry-webpack-plugin#379

@zackdotcomputer
Copy link
Author

Thanks @rgegriff - I didn't realize the webpack plugin was silo'd into its own repo. I see the recommendations over there and anticipate that this means someone from Sentry will show up and use that discussion as a reason to close this issue. I'm going to choose to leave it open myself, though, since I'm hoping they'll reconsider. At the very least, providing documentation and a link to it as part of the crash/failure would be IMO preferable to failing with no obvious escape hatch unless one finds that closed Github Issue and implements its suggestion.

@lforst
Copy link
Member

lforst commented May 6, 2025

That's fair feedback. We'll

  • add a log message on build failures due to Sentry CLI explaining how to unblock yourself.
  • properly expose the errorHandler option that is forwarded to the webpack plugin.
  • add docs on this whole shebang.

@zackdotcomputer
Copy link
Author

🙏 thank you @lforst - that would have given me the tools I needed to sort this out yesterday.

@raine
Copy link

raine commented May 7, 2025

For now you can pass to Next.js Sentry config:

unstable_sentryWebpackPluginOptions: {
  errorHandler: (err) => {
    console.log("Sentry CLI Plugin: " + err.message);
  },
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

7 participants