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

userguide: explain rule types and categorization - v8 #12184

Closed

Conversation

jufajardini
Copy link
Contributor

@jufajardini jufajardini commented Nov 29, 2024

Previous PR: #12114

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7031

Please check the built version: https://suri-rtd-test.readthedocs.io/en/doc-sigtypes-et-properties-v8/rules/rule-types.html

Describe changes:

Many of the examples and conclusions documented here were derived from tests and checks as seen on OISF/suricata-verify#2153

@jufajardini jufajardini added the typo/doc update No code change : only doc or typo fixes label Nov 29, 2024
@jufajardini jufajardini requested review from victorjulien and a team as code owners November 29, 2024 21:48
@jufajardini jufajardini marked this pull request as draft November 29, 2024 21:56
@jufajardini
Copy link
Contributor Author

Moved to draft as I see too many CI failures.
Still apt for a review, though, please.

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.17%. Comparing base (ae10fc3) to head (c7ff988).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12184   +/-   ##
=======================================
  Coverage   83.16%   83.17%           
=======================================
  Files         912      912           
  Lines      257066   257066           
=======================================
+ Hits       213797   213818   +21     
+ Misses      43269    43248   -21     
Flag Coverage Δ
fuzzcorpus 61.01% <ø> (+0.03%) ⬆️
livemode 19.41% <ø> (ø)
pcap 44.39% <ø> (-0.04%) ⬇️
suricata-verify 62.75% <ø> (+0.05%) ⬆️
unittests 59.18% <ø> (+<0.01%) ⬆️

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

@suricata-qa
Copy link

WARNING:

field baseline test %
build_asan

Pipeline 23611

Copy link
Member

@inashivb inashivb left a comment

Choose a reason for hiding this comment

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

The docs look neat and well organized. If you clean the PR, this looks pretty good to me.
Will let others review the content too.

@jufajardini jufajardini force-pushed the doc-sigtypes-et-properties/v8 branch from e94d4f1 to a902f5f Compare December 2, 2024 12:05
This enables the usage of collapsible sections for the docs.
Add documentation about the rule types introduced by 2696fda.

Add doc tags around code definitions that are referenced in the docs.

Task #https://redmine.openinfosecfoundation.org/issues/7031
@jufajardini jufajardini force-pushed the doc-sigtypes-et-properties/v8 branch from a902f5f to c7ff988 Compare December 2, 2024 12:51
@jufajardini
Copy link
Contributor Author

Clang and commit errors were due to a mistakenly added libhtp build workflow? I'll never know how, but fixed.

Still trying to figure out how to fix the Almalinux 9 failure. Must find the right package for sphinx-toolbox there...

@jufajardini
Copy link
Contributor Author

Clang and commit errors were due to a mistakenly added libhtp build workflow? I'll never know how, but fixed.

Still trying to figure out how to fix the Almalinux 9 failure. Must find the right package for sphinx-toolbox there...

Not sure I'll be able to, as I couldn't find the package for that distro. I went back to #9165 to see if @jasonish had found a solution for displaying very long json/ schema stuff, but failed to find something.

So, the next question is: do we keep large --engine-analysis output examples, or should I look for shorter ones?

@jufajardini jufajardini added the decision-required Waiting on deliberation from the team label Dec 2, 2024
@jasonish
Copy link
Member

jasonish commented Dec 2, 2024

Doesn't look like sphinx-toolbox is universally available in system packages? And we'd at least need it on the Dist Builder which is currently Ubuntu 22.04.

@jasonish
Copy link
Member

jasonish commented Dec 2, 2024

Not sure I'll be able to, as I couldn't find the package for that distro. I went back to #9165 to see if @jasonish had found a solution for displaying very long json/ schema stuff, but failed to find something.

I can't remember what the issue was, but this work did get merged.

@jufajardini
Copy link
Contributor Author

Not sure I'll be able to, as I couldn't find the package for that distro. I went back to #9165 to see if @jasonish had found a solution for displaying very long json/ schema stuff, but failed to find something.

I can't remember what the issue was, but this work did get merged.

But I think with your work you didn't use anything to collapse large sections, right?

@jufajardini
Copy link
Contributor Author

Doesn't look like sphinx-toolbox is universally available in system packages? And we'd at least need it on the Dist Builder which is currently Ubuntu 22.04.

It works locally and on read the docs, but I'd rather have our docs looking the same - as much as possible - everywhere. I'll submit a new PR removing the sphinx-toolbox dependency.

@jufajardini
Copy link
Contributor Author

collapsible sections removed with #12209

@jufajardini jufajardini closed this Dec 3, 2024
@jufajardini jufajardini removed the decision-required Waiting on deliberation from the team label Dec 3, 2024
@jasonish
Copy link
Member

jasonish commented Dec 3, 2024

But I think with your work you didn't use anything to collapse large sections, right?

No, it didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typo/doc update No code change : only doc or typo fixes
Development

Successfully merging this pull request may close these issues.

4 participants