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

tool: rewrite suricatasc and suricatactl in rust - v9 #12504

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jasonish
Copy link
Member

Continuation of #9817.

Replaces suricatasc and suricatactl with Rust variants removing python from our
distributed code (except suricata-update).

These now pass CI as some CI tests now use suricatasc where they didn't in the
previous version.

These should also be pure drop-in replacements.

Usually rewrites are a bad idea, but these are small, and in our core language
set, and may inspire us to write new more interesting tooling in the future :)

Ticket: https://redmine.openinfosecfoundation.org/issues/6287

This is a re-implementation of suricatasc program in Rust that
attempts to be a 100% drop-in replacement.
As we have 2 Windows builds, do one using the release-style
distribution file.
@jasonish jasonish requested review from inashivb and a team as code owners January 30, 2025 03:43
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.58%. Comparing base (cfbf8fd) to head (e7c972e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12504      +/-   ##
==========================================
+ Coverage   80.56%   80.58%   +0.01%     
==========================================
  Files         925      926       +1     
  Lines      259292   259295       +3     
==========================================
+ Hits       208906   208946      +40     
+ Misses      50386    50349      -37     
Flag Coverage Δ
fuzzcorpus 56.15% <ø> (+<0.01%) ⬆️
livemode 19.42% <ø> (+0.02%) ⬆️
pcap 44.22% <ø> (+0.03%) ⬆️
suricata-verify 63.41% <ø> (+0.02%) ⬆️
unittests 58.43% <ø> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24441

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.

Noice! :)

  1. CI failures look legit to me.
  2. Seems like we need doc update on usage of these tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants