XRay job for RAG is not working anymore
Summary
The XRay job does not output file anymore. Which make it failing.
Steps to reproduce
Add the XRay job to the pipeline definition and run a pipeline against the main branch.
Example Project
https://gitlab.com/gl-demo-ultimate-odupre/gcp/spring-sample-gcp/-/jobs/7203595342
What is the current bug behavior?
$ x-ray-scan -p "$CI_PROJECT_DIR" -o "$OUTPUT_DIR"
2024/06/27 13:50:02 INFO Scanning in /builds/gl-demo-ultimate-odupre/gcp/spring-sample-gcp
2024/06/27 13:50:02 INFO Found pom.xml at /builds/gl-demo-ultimate-odupre/gcp/spring-sample-gcp
2024/06/27 13:50:02 INFO [Java dependencies] Scanning pom.xml
2024/06/27 13:50:02 INFO [Java dependencies] Found 2 Java dependencies
2024/06/27 13:50:02 INFO [Java dependencies] Getting Java dependencies descriptions. This can take a while...
2024/06/27 13:50:02 INFO [Java dependencies] Processing batch... (1/1)
2024/06/27 13:50:03 ERROR [Java dependencies] Failed to get completions. Request failed (code 401)
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: reports/*/*.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gl-demo-ultimate-odupre/gcp/spring-sample-gcp)
ERROR: No files to upload
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1
Does not seem to be related to the language as I have the exact same behavior with NodeJS.
What is the expected correct behavior?
$ x-ray-scan -p "$CI_PROJECT_DIR" -o "$OUTPUT_DIR"
2024/03/27 14:32:54 INFO Scanning in /builds/gl-demo-ultimate-odupre/gcp/[MASKED]
2024/03/27 14:32:54 INFO Found package.json at /builds/gl-demo-ultimate-odupre/gcp/[MASKED]/package.json
2024/03/27 14:32:54 INFO Scanning package.json
2024/03/27 14:32:54 INFO Found 11 JavaScript modules
2024/03/27 14:32:54 INFO Getting JavaScript modules descriptions. This can take a while...
2024/03/27 14:32:54 INFO Processing batch... (1/1)
2024/03/27 14:32:54 WARN Failed to get completions. Skipping batch. GitLab API returned non-200 status code: 401
2024/03/27 14:32:54 INFO X-Ray scan finished
Uploading artifacts for successful job
00:02
Uploading artifacts...
reports/*/*.json: found 1 matching artifact files and directories
WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/6491761093/artifacts?artifact_format=gzip&artifact_type=repository_xray new-url=https://gitlab.com
WARNING: Retrying... context=artifacts-uploader error=request redirected
Uploading artifacts as "repository_xray" to coordinator... 201 Created id=6491761093 responseStatus=201 Created token=glcbt-65
Cleaning up project directory and file based variables
00:00
Job succeeded
https://gitlab.com/gl-demo-ultimate-odupre/gcp/nodejs-sample-gcp/-/jobs/6491761093
Last time it worked for me seems to be on 16.9 (but I'm not running this daily so...)
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com