-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Entity Analytics] Move risk scoring painless to static files... again (with sorting fix after test failure) #183844
Conversation
…based weighting the category based weighting, like all weighting, isn't used and we probably won't re-implement it in the next version of risk scoring this commit probably doesn't work. i can't get integration tests running locally I put the painless scripts in a directory and I load them from the file system at runtime. We should figure out how to bundle the scripts possibly. I'm not sure that it matters a lot, but I would like any static analysis processes to be able to work with this code as usual. e.g. i'd like to get a static-time error if a file is missing vs needing to run the risk engine task to find out a file is missing
…stic/kibana into risk-score-painless-refactor
…stic/kibana into risk-score-painless-refactor
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
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, thank you for getting to the bottom of the issue and running the Flaky Test Runner
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: cc @hop-dev |
Summary
This code was originally approved and merged in #182038
It was then reverted in #183759 after a test failure.
The previous code had introduced flakiness, occasionally the inputs would be supplied to risk scoring in the wrong order causing the score to decrease. Re-adding the sorting in the reduce script has fixed this.
Here is the only new code: a8cbb1c
Flaky test run 🟢