Skip to content
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

Improve robustness of journal plugin #872

Merged
merged 15 commits into from
Oct 16, 2024

Conversation

JSCU-CNI
Copy link
Contributor

@JSCU-CNI JSCU-CNI commented Oct 1, 2024

This PR fixes #878. We added some sanity checks to make sure the journal plugin does not break if it encounters values that do not match the format we expected.

@JSCU-CNI JSCU-CNI force-pushed the improvement/journal-plugin branch from 52233ce to e47650c Compare October 9, 2024 14:38
Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small things

Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 63.15789% with 28 lines in your changes missing coverage. Please review.

Project coverage is 76.65%. Comparing base (9c8d4b5) to head (c65e28d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dissect/target/plugins/os/unix/log/journal.py 63.15% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #872      +/-   ##
==========================================
- Coverage   76.71%   76.65%   -0.06%     
==========================================
  Files         316      316              
  Lines       27069    27086      +17     
==========================================
- Hits        20765    20764       -1     
- Misses       6304     6322      +18     
Flag Coverage Δ
unittests 76.65% <63.15%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

JSCU-CNI and others added 2 commits October 16, 2024 10:39
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
@Schamper Schamper merged commit 9cc9de4 into fox-it:main Oct 16, 2024
16 of 20 checks passed
@JSCU-CNI JSCU-CNI deleted the improvement/journal-plugin branch December 4, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux systemd journal plugin type casting is broken
3 participants