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

CircleCI failing at stage Upload Coverage Results ValueError: The provided slug is invalid #201

Open
tomdeabreucodes opened this issue Jul 11, 2024 · 1 comment
Assignees
Labels
Area: Report Upload Issues with pre-ingest report uploading bug Something isn't working Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months

Comments

@tomdeabreucodes
Copy link

Hello,

Having some trouble getting circleci integrated with codecov. Consistently getting the below trace.

./"codecov"  create-commit -t <redacted>
info - 2024-07-11 22:14:02,575 -- ci service found: circleci
warning - 2024-07-11 22:14:02,580 -- No config file could be found. Ignoring config.
Traceback (most recent call last):
  File "codecov_cli/main.py", line 85, in <module>
  File "codecov_cli/main.py", line 81, in run
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1688, in invoke
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "click/decorators.py", line 33, in new_func
  File "codecov_cli/commands/commit.py", line 64, in create_commit
  File "codecov_cli/services/commit/__init__.py", line 27, in create_commit_logic
  File "codecov_cli/helpers/encoder.py", line 10, in encode_slug
ValueError: The provided slug is invalid
[468] Failed to execute script 'main' due to unhandled exception!

Exited with code exit status 1

Tried creating a global token, as my regenerate at the repo level wasn't working, no change. My repo is activated. Not really sure what else to try here.

This is my .circleci/config.yml

Mostly left it as is from the auto generated one, main changes I performed:

  • change from pip to pipenv
  • change to python 12
  • tried a couple different versions of the orb (4, 4.0.1 (one in the codecov instructions), 4.1.0)
version: 2.1
orbs:
  node: circleci/node@5
  python: circleci/python@2
  codecov: codecov/[email protected]
jobs:
  test-and-upload-python:
    docker:
      - image: cimg/python:3.12
    steps:
      - checkout
      - run: pipenv install
      - run: pipenv run pytest --cov .
      - codecov/upload
workflows:
  upload-to-codecov:
      jobs:
        - test-and-upload-python

Any guidance would be appreciated.

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Jul 16, 2024
@thomasrockhu-codecov thomasrockhu-codecov added the bug Something isn't working label Jul 16, 2024
@IbsenFahir
Copy link

I'm having the same issue. Did you manage to solve it?

@thomasrockhu-codecov thomasrockhu-codecov added Low Low Priority Issues (to be fixed or re-evaluated in 12 months Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months Area: Report Upload Issues with pre-ingest report uploading and removed Low Low Priority Issues (to be fixed or re-evaluated in 12 months labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Report Upload Issues with pre-ingest report uploading bug Something isn't working Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months
Projects
None yet
Development

No branches or pull requests

3 participants