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

[bug] CodeQL error says goto https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed. #2354

Open
SwuduSusuwu opened this issue Jun 27, 2024 · 2 comments · May be fixed by #2355
Assignees

Comments

@SwuduSusuwu
Copy link

SwuduSusuwu commented Jun 27, 2024

[WeblQL gives a clickable link which ends with .]
If you remove the trailing . the URL ( https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed ) launches.
https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed. is from https://github.com/SwuduSusuwu/SubStack/actions/runs/9693135643/job/26747940322

  [2024-06-27 08:20:32] [build-stderr] cpp/autobuilder: using built-in deptrace DB
  [2024-06-27 08:20:33] [build-stderr] cpp/autobuilder: launched deptrace server
  [2024-06-27 08:20:34] [build-stderr] cpp/autobuilder: Build will be attempted from '.' even though no build system was found there.
  [2024-06-27 08:20:34] [build-stdout] ~/work/SubStack/SubStack ~/work/SubStack/SubStack
  [2024-06-27 08:20:34] [build-stdout] ~/work/SubStack/SubStack
  [2024-06-27 08:20:34] [build-stderr] cpp/autobuilder: No supported build system detected.
  [2024-06-27 08:20:34] [build-stderr] cpp/autobuilder: deptrace was enabled.
  [2024-06-27 08:20:34] [build-stderr] cpp/autobuilder: autobuild summary.
  Error: 6-27 08:20:34] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/hostedtoolcache/CodeQL/2.17.5/x64/codeql/tools/linux64/preload_tracer, /opt/hostedtoolcache/CodeQL/2.17.5/x64/codeql/cpp/tools/autobuild.sh])
  A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.17.5/x64/codeql/cpp/tools/autobuild.sh]
  Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. We were unable to automatically build your code. Please change the build mode for this language to manual and specify build steps for your project. For more information, see https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.17.5/x64/codeql/codeql database trace-command --use-build-mode --working-dir /home/runner/work/SubStack/SubStack -O=cpp.trap.cache.dir=/home/runner/work/_temp/trapCaches/cpp -O=cpp.trap.cache.bound=1024 -O=cpp.trap.cache.write=true /home/runner/work/_temp/codeql_databases/cpp". Exit code was 2 and error was: A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.17.5/x64/codeql/cpp/tools/autobuild.sh] See the logs for more details.

https://github.com/orgs/community/discussions/129953#discussioncomment-9893577 has fix for this specific error, but CodeQL's URL schema could confuse others (presume that this affects all URLs from CodeQL's stderr)

@jketema
Copy link

jketema commented Jun 27, 2024

Hi @SwuduSusuwu ,

Thanks for opening this issue. I'll let the responsible engineering team know about this.

@angelapwen angelapwen linked a pull request Jun 27, 2024 that will close this issue
3 tasks
@angelapwen angelapwen self-assigned this Jun 27, 2024
@angelapwen
Copy link
Contributor

Opened up a PR to fix this by rewording the message at #2355.

@SwuduSusuwu SwuduSusuwu changed the title [bug] WebQL error says goto https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed. [bug] CodeQL error says goto https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed. Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants