Skip to content

fix: Correctly attribute enterprise builds#2235

Merged
kevinrenskers merged 3 commits into
masterfrom
fix/778-attribute-enterprise-builds
Sep 29, 2022
Merged

fix: Correctly attribute enterprise builds#2235
kevinrenskers merged 3 commits into
masterfrom
fix/778-attribute-enterprise-builds

Conversation

@kevinrenskers

@kevinrenskers kevinrenskers commented Sep 28, 2022

Copy link
Copy Markdown
Contributor

📜 Description

This uses the check as suggested in the ticket, and I've found similar suggestions in StackOverflow and in HockeySDK-iOS (the old HockeyApp SDK). But I have no way of verifying this, and it feels a bit scary. I am also not sure how well this will age, maybe this will change with future iOS versions?

If users already have a way of overriding the build type, I am not 100% convinced we should add this to the SDK.

💡 Motivation and Context

Closes #778

💚 How did you test it?

Impossible :/

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • Review from the native team if needed
  • No breaking changes

🔮 Next steps

static NSString *
getReceiptUrlPath()
{
NSString *path = nil;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All these checks seemed a bit silly as we support iOS 9 and up.

@github-actions

github-actions Bot commented Sep 28, 2022

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1264.33 ms 1266.20 ms 1.87 ms
Size 20.51 KiB 332.66 KiB 312.15 KiB

Baseline results on branch: master

Startup times

Revision Plain With Sentry Diff
864c39a 1239.45 ms 1256.76 ms 17.31 ms
4a66f00 1259.84 ms 1281.66 ms 21.82 ms
4c1fab4 1222.96 ms 1251.00 ms 28.04 ms
172c95a 1220.08 ms 1251.74 ms 31.66 ms
9fc2dd0 1246.14 ms 1275.00 ms 28.86 ms
791123d 1256.10 ms 1266.68 ms 10.58 ms
791123d 1217.52 ms 1253.08 ms 35.56 ms
074350f 1241.00 ms 1249.60 ms 8.60 ms
202334c 1265.41 ms 1277.34 ms 11.93 ms
4a66f00 1224.73 ms 1241.14 ms 16.41 ms

App size

Revision Plain With Sentry Diff
864c39a 20.51 KiB 335.57 KiB 315.06 KiB
4a66f00 20.51 KiB 331.79 KiB 311.28 KiB
4c1fab4 20.51 KiB 331.79 KiB 311.28 KiB
172c95a 20.51 KiB 335.57 KiB 315.06 KiB
9fc2dd0 20.50 KiB 331.79 KiB 311.28 KiB
791123d 20.51 KiB 331.81 KiB 311.30 KiB
791123d 20.51 KiB 331.81 KiB 311.30 KiB
074350f 20.51 KiB 335.52 KiB 315.01 KiB
202334c 20.51 KiB 331.79 KiB 311.28 KiB
4a66f00 20.51 KiB 331.79 KiB 311.28 KiB

Previous results on branch: fix/778-attribute-enterprise-builds

Startup times

Revision Plain With Sentry Diff
18e3b32 1209.91 ms 1249.26 ms 39.35 ms

App size

Revision Plain With Sentry Diff
18e3b32 20.51 KiB 331.86 KiB 311.35 KiB

@brustolin brustolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@philipphofmann philipphofmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's give it a try. LGTM

@kevinrenskers
kevinrenskers merged commit 5ecf9f6 into master Sep 29, 2022
@kevinrenskers
kevinrenskers deleted the fix/778-attribute-enterprise-builds branch September 29, 2022 08:31
@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Correctly attribute enterprise builds ([#2235](https://github.com/getsentry/sentry-cocoa/pull/2235))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against dead61e

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.

Attribute issues from enterprise builds with build_type "enterprise" instead of "test"

3 participants