-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add docker logs plugin #507
Conversation
introduces dependency on fox-it#507.
Co-authored-by: Erik Schamper <[email protected]> Co-authored-by: Stefan de Reuver <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #507 +/- ##
==========================================
+ Coverage 73.69% 73.79% +0.10%
==========================================
Files 278 279 +1
Lines 23153 23272 +119
==========================================
+ Hits 17063 17174 +111
- Misses 6090 6098 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Erik Schamper <[email protected]>
Thanks @Horofic. There seems to be a race condition in the order in which records are returned. I am unable to reproduce the failing tests locally. Unfortunately sorting on records is not possible, what do you recommend as a fix? |
Maybe the test log files are iterated/loaded in a different order (based on some filesystem/Python listdir quirk). |
Check. In that case, incorporating the last remarks from @Schamper should do it. |
It was a remark at a possible cause, the suggestion wasn't to fix that 😄 |
Perhaps fox-it/flow.record#108 fixes this when adding import operator
results.sort(key=operator.attrgetter('_generated')) Interesting to see the 3.12 CI environment does not seem to be impacted by this. |
I don't think this will fix the problem, as I think the problem lies in the order at which the log files are mapped into the virtual filesystem. At least on my local system, it gets mapped correctly, but for some reason in the CI it gets mapped the other way around (probably something to do with timestamps). Sorting on the record content (e.g. ts, message) should result in a consistent test output. |
Seems like the
|
Yeah unfortunately the PyPy 3.9 CI does that. We have to keep re-running it until it doesn't segfault 😄 |
As discussed in #441.