Code Intelligence job fails with undescriptive error in Java project
Summary
Undescriptive 500 Internal Server Error
given at the end of the CI job when including an LSIF artifact
Steps to reproduce
- Create a new project from Spring template
- Add a
.gitlab-ci.yml
file with a job that generates the lsif file for code intelligence feature - Follow the instructions from lsif-java
- The
.gitlab-ci.yml
file should look something like this:
stages:
- build
code_navigation:
stage: build
script:
- apt-get update && apt-get install -y git default-jdk maven
- git clone https://github.com/sourcegraph/lsif-java
- cd lsif-java
- ./gradlew installDist
- cd ..
- lsif-java/build/install/lsifjava/bin/lsifjava -projectRoot ./ -out dump.lsif
artifacts:
reports:
lsif: dump.lsif
Example Project
Can create a new project using the GitLab provided Spring project-template
What is the current bug behavior?
The CI job fails with an undescriptive error, and the code intelligence features don't work.
WARNING: Uploading artifacts as "lsif" to coordinator... failed responseStatus=500 Internal Server Error
What is the expected correct behavior?
The job should succeed, and the code intelligence features (e.g. go to definition) should start working correctly.
Relevant logs and/or screenshots
Uploading artifacts for successful job
Uploading artifacts...
dump.lsif: found 1 matching files and directories
WARNING: Uploading artifacts as "lsif" to coordinator... failed id=608026837 responseStatus=500 Internal Server Error status=500 Internal Server Error token=CsCcpVgc
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "lsif" to coordinator... failed id=608026837 responseStatus=500 Internal Server Error status=500 Internal Server Error token=CsCcpVgc
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "lsif" to coordinator... failed id=608026837 responseStatus=500 Internal Server Error status=500 Internal Server Error token=CsCcpVgc
FATAL: invalid argument
ERROR: Job failed: exit code 1
Output of checks
This bug happens on GitLab.com