-
Notifications
You must be signed in to change notification settings - Fork 34
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
Switch from pyroute2 to pyroute2.core #239
Conversation
Only IPRoute in pyroute2.core is used is used by assemblyline see: https://github.com/svinota/pyroute2/discussions/786 and https://github.com/svinota/pyroute2/discussions/796
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all for hotfixes but has this been tested in the dev branch?
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
==========================================
+ Coverage 64.94% 65.22% +0.27%
==========================================
Files 119 119
Lines 10412 10412
==========================================
+ Hits 6762 6791 +29
+ Misses 3650 3621 -29
Continue to review full report at Codecov.
|
This will be merged after #240 is tested |
I can confirm that Frankenstrings is not erroring in staging with the base in the dev branch. @cccs-jh can you confirm as well? https://github.com/CybercentreCanada/assemblyline-base/releases/tag/v4.0.1.dev85 |
The newest pyroute2 version is split into separate packages. See https://github.com/svinota/pyroute2/discussions/786 and https://github.com/svinota/pyroute2/discussions/796.
Assemblyline only uses IPRoute from pyroute2.core. Currently the pyroute2 and pyroute2-minimal meta packages have import bugs related to not having importlib-metadata installed on python3.7 svinota/pyroute2#797. This is causing an error in Frankenstrings which uses functions in net.py to validate network strings. This is fixed by switching to pyroute2.core which doesn't use importlib-metadata and minimizes our dependencies.