-
Notifications
You must be signed in to change notification settings - Fork 1.9k
JS: Remove ATM CodeToFeatures library
#7575
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
Conversation
We no longer use the `CodeToFeatures` AST, therefore these checks are defunct.
...rimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll
Outdated
Show resolved
Hide resolved
annarailton
left a comment
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.
Just added some comments.
I think I've understood the changes here. Since this is meant to be a "zero diff" PR (i.e. not change any of the final behaviour), if the pipeline comes out with zero / near zero differences with this change in, I'm happy.
...rimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll
Outdated
Show resolved
Hide resolved
...rimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll
Outdated
Show resolved
Hide resolved
.../experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/BaseScoring.qll
Outdated
Show resolved
Hide resolved
...erimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointScoring.qll
Outdated
Show resolved
Hide resolved
The refactoring to remove the `CodeToFeatures` AST reintroduced a performance problem. This commit resolves it by pushing size restrictions into intermediate predicates.
9a0a660 to
92d6fec
Compare
annarailton
left a comment
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.
Thank you for the comment updates!
The
CodeToFeatureslibrary is now mostly a relic from older days, and is now unnecessarily complicated, getting in the way of onboarding new people to the codebase and optimizing queries. This PR (along with corresponding internal PRs) replaces it with much simpler definitions for theenclosingFunctionBodyandenclosingFunctionNamefeatures. These new definitions are behaviour-preserving but much more readable and maintainable.Commit-by-commit review recommended.