No Kotlin and Timed out waiting for analysis to finish processing
I added the CodeQL action to my repo and the logs show that Java files are getting processed, but Kotlin files are not.
I also see the following warning in the logs:
Timed out waiting for analysis to finish processing
and the Code Scanning Results hanging.
Hi @eygraber, thanks for your question. Could you point me to a an actions workflow run that shows the problems you mention? Thanks.
https://github.com/eygraber/portal/pull/423
The time out issue is non-critical. This is GitHub not reporting back on time to the action that the results have been uploaded. If the scan results should still show up, but it might take a bit longer.
To diagnose the Kotlin problem further, I will need some CodeQL debugging artifacts. How to get these is described here: https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/logs-are-not-detailed-enough.
~~https://github.com/eygraber/portal/actions/runs/5583912286?pr=423~~
Sorry the correct one should be https://github.com/eygraber/portal/actions/runs/5583912294?pr=423
Note that for Gradle the --no-deamon option needs to be specified. See here: https://docs.github.com/en/code-security/codeql-cli/using-the-codeql-cli/creating-codeql-databases#specifying-build-commands under "Java project built using Gradle".
That's specified in the environment variable with -Dorg.gradle.daemon=false.
I have another repo that is very similar where this works https://github.com/eygraber/uri-kmp/actions/runs/5583782037
Is it doing some kind of build artifact caching somewhere, because the logs contain suspiciously little.
It could be using gradle's cache. I'll try a build disabling it
Looks like that was the issue, now the Kotlin lines are getting processed.
Good to hear! Shall we close this issue?