-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Process isolation for cache directory #1095
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1095 +/- ##
==========================================
- Coverage 80.70% 80.43% -0.27%
==========================================
Files 194 195 +1
Lines 6359 6405 +46
Branches 1411 1417 +6
==========================================
+ Hits 5132 5152 +20
- Misses 764 790 +26
Partials 463 463
Continue to review full report at Codecov.
|
How the fuck did this pass the tests |
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.
Just opened this and turns out I had unpublished reviews :)
rip alexey
options.CacheDirectoryPath, | ||
"Sentry", | ||
options.Dsn?.GetHashString() ?? "no-dsn" | ||
) | ||
: throw new InvalidOperationException("Cache directory is not set."); | ||
|
||
_processingDirectoryPath = Path.Combine(_isolatedCacheDirectoryPath, "__processing"); | ||
_isolatedCacheDirectoryPath = Path.Combine( |
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.
Possibly an opt-out of this extra complexity given it isn't needed in mobile environments
{ | ||
public static int GetCurrentProcessId() | ||
{ | ||
using var process = Process.GetCurrentProcess(); |
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.
Doesn't work on IL2CPP so we might need to swap out in that environment with some P/Invoke.
Closes #1067