Skip to content

For sentry-cli react-native appcenter, won't the Sentry release names conflict? (Staging vs. Production) #577

@m-pol

Description

@m-pol

I'm using this code to generate React Native CodePush releases:

sentry-cli --auth-token [my auth token] react-native appcenter [my AppCenter iOS project] ios ./build/ios/CodePush --deployment Staging --bundle-id [my bundle id]

sentry-cli --auth-token [my auth token] react-native appcenter [my AppCenter Android project] ios ./build/android/CodePush --deployment Staging --bundle-id [my bundle id]

sentry-cli --auth-token [my auth token] react-native appcenter [my AppCenter iOS project] ios ./build/ios/CodePush --deployment Production --bundle-id [my bundle id]

sentry-cli --auth-token [my auth token] react-native appcenter [my AppCenter Android project] ios ./build/android/CodePush --deployment Production --bundle-id [my bundle id]

The releases generated by the sentry-cli are named like so:

[my bundle id]-codepush:v123

etc., where vXXX is the CodePush release.

However, my CodePush Android/iOS projects are on different version numbers, and Staging/Production have different numbers too. E.g. my latest numbers are at:

iOS/Staging: v217
iOS/Production: v62
Android/Staging: v146
Android/Production: v61

It seems like the Sentry release names will eventually run into each other and cause problems because the label (v123) isn't enough to distinguish between Staging/Prod and iOS/Android.

Isn't this a problem? Or does Sentry somehow know how to distinguish?

Version: sentry-cli 1.44.3

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions