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

Report release to sentry #8885

Merged
merged 8 commits into from
Feb 21, 2024
Merged

Conversation

deivid-rodriguez
Copy link
Contributor

To better catch regressions.

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner January 24, 2024 13:25
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/report-release-to-sentry branch from 6054b28 to fd76f70 Compare January 24, 2024 13:31
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/report-release-to-sentry branch 4 times, most recently from 8a7ebbb to eb8ac52 Compare January 24, 2024 14:58
@deivid-rodriguez deivid-rodriguez marked this pull request as draft January 24, 2024 15:12
@deivid-rodriguez
Copy link
Contributor Author

deivid-rodriguez commented Jan 24, 2024

Sounds like the updater SHA is not getting passed correctly, needs some debugging. Passing "release" as a tag seems to work though.

@JamieMagee
Copy link
Contributor

Can I merge #8878 first please?

@deivid-rodriguez
Copy link
Contributor Author

Of course, I actually tried this in staging and saw "development" being reported as the release, which is unexpected! So it's currently marked as WIP and I'll hold working on it at least until your migration is done 👍.

@JamieMagee
Copy link
Contributor

Thanks! You are good to go.

@abdulapopoola abdulapopoola added the T: bug 🐞 Something isn't working label Jan 30, 2024
@Nishnha Nishnha force-pushed the deivid-rodriguez/report-release-to-sentry branch from eb8ac52 to 5d11d63 Compare February 20, 2024 18:03
@Nishnha Nishnha marked this pull request as ready for review February 21, 2024 01:11
@Nishnha Nishnha merged commit c0ef96f into main Feb 21, 2024
120 of 121 checks passed
@Nishnha Nishnha deleted the deivid-rodriguez/report-release-to-sentry branch February 21, 2024 22:39
@Nishnha
Copy link
Member

Nishnha commented Feb 22, 2024

It looks like it's using the default development value for the release on new sentry issues, so I opened #9107

Screenshot 2024-02-22 at 12 57 00 PM

I think it's because the "prepare tag" and "prepare tag (fork)" steps are both getting skipped and that's where we pass the value to the GITHUB_ENV. We are missing the case where the workflow was triggered by a pull request review

Screenshot 2024-02-22 at 12 55 33 PM

Nishnha added a commit that referenced this pull request Feb 23, 2024
Fixes #8885 (comment) where our sentry releases are still reporting the default value of "development" instead of the build SHA.

We were passing in the DEPENDABOT_UPDATER_VERSION env as a build arg but referencing it as an ENV in docker. Let's update these to match https://docs.docker.com/reference/cli/docker/container/run/#env
Nishnha added a commit that referenced this pull request Feb 23, 2024
* Pass in dependabot_updater_version as env

Fixes #8885 (comment) where our sentry releases are still reporting the default value of "development" instead of the build SHA.

We were passing in the DEPENDABOT_UPDATER_VERSION env as a build arg but referencing it as an ENV in docker. Let's update these to match https://docs.docker.com/reference/cli/docker/container/run/#env

* Pass the build arg to a docker env
@deivid-rodriguez
Copy link
Contributor Author

Yep @Nishnha, I observed the same thing and marked this PR as WIP because of that. Awesome that you managed to fix the root cause 💪 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants