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

Update error JSON handling #3654

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Save progress

ca59566
Select commit
Loading
Failed to load commit list.
Open

Update error JSON handling #3654

Save progress
ca59566
Select commit
Loading
Failed to load commit list.
coqbot-app / GitLab CI job test:unit:core (pull request) failed Nov 7, 2024 in 0s

Test has failed on GitLab CI

This job has failed. If you need to, you can restart it directly in the GitHub interface using the "Re-run" button.

We show below an excerpt from the trace from GitLab starting around the last detected "Error" (the complete trace is available here).

Details

time="2024-11-07T15:16:40Z" level=error msg="could not find coverage file coverage/lcov.info\ncould not find any files in search paths for lcov. search paths were: coverage/lcov.info, coverage/lcov.info" 
Error: could not find any files in search paths for lcov. search paths were: coverage/lcov.info, coverage/lcov.info
Usage:
  cc-test-reporter format-coverage [coverage file] [flags]

Flags:
      --add-prefix string   add this prefix to file paths
  -t, --input-type string   type of input source to use [clover, cobertura, coverage.py, excoveralls, gcov, gocov, jacoco, lcov, lcov-json, simplecov, xccov, dotcover]
  -o, --output string       output path (default "coverage/codeclimate.json")
  -p, --prefix string       the root directory where the coverage analysis was performed (default "/builds/jdalrymple/gitbeaker/packages/core")

Global Flags:
  -d, --debug   run in debug mode

WARNING: after_script failed, but job will continue unaffected: exit code 255
Uploading artifacts for failed job
Uploading artifacts...
WARNING: packages/core/coverage/cc-coverage.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/jdalrymple/gitbeaker) 
ERROR: No files to upload                          
Uploading artifacts...
packages/core/reports/*junit.xml: found 1 matching artifact files and directories 
WARNING: Upload request redirected                  location=https://gitlab.com/api/v4/jobs/8297401080/artifacts?artifact_format=gzip&artifact_type=junit new-url=https://gitlab.com
WARNING: Retrying...                                context=artifacts-uploader error=request redirected
Uploading artifacts as "junit" to coordinator... 201 Created  id=8297401080 responseStatus=201 Created token=glcbt-66
Uploading artifacts...
WARNING: packages/core/coverage/cobertura-coverage.xml: no matching files. Ensure that the artifact path is relative to the working directory (/builds/jdalrymple/gitbeaker) 
ERROR: No files to upload                          
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1