Repository navigation
Add new parsers - #446
Open
ipmach wants to merge 24 commits into
Open
Add new parsers#446ipmach wants to merge 24 commits into
ipmach wants to merge 24 commits into
Conversation
viktorbeck98
requested changes
Nov 22, 2026
viktorbeck98
left a comment
Collaborator
There was a problem hiding this comment.
Nice to see Brain and AECID-PG in, and Drain got a lot shorter with the shared base.
Main things before merging: auto-config doesn't take effect (and the Brain grid breaks it once it does), aggregation shifts eventIDs, and a few DL tests got switched off. Details inline.
Two things I couldn't put inline:
parsers/__init__.pydoesn't exportBrainParser/AECIDPGParser, soselectComponentfails withUnknown method type 'brain_parser'(same foraecid_pg_parser). Drain works.base_detectorsandbase_alert_aggregationmoved tobases/without a re-export, sofrom detectmatelibrary.base_detectors import ...breaks for anyone upgrading (we have that in our experiment code).docs/auxiliar/persistency.md:229still uses the old path too. Could we keep a small shim for a release or two?
Comment on lines
+89
to
+93
| def set_configuration(self) -> None: | ||
| self.config = _get_best_config( | ||
| self.config_buffer, config=self.config, init_parser=self.init_parser | ||
| ) | ||
| self.config_buffer = [] |
Collaborator
There was a problem hiding this comment.
self.config gets the tuned values, but self.parser_gen is still the one built in __init__ from the original config, so auto-config has no effect. Rebuilding it here should do it:
self.parser_gen = self.init_parser(self.config)The tests only check config.*, maybe assert on parser_gen too.
Contributor
Author
There was a problem hiding this comment.
Mm... We can, but o we need it?
- I update the init file
- I move persistency code to a python file. Now if the path do not match it will raise an error
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
Add new parsers to the party!
Description
How Has This Been Tested?
Checklist
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.