-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove CrashLoggingDataProvider.releaseName #204
Conversation
@crazytonyli Since this library doesn't have major/minor releases, I suggest updating the clients before merging this to avoid breaking any of the clients. |
@oguzkocer Thanks for the heads up! I'll look into updating the apps now. |
@oguzkocer I have updated the apps. See the linked PR above ⏫
Do you mean the library releases don't follow semantic versioning? Once this PR is merged, should I publish the new release as 4.0.0 or 3.5.1? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we generally follow semantic versioning here. I guess it should be 4.0.0
. Or if we version this differently, what's the rule @oguzkocer ?
About the PR - I guess it'll make some mess in Sentry release dashboards. In WooCommerce Android we have this logic:
which prevents from adding multiple "PR releases", as it is in WordPress/Jetpack app
WDYT about keeping the releaseName
and request build
so we can join and prepare <app-id>@<version>+<build>
ourselves? This would still allow us to have a common "PR release" so we won't pollute the Sentry dashboard.
Or maybe even easier way: keep override val releaseName: String? = if (buildConfig.debug) {
DEBUG_RELEASE_NAME
} else {
// delegate preparing release name to Sentry SDK
null
} |
Unfortunately we don't follow semantic versioning as closely as we should. I'd tag this as |
@wzieba I am not a fan of overloading the meaning of
|
Sure, good idea @oguzkocer 👍 We have a similar approach with Lines 83 to 104 in 7f6f941
|
One thing I'd change to this suggestion is to make it SDK-agnostic, as the rest of the |
@wzieba Good catch regarding the PR releases.
I noticed the WC iOS app has PR releases in Sentry too. Would it be okay to make the Android app do the same? |
I'm not sure. What I'd like to keep is to not create releases for PRs, but keep them all in artificial "debug" release as the logic from WC Android goes. The PR releases don't seem to have any value for product teams, and they just clutter the dashboard. I'd vote more to keep this kind of logic in clients instead: |
I've prepared the suggestion in form of PR, #206 WDYT @crazytonyli ? |
That's true 😕. I think binary compatibility validator could help us in this matter for |
I agree. Finding crash report is probably the only value in the PR releases. And having one release for all PRs is sufficient for finding crash reports. I don't really have a strong opinion on either approach. But I do feel like there is value in keeping it consistent across all apps on both platforms. #206 looks good to me. What do you think rebasing that PR with the trunk branch and I'll close this one? |
Good idea 👍 I'll come up with a PR to iOS Tracks.
Sure thing, thanks! |
Closing in favor of #206. |
The same change was made to the iOS Tracks library in Automattic/Automattic-Tracks-iOS#267. The gist is we'd want to use the default release name, whose format is
<app-id>@<version>+<build>
.See pdnsEh-1mT-p2 and p1710798607285959-slack-C6H8C3G23