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

fix: improve systemd checker #2507

Merged
merged 1 commit into from
Jan 25, 2023
Merged

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Jan 9, 2023

  • Drop LIBSYSTEMD_([0-4]+[0-9]+[0-9]+)(?!.*LIBSYSTEMD_([0-4]+[0-9]+[0-9]+)) pattern as it raises a false positive with dbus-daemon which contains LIBSYSTEMD_209
  • While at it, replace MULTILINE by \r?\n for consistency with other checkers
  • freedesktop:systemd CPE ID has been deprecated in favor of systemd_project:systemd by NVD NIST in January 2022

Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com

@ffontaine ffontaine force-pushed the fix-systemd-checker branch 3 times, most recently from 853f703 to 73247f9 Compare January 12, 2023 09:14
- Drop
  "LIBSYSTEMD_([0-4]+[0-9]+[0-9]+)(?!.*LIBSYSTEMD_([0-4]+[0-9]+[0-9]+))"
  pattern as it raises a false positive with dbus-daemon, libvirt and
  openvpn, etc which contain LIBSYSTEMD_209
- While at it, replace MULTILINE by \r?\n for consistency with other
  checkers
- freedesktop:systemd CPE ID has been deprecated in favor of
  systemd_project:systemd by NVD NIST in January 2022

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
@ffontaine ffontaine force-pushed the fix-systemd-checker branch from 73247f9 to cbd23a1 Compare January 24, 2023 12:19
@codecov-commenter
Copy link

Codecov Report

Merging #2507 (cbd23a1) into main (caa5612) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2507      +/-   ##
==========================================
- Coverage   82.95%   82.90%   -0.06%     
==========================================
  Files         594      594              
  Lines        9811     9809       -2     
  Branches     1344     1344              
==========================================
- Hits         8139     8132       -7     
- Misses       1333     1347      +14     
+ Partials      339      330       -9     
Flag Coverage Δ
longtests 82.90% <100.00%> (+0.41%) ⬆️
win-longtests ?

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

Impacted Files Coverage Δ
test/test_data/apache_http_server.py 100.00% <ø> (ø)
test/test_data/asterisk.py 100.00% <ø> (ø)
test/test_data/dbus.py 100.00% <ø> (ø)
test/test_data/gnomeshell.py 100.00% <ø> (ø)
test/test_data/haproxy.py 100.00% <ø> (ø)
test/test_data/jack2.py 100.00% <ø> (ø)
test/test_data/janus.py 100.00% <ø> (ø)
test/test_data/keepalived.py 100.00% <ø> (ø)
test/test_data/libvirt.py 100.00% <ø> (ø)
test/test_data/nghttp2.py 100.00% <ø> (ø)
... and 25 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Huh. I'm glad to hear that there's a better signature we can use, but I'm now mystified as to why we had to use the LIBSYSTEMD work at all if changing it doesn't break the older tests. An oversight, I guess. Thanks for digging into this one and reducing false positives!

@terriko terriko merged commit f700bb9 into intel:main Jan 25, 2023
@ffontaine ffontaine deleted the fix-systemd-checker branch January 25, 2023 08:11
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.

3 participants