Skip to content
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

Project: Sentry in CI/CD #2

Closed
5 tasks done
smeubank opened this issue Jul 5, 2023 · 4 comments
Closed
5 tasks done

Project: Sentry in CI/CD #2

smeubank opened this issue Jul 5, 2023 · 4 comments

Comments

@smeubank
Copy link
Member

smeubank commented Jul 5, 2023

Project Board

See our project board to track this initiative across all SDKs

Description

Ideally we attempt to automate, modify, and at least provide simple methods for users to inject sentry into their CI/CD pipelines. This include providing detection, automated integration, & pragmatic documentation on why it's beneficial. The why in a nutshell is that to be able to get full advantage of Sentry, you must have Sentry as part of the full dev and software delivery life cycle. Meaning new code, new versions of app, new releases, Sentry should have all that context. So you can fix problems faster when Sentry summarizes all relevant info in front of you.

Concrete Tasks

  1. Platform: Sourcemaps
    Lms24
  2. Platform: Sourcemaps
    Lms24

Things we discussed but decided to hold off for now:

  • Direct using API integrations on Vercel, Netlfy, CloudFlare etc
  • Automate setting up the Sentry Vercel/netflify integration
    • env variables are set
    • build command is adjusted (if necssary)

// via Sentry client infra tooling (wizards, plugins, cli, GHAs)

  • detect deployment platforms
    • netlify.toml

Features dependent upon:

  • ~ Releases
  • Upload source maps/context
  • git history and suspect commits

Hosting Provider:

  • AWS
  • GCP
  • Azure (azure-pipelines.yml)
  • Netlify (netlify.toml)
  • Vercel (???) requires special formatted env variables PUBLIC_%
  • Cloudflare (wrangler.toml)

CI/CD Tools:

  • GHA
  • Jenkins
  • Cloud Provider Pipelines

Platform specific:

  • package.json scripts
  • webpack, vite, rollup, esbuild etc
  • Nx
  • Fastlane (iOS)
@AbhiPrasad
Copy link
Member

Related: getsentry/develop#755

@tonyo
Copy link

tonyo commented Jul 5, 2023

Most of the established CI/CD tools have some sort of hooks/handlers triggered on workflow events (build started, succeeded, failed), so that could be a good integration point to inject Sentry-related steps.

Examples:

Questions I have at this point: what exact data would be most useful for users to have inside Sentry? How would we make it helpful/actionable in the bigger context (linking to releases, codecov data) and not just "yet another thing that Sentry can monitor"?

A related hackweek project: https://hackweek.getsentry.net/years/2021/projects/-MfntUplvj4OU6C3lOd1/add-instrumentation-to-githubs-ci
Also an honorable mention of https://github.com/getsentry/zeus/

@Lms24
Copy link
Member

Lms24 commented Sep 19, 2023

Regarding the last task, I did some digging, reading logs from customer calls RE source maps docs and two things came up:

I couldn't find other actionable feedback so once these PRs are merged, I'm gonna close this issue as completed. Happy to revisit docs If other things come up in the future.

@Lms24
Copy link
Member

Lms24 commented Oct 5, 2023

Closing as all concrete tasks are completed.

@Lms24 Lms24 closed this as completed Oct 5, 2023
@stephanie-anderson stephanie-anderson added this to the Errors milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants