Closed cleaaum closed 1 year ago
do_poll -> flowcb/poll/ check in the poll directory as I think most of the examples are already done.
Question 1: what is the difference between the action plugins and the filter plugins since they both are after_accept() plugins? Does it make sense to keep them in separate directories? the init .py of filter states "plugins intended for on_message entry_point." Seems like they could all be moved to action.
Question 2: some plugins like totalsave.py have on_start() and on_stop() methods. Should they me modified or renamed for v3?
merged in all current work from the v03_wip_plugins_v2Tov3_msg branch. also updated that branch with v03_wip... to reduce divergence as people work on it, people should pull from v03_wip once in a while...
it passed flows.
file/msg/post total plugins are now obsolete and the functionality has been added directly into flowcb/log.py
- plugins were deleted and config.py
updated to reflect deleted plugins on branch v03_wip_plugins_v2Tov3_msg
Branch v03_wip_plugins_v2Tov3_msg
will need to be merged into v03_wip
@petersilva
Went through the project #6's notes in the PluginsToPort column and merged their comments into this issue's description, as this issue is better for tracking.
Moved from project #6 to the Metpx Project.
summarizing recent work (last day or two):
These are all documented by direct editing of the summary at the top of the issue.
We have gotten to the point where there functionality is good enough to start deploying to internal clusters. so the focus is on that for now (will be tracked by internal tickets.) May come back to this at some point.
Internally have identified 234 plugins to port.
using two phase approach, phase 1: initial port. phase 2: testing/deployment.
in phase 1: 17/232 done (two "plugins" turned out to be shell scripts)
29/232 done.
56/236 done. (removed some, found some new ones due to continued audits.)
83/236 done. All polls completed, a few downloads done. downloads and converters are next target.
Features brought into sr3 based on analysis of plugins:
update: 154/236 done... 65% !
Devs want us to strip out the examples from the code.
let documentation take care of it.
163/236 -> 69% (mile stone: all post_ completed.)
178/236 -> 75%
185/236 , only 6 converts remain
218/235, all the on_message renames are done.
228/235... started the config conversion script.
235/235. All done! 😄
removed plugins covered by 2f2878d38d5e1e0ea99554efea030c30f00dff5a last goal is to review the few remaining ones in that directory... to empty sarracenia/plugins/ (where v2 plugins live in sr3)
completely done!
When porting a plugin, it should be moved from the /plugin dir to the /flowcb dir. To group them together, thinking of putting all on_message plugins (which become after_accept) into its own file directory called accept.
Documentation written/refined as a result of this issue:
https://metpx.github.io/sarracenia/How2Guides/v2ToSr3.html
So far the following plugins have been ported: Note: some of these still have FIXMEs and TODOs to take care of since I wasn't always sure about the logic of the plugin
Make your branch's PR reference this issue....
Misc --> /flowcb
Active Branch: v03_wip_plugins
Waiting on sr3 implementation for the rest.. no touchy
[x] data_nocr.py ( @petersilva )
The
on_data
entry point is not supported at the moment. it has the same problem ason_html_data
(#426), being called from thetransfer/
classes rather thanflow/
documented in eabfe7696be177f908b21b80d880ee2451f9bed6
[x] pxSender_log.py /( @petersilva )
The idea is to have sarra spew logs that look like PX so when people are porting PX->sarra they can log compare (vimdiff)
in v2, this is addressed by adding the --dry_run option to sender... ( #465 ) the dry_run/simulation mode is not yet implemented for sr3. Once that is done, this plugin is no longer needed.
[x] root_chown.py
[x] trace_on_stop.py
flowcb/destfn/
do_send --> /flowcb/send
on_heartbeat --> /flowcb/housekeeping
v03_wip_plugins_v2tov3_hb
by @MagikEhon_message --> /flowcb/accept
on_file --> /flowcb/after_work
INMARSAT
INMARSAT
... to be replaced by new APIfile_av_scan.py
do_poll--> /flowcb/poll/
Plugins Deleted So Far
download_ --> /flowcb//
do_download
is still missing... not sure... this one could be interesting. -PS/flowcb/retry.py
line_mode
plugin.line_to_SFTPattributes
plugin, and can be deleted for v3 (Clea).sr3 sanity
is run as a cronjob nowflowcb/log.py
flowcb/log.py
flowcb/log.py
flowcb/log.py
flowcb/log.py
flowcb/log.py