-
-
Notifications
You must be signed in to change notification settings - Fork 348
fix(profiling): fix macOS launch profiling issue #5144
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
fix(profiling): fix macOS launch profiling issue #5144
Conversation
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## armcknight/profiling/test/mac-app-launch-profiling-config-file #5144 +/- ##
====================================================================================================
+ Coverage 92.785% 92.799% +0.014%
====================================================================================================
Files 676 676
Lines 83888 84026 +138
Branches 30545 30597 +52
====================================================================================================
+ Hits 77836 77976 +140
+ Misses 5953 5952 -1
+ Partials 99 98 -1
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
dfab59c | 1240.43 ms | 1259.83 ms | 19.40 ms |
0ac3953 | 1212.67 ms | 1236.52 ms | 23.85 ms |
987aede | 1218.45 ms | 1240.68 ms | 22.23 ms |
f699e3c | 1203.06 ms | 1238.67 ms | 35.61 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
dfab59c | 22.30 KiB | 851.81 KiB | 829.51 KiB |
0ac3953 | 22.30 KiB | 851.81 KiB | 829.50 KiB |
987aede | 22.30 KiB | 851.81 KiB | 829.51 KiB |
f699e3c | 22.31 KiB | 851.81 KiB | 829.51 KiB |
Previous results on branch: armcknight/profiling/fix/mac-app-nonsandboxed-launch-profiling
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a3a845f | 1223.47 ms | 1242.00 ms | 18.53 ms |
f4097e8 | 1223.24 ms | 1234.51 ms | 11.27 ms |
c04d63b | 1225.94 ms | 1243.76 ms | 17.82 ms |
91caa36 | 1229.90 ms | 1254.02 ms | 24.13 ms |
75082a4 | 1228.67 ms | 1238.73 ms | 10.06 ms |
824f241 | 1237.29 ms | 1250.47 ms | 13.18 ms |
6a22387 | 1228.20 ms | 1255.57 ms | 27.37 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a3a845f | 22.31 KiB | 852.32 KiB | 830.01 KiB |
f4097e8 | 22.30 KiB | 852.31 KiB | 830.00 KiB |
c04d63b | 22.30 KiB | 851.88 KiB | 829.57 KiB |
91caa36 | 22.30 KiB | 851.86 KiB | 829.56 KiB |
75082a4 | 22.31 KiB | 852.31 KiB | 830.01 KiB |
824f241 | 22.30 KiB | 851.88 KiB | 829.57 KiB |
6a22387 | 22.30 KiB | 851.74 KiB | 829.43 KiB |
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.
We're getting there. Thanks for looking into this.
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
1 similar comment
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
1 similar comment
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
2 similar comments
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Refactored the implementation for testability, added tests and comments. |
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
1 similar comment
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
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.
@philprime I think based on my question, we will need an additional test case, where we call sentryBuildScopedCachesDirectoryPath
twice, the first time with a nil bundle id and a nonnil lastPathComponent, then the second time with a nonnil bundle path and the same lastPathComponent, and assert that we still use the lastPathComponent version of the static base path.
That also leads to other combinations but unsure what is actually possible and how defensive we want to get with this logic.
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Co-authored-by: Philipp Hofmann <[email protected]>
c7a2fe0
to
219b35c
Compare
24df57c
to
0a1b91e
Compare
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
…ig-file' into armcknight/profiling/fix/mac-app-nonsandboxed-launch-profiling
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
1 similar comment
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
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 maybe found one important issue to address, but close to LGTM.
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Co-authored-by: Philipp Hofmann <[email protected]>
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
Summary from internal Slack discussion on keep using the executable path name even if the bundle identifier becomes available: We think maintenance cost outweighs the benefit.
To conclude, it's not worth the effort and after careful reconsidering I am now going to revert this handling mechanism. |
🚨 Detected changes in high risk code 🚨High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:
|
3ab91e9
into
armcknight/profiling/test/mac-app-launch-profiling-config-file
fixes issue reported in #5142 and reproduced in the tests in #5143