-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Autoignore mechanism for hijacks of limited impact/visibility #373
Conversation
🏃 Benchmark Results 🏃
|
Codecov Report
@@ Coverage Diff @@
## master #373 +/- ##
==========================================
+ Coverage 79.72% 80.82% +1.10%
==========================================
Files 5 6 +1
Lines 1859 2044 +185
==========================================
+ Hits 1482 1652 +170
- Misses 377 392 +15
Continue to review full report at Codecov.
|
DONE, will also update the wiki accordingly. |
@slowr @pgigis This PR is ready for review. Please check the code (I have also added needed tests) as well as this wiki page on how to use the new mechanism: https://github.com/FORTH-ICS-INSPIRE/artemis/wiki/Configuration-file#autoignore |
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.
LGTM 🎉 What happens if the same prefix is on multiple autoignores?
If the same prefix is on multiple rules, if at least one of these rules causes a prefix-related alert to be ignored, it will be ignored. This is the correct behavior, right? Or should we do sth else, like issuing a warning to the user? I think that since the user puts it in at least one group that causes autoignore, it should be autoignored (the related alert I mean). See also my comments in the PR. Should I merge the current state or update something in the code? |
Yes, I think this is the correct behaviour for now. In the future we can show an alert that it's on multiple rules for cleanup if needed. |
Description of PR
What component(s) does this PR affect?
database, scheduler, env vars
Does the PR require changes on other components? If yes, please mark the components:
Related Issue
Resolves #346
Solution
Type
Checklist:
I have read the contributing guide and my code conforms to the guidelines.
This change requires a change in the documentation.
I have updated the documentation accordingly.
TODO: Add proper tests (TestAutoIgnore)
TODO: adjust per configured prefix, consider module separation