-
Notifications
You must be signed in to change notification settings - Fork 55
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 new collectors and remove fetch-on-checkpoint mechanism (New) #1788
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1788 +/- ##
==========================================
- Coverage 49.83% 49.83% -0.01%
==========================================
Files 377 377
Lines 40719 40715 -4
Branches 6851 6837 -14
==========================================
- Hits 20294 20290 -4
Misses 19700 19700
Partials 725 725
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9d4ee3d
to
0e5567f
Compare
Minor: fix sloppy copy paste comment
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.
Glad we caught the weird JSON formatting of journalctl for each line in the journal!
+1
) * Add new collectors and remove fetch-on-checkpoint mechanism * Remove also the tests for ResumeSessionHelper8 * Remove dmesg as it is included in journalctl * Rollback v8 removal and add v9 to disable v8 removal * Test peeker and resume helper Minor: fix sloppy copy paste comment * Fix the actual suspend mechanism and actually test it * Also test positive branch * Journalctl json doesn't output json, but json objects stream * Fix test, all should inherit the parser and exception * Test weird journalctl output * Change default value to instead of
Description
It is often useful to analyze the logs after a session is done to see why something went south. In order to do this, this PR adds a journal collector to system information.
This PR also moves the collection to the end of the session. I was about to create some complex machinery to run some collectors at the start of a run and some at the end, but I talked myself out of it. The collection was placed where it was placed because we thought we could use it during the run somehow. This idea went out of the window and all that is remaining now is the cost of running the collection at the start of the run, which is about 3s just to run inxi on my machine, for any session that is started, even if no submission is ever generated. I don't think the value we get (which is nothing right now) justifies this cost. If we will ever want to do something with that data during the run we can always revert (partially) this commit and tag the collectors/create functions to call them at finalize and first checkpoint, for now, I think we should do the easy thing and just collect at the end.
Resolved issues
Fixes: CHECKBOX-1753
Documentation
N/A
Tests
Tried this locally, in general I don't expect this to cause major issues as collectors can safely fail