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

Notify Sentry of production releases #3998

Merged
merged 2 commits into from
Apr 19, 2021
Merged

Notify Sentry of production releases #3998

merged 2 commits into from
Apr 19, 2021

Conversation

paolodamico
Copy link
Contributor

@paolodamico paolodamico commented Apr 15, 2021

Changes

This will notify Sentry of releases to production to help identify faster commits that caused a bug.

Before

After

Checklist

  • All querysets/queries filter by Organization, by Team, and by User
  • Django backend tests
  • Jest frontend tests
  • Cypress end-to-end tests
  • Migrations are safe to run at scale (e.g. PostHog Cloud) – present proof if not obvious

@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 14:58 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:05 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:31 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:43 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:46 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:46 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 15:55 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 16:04 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 16:10 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 16:14 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 16:15 Inactive
@timgl timgl temporarily deployed to posthog-pr-3998 April 15, 2021 16:22 Inactive
@paolodamico
Copy link
Contributor Author

Ready for a quick review

SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: posthog
SENTRY_PROJECT: posthog
with:
Copy link
Contributor

Choose a reason for hiding this comment

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

As per the defaults here:

https://github.com/getsentry/action-release#parameters

Seems as though this will tag releases based on the commit hash, which is fine, but not aligned with our version naming system... Could we pull our version name into this?

Copy link
Contributor

Choose a reason for hiding this comment

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

We should be able to pull this from version.py or the latest tag

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is for Cloud only though, right? In which case version doesn't matter at all, only the commit

Copy link
Contributor

Choose a reason for hiding this comment

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

ah right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly! Let me know if we can move forward with this. FYI relevant secret already configured for the repo.

Copy link
Collaborator

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Let's go for it

@Twixes Twixes merged commit 6b9f60f into master Apr 19, 2021
@Twixes Twixes deleted the sentry-releases branch April 19, 2021 10:02
fuziontech pushed a commit that referenced this pull request Apr 19, 2021
* master: (62 commits)
  Docker support on the Apple M1 chip / arm64 (#4024)
  Release session filters (#4030)
  Notify Sentry of production releases (#3998)
  Make new Sessions filter UI responsive (#3988)
  Change wording to be even clearer (#4027)
  Defer event fields on team model to make grabbing fields a bit more lazy (#4028)
  🤖: Add kevinhu as a contributor 🎉 (#4023)
  Patch 3638 (#4022)
  3638 trailing wau mau (#3929)
  Use virtual list for property select (#4020)
  Miscellaneous improvements (#4003)
  Autofocus filter dropdown (#3957)
  User ID convention naming (#3943)
  Pin prod docker-compose to Postgres 13 and Redis 6 (#4019)
  Invite sign up E2E tests (#3591)
  🤖: Add angelahuang89 as a contributor 🎉 (#4018)
  Set undefined user properties as undefined in webhooks messages (#3685)
  Avoid double-stacked <hr /> lines in trends (#4014)
  Update plugin server to 0.16.14 (#4017)
  Don't catch all exceptions for migrating clickhouse (#4016)
  ...
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.

4 participants