Conversation
Codecov Report
@@ Coverage Diff @@
## master #7644 +/- ##
==========================================
+ Coverage 75.75% 75.82% +0.06%
==========================================
Files 659 659
Lines 185743 185744 +1
==========================================
+ Hits 140713 140832 +119
+ Misses 45030 44912 -118
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Information: QA ran without warnings. Pipeline 8325 |
| #include "app-layer-parser.h" | ||
| #include "flow.h" | ||
| #include "queue.h" | ||
| #include "rust.h" |
There was a problem hiding this comment.
it does feel a bit weird to include rust.h here when the parser doesn't use rust
There was a problem hiding this comment.
But it does : AppLayerTxData is defined in rust
| #include "suricata-common.h" | ||
| #include "conf.h" | ||
| #include "util-device.h" | ||
| #include "decode-sll.h" |
There was a problem hiding this comment.
this seems out of place here?
There was a problem hiding this comment.
Needed for SLL_HEADER_LEN
Maybe SLL_HEADER_LEN can be defined some place else so that util does not depend on decode...
But we may want to do that later
| @@ -25,7 +25,6 @@ | |||
| #include "util-device.h" | |||
|
|
|||
| #ifdef OS_WIN32 | |||
There was a problem hiding this comment.
nit: empty guard, will remove
victorjulien
left a comment
There was a problem hiding this comment.
Think this looks really good. The only thing that feels a bit like a hack is the including of rust.h in places where no Rust is used, so it appears to be using rust.h as a common header there. But maybe rust.h should in fact be merged into suricata.h?
Anyway, I feel this should not block merge and we can do further rounds of cleanups for this.
Where is The best way forward would to have multiple rust-X.h generated by cbindgen, but I do not think it will be easy |
|
Merged in #7653, thanks! |
|
Now I wonder what share of current PRs will fail CI because of this new check ;-) |
I don't think this is easy. Thats part of the reason why I was doing the experimental config crate as its own crate, 1) So it could be used independently of the rest of Suricata, and 2) so I could easily give it its own self contained header file. |
|
Should we make more suricata crates ? |
Yeah, probably not a bad idea. But it might still be too early to decide what goes where. Would probably end up with a |
:D: Failing because it doesn't recognize a macro called inside a macro, here: https://github.com/jufajardini/suricata/runs/7733918797?check_suite_focus=true |
@jufajardini do you need help on this ? |
It's fine now, but thanks for asking! We changed the approached and decided to call the macro in a different place, so the faulty behavior didn't show up. I did add a ticket with them describing the issue, so they can keep track of it, at least... |
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Related to Task OISF#7644
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/945
Describe changes:
Modifies #7643 with adding CI check ! using the patched cppclean
This PR adds about one hundred lines
#include "detect-engine-build.h"because it is being used in util tests forSigGroupBuildand such... Any thoughts on that ?