-
Notifications
You must be signed in to change notification settings - Fork 68
Upgrade github/codeql
dependency to 2.20.7
#913
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
base: main
Are you sure you want to change the base?
Conversation
Update queries after `TemplateParameter` deprecation
Update A2-10-4 after QL changes
/test-performance |
🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. |
🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You can find full graphs and stats in the PR that was created for this test in the release engineering repo.
🏁 Below are the slowest predicates for the last 2 releases vs this PR.
|
Seems like a fairly large performance regression. I am happy to take a look at the compatible types predicate and the integer constant macro predicate performance. |
…nteger constant macros
…es-upgrading-to-2.20.7 Fix bad joins on function names and unnecessarily large relation on integer constant macros
/test-performance |
🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. |
🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You can find full graphs and stats in the PR that was created for this test in the release engineering repo.
🏁 Below are the slowest predicates for the last 2 releases vs this PR.
|
Still a fair performance regression in cpp, from 2837 to 3299 seconds. That ~450 sec delay is not entirely explained by the slowest predicates highlighted:
Totals to 289s by themselves alone, ignoring that they really need to be compared to the slowest predicates from the previous release. We'll need to rely on the data pushed up to the release engineering branch and expect maybe a few rounds of getting this down. |
Poor join ordering on locations.
- Only consider declarations within user code - as results in system headers will be thrown away, and significantly bloat the interemediate relation sizes. - Inline the function scope exclusion to documentable declaration. - Extract utility predicates for determining if there's a documented definition, or whether there are only definitions.
Avoid cross-product on function.
/test-performance |
🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. |
🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You can find full graphs and stats in the PR that was created for this test in the release engineering repo.
🏁 Below are the slowest predicates for the last 2 releases vs this PR.
|
@MichaelRFairhurst I've made some further performance improvements, and it looks like we've now addressed the main issues - performance for both C and C++ is now below the 2.48.0 release. |
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.
Nice! Awesome to see performance improved overall for both standards now.
Should this also have a change note?
|
||
query predicate problems(FunctionCall fc, string message, RecursiveFunction f, string functionName) { | ||
not isExcluded(fc, getQuery()) and | ||
f = fc.getTarget() and |
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.
This query is incorrect, I think.
Filed here: #935
This PR upgrades the CodeQL CLI version to 2.20.7.
CodeQL dependency upgrade checklist:
github/codeql
test cases succeed.github/codeql-coding-standards
repository.