Skip to content
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

JS/TS Analyse 2.20.4 Runs Extremely Slow #18736

Open
aaronmassicotte opened this issue Feb 11, 2025 · 1 comment
Open

JS/TS Analyse 2.20.4 Runs Extremely Slow #18736

aaronmassicotte opened this issue Feb 11, 2025 · 1 comment
Labels
question Further information is requested

Comments

@aaronmassicotte
Copy link

aaronmassicotte commented Feb 11, 2025

Pipelines had been taking >90m to run the CodeQL github/codeql-action/analyze@v3 step sicne 2.20.4. When reverting back to 2.20.3 via

...
      - name: "Initialize CodeQL"
        uses: github/codeql-action/init@v3
        with:
          tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.20.3/codeql-bundle-linux64.tar.zst
          languages: javascript-typescript
...

the issue is resolved. It is difficult to see why this is happening, but in our case the codebase is large (CodeQL scanned 8401 out of 8401 TypeScript files and 1568 out of 1569 JavaScript files in this invocation.). Normal runtime for this job is about 10 minutes with 32 GB memory and 40 (32 effective) CPUs

Let me know if I can help resolve the issue by providing additional details about the codebase. I suspect something in particular about this codebase may be running inefficiently, as no other JS/TS scans within the enterprise have been impacted so far

@jketema
Copy link
Contributor

jketema commented Feb 11, 2025

Hi @aaronmassicotte,

There's not a lot to go by here. Would you be able to share the codebase? If not the best option it to re-run the workflow with debugging enabled. This will generate some artifacts, including a database. When you download the artifacts you should be able to run the analysis locally. See here on how to do that. You want to pass --tuple-counting --evaluator-log output.log as additional options to codeql database analyze, and post-process the output.log file with codeql generate log-summary --format=text output.log summary.log. Then share the summary.log file with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants