codecov / codecov-cli

Codecov's Command Line Interface. Used for uploading to Codecov in your CI, Test Labelling, Local Upload, and more
Apache License 2.0
56 stars 39 forks source link

codecov create-commit --git-service github: could not find expected ':' #518

Closed vsarunas closed 1 month ago

vsarunas commented 1 month ago

Starting seeing failure to create a commit;

==> Running command '/home/runner/work/_actions/codecov/codecov-action/543c3d42fc76502218ecdadc04e65dbd2640a67a/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/543c3d42fc76502218ecdadc04e65dbd2640a67a/dist/codecov create-commit --git-service github -C cf1550587f8d3bf95d2a48d4f109b55fd672dd9b -Z
info - 2024-10-01 14:42:21,163 -- ci service found: github-actions
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 1685, 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/main.py", line 58, in cli
  File "codecov_cli/helpers/config.py", line 65, in load_cli_config
  File "yaml/__init__.py", line 125, in safe_load
  File "yaml/__init__.py", line 81, in load
  File "yaml/constructor.py", line 49, in get_single_data
  File "yaml/composer.py", line 36, in get_single_node
  File "yaml/composer.py", line 55, in compose_document
  File "yaml/composer.py", line 84, in compose_node
  File "yaml/composer.py", line 133, in compose_mapping_node
  File "yaml/composer.py", line 82, in compose_node
  File "yaml/composer.py", line 110, in compose_sequence_node
  File "yaml/parser.py", line 98, in check_event
  File "yaml/parser.py", line 379, in parse_block_sequence_first_entry
  File "yaml/parser.py", line 384, in parse_block_sequence_entry
  File "yaml/scanner.py", line 115, in check_token
  File "yaml/scanner.py", line 152, in need_more_tokens
  File "yaml/scanner.py", line 291, in stale_possible_simple_keys
yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 3, column 1:
    s
    ^
could not find expected ':'
  in "<unicode string>", line 5, column 1:

    ^
[PYI-3703:ERROR] Failed to execute script 'main' due to unhandled exception!
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/543c3d42fc76502218ecdadc04e65dbd2640a67a/dist/codecov' failed with exit code 1
drazisil-codecov commented 1 month ago

Hi @vsarunas

Apologies that I missed this. Did the architecture on the runner change, by any chance?

vsarunas commented 1 month ago

It should have not, this is a public ubuntu-22.04 GitHub runner which is using x86_64.

drazisil-codecov commented 1 month ago

What version of the action are you running?

vsarunas commented 1 month ago
codecov/codecov-action@v4

But had tried to downgrade the action to4.4.1 and v0.7.4 of codecov-cli with the same effect.

I had created a Zendesk support ticket as well yesterday which has more details #134701.

drazisil-codecov commented 1 month ago

I saw the ticket, you hav me other where as well. I'm trying to stay in one place, and it will be here in GitHub issues if this is a bug.

If you add verbose to the action, is there any more info? What about if you rerun the action with debugging logs?

Please continue to share any private info in the ticket :)

vsarunas commented 1 month ago

False alarm; codecov.yml was committed with a typo.