-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TST : move test before others to prevent errors #2230
Conversation
@stefan6419846 |
@MartinThoma |
Ah, I didn't notice that when I merged. I'll check :-) |
Thanks for the hint! |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2230 +/- ##
==========================================
+ Coverage 94.36% 94.43% +0.06%
==========================================
Files 43 43
Lines 7591 7595 +4
Branches 1498 1500 +2
==========================================
+ Hits 7163 7172 +9
+ Misses 264 260 -4
+ Partials 164 163 -1
☔ View full report in Codecov by Sentry. |
While this might work for this specific case, I still do not think that this is a clean solution either, as all code should be side-effect free ideally. As soon as I would use the features of |
I agree, the order of tests should not matter. I'm closing this PR as we solved the issue via #2229. Thank you for jumping in that quickly again @pubpub-zz an proposing a solution 🙏 |
@stefan6419846 I'm open for the idea of addng |
@MartinThoma I am not sure whether we can actually deploy |
I see the argument for writing the file, e.g. that a a file could be partially written to the cache and another process tries to read it before it is completely written.
Do you think parallel reads are an issue? |
No, I only see parallel downloads/writes of the same files as an issue (maybe leading to subsequent read issues), while pure read operations on existing files or files only used once anyway should work. |
detected in #2228