Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Cannot upload report to S3 #23

Closed
pvorb opened this issue Feb 1, 2016 · 3 comments
Closed

Cannot upload report to S3 #23

pvorb opened this issue Feb 1, 2016 · 3 comments

Comments

@pvorb
Copy link

pvorb commented Feb 1, 2016

Here's my full output of calling codecov-bash:

$ bash <(curl -s https://codecov.io/bash) -p $CI_PROJECT_DIR -t $codecov_upload_token || echo "Codecov did not collect coverage reports"

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                                5ca7b8c


(url) https://codecov.io
(root) .
==> GitLab CI detected.
==> Trying gcov (disable via -X gcov)
  -> Running gcov
==> Searching for coverage reports
**> Python coverage not found
==> Detecting git/mercurial file structure
==> Reading reports
  + ./target/site/jacoco/jacoco.xml bytes=2806
(query) package=bash-5ca7b8c&branch=feature/codecov&commit=1921b64c41af1819966877003ba9e1780da9cf45&build=640303&build_url=&slug=pvorblab-ci-java-gradle-codecov.git&service=gitlab&pr=&job=&token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
==> Uploading reports
    Pinging Codecov
    Uploading to S3
Codecov did not collect coverage reports

I obfuscated the token in the output (see #22).

What might be the cause of the problem? I can't really tell from the output, but the code tells me that either "Reports queued to [...]" or "Failed to upload to s3" should be printed after "Uploading to S3".

@stevepeak
Copy link
Contributor

I found the error in out logs. Looks like the issue is due to the slug argument.

slug=pvorblab-ci-java-gradle-codecov.git

This value should be something like owner/repo. Looks like it is not being detected properly in GitLab.

I'll review more and get back to you shortly. Thanks

@pvorb
Copy link
Author

pvorb commented Feb 5, 2016

Thank you for the update.

The repository's name actually is pvorb/gitlab-ci-java-gradle-codecov.git, so it actually is owner/repo . A possible explanation could be a regex /.git/ which is replaced by an empty string.

Edit: Didn't get your update in time. ;)

@stevepeak
Copy link
Contributor

Thanks :) I'll be putting this live soon. Just need to fix some CI tests around it. Cheers!

evantorrie pushed a commit to evantorrie/codecov-bash that referenced this issue Aug 26, 2020
…terprise-url

added ability to specify custom URL for codecov submission
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants