-
Notifications
You must be signed in to change notification settings - Fork 108
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 an issue where aborted processes could corrupt storage #8802
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8802 +/- ##
==========================================
+ Coverage 91.29% 91.31% +0.01%
==========================================
Files 342 342
Lines 20985 20995 +10
==========================================
+ Hits 19159 19171 +12
+ Misses 1826 1824 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a6921a5
to
181d077
Compare
181d077
to
1573d77
Compare
1573d77
to
f7778f0
Compare
filepath = Path("./file.txt") | ||
storage._write_transaction(filepath, data) | ||
|
||
assert filepath.read_bytes() == data |
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.
deindent one level to make sure the context manager does not delete it (which I assume it is not meant to do)?
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.
ah, that context manager is probably irrelevant to _write_transaction.
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.
Nice!
Issue
Resolves #8799
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable