Skip to content

v2.28.0 causes performance degradation in analysis. #592

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

Closed
rak3-sh opened this issue May 17, 2024 · 0 comments · Fixed by #593
Closed

v2.28.0 causes performance degradation in analysis. #592

rak3-sh opened this issue May 17, 2024 · 0 comments · Fixed by #593
Labels
bug Something isn't working

Comments

@rak3-sh
Copy link
Contributor

rak3-sh commented May 17, 2024

Describe the bug
After upgrading to codeql-coding-standards v2.28.0, the CodeQL analysis goes into an infinite loop for one of the projects in our organization. It is observed that queries using getPotentialScopeOfDeclarationStrict and getPotentialScopeOfDeclarationStrict_candidate functions in Scope.qll get stuck. One of these queries is the IdentifierHiding.ql.

To Reproduce
This problem was observed on a internal project. It is difficult to provide a minimized sample. However, in the PR that changes getPotentialScopeOfDeclarationStrict has a comment about a performance degrade. This is likely the problem.

Expected behavior
The query performs similar to v2.27.0.

Environment

  • CodeQL Coding Standards version: v2.28.0
  • CodeQL version: CodeQL CLI v2.14.6
  • Operating System: Linux

Additional context
Add any other context about the problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant