Skip to content

ci: install codecov CLI from PyPI to dodge broken Keybase GPG import - #2997

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-27075953927
Jun 7, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-27075953927

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Problem

The non-required code-coverage job failed on main (run 27075953927). All tests passed (1942 / 1238 / 703, 0 failed); the failure was in the codecov/[email protected] upload step:

==> Finishing downloading linux:latest
      Version: v11.2.8
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> Verifying GPG signature integrity
gpg: Signature made Tue Apr 21 19:28:03 2026 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Can't check signature: No public key
==> Could not verify signature. Please contact Codecov if problem continues
    Exiting...
##[error]Process completed with exit code 1.

Root cause (confirmed upstream). The action downloads the Codecov CLI from cli.codecov.io and verifies its GPG signature against a public key fetched from https://keybase.io/codecovsecurity/pgp_keys.asc. That URL is currently returning 404 SELF-SIGNED PUBLIC KEY NOT FOUND, so the key import produces "no valid OpenPGP data found", the keyring stays empty, and the signature check aborts with "No public key" — before any upload happens. Tracked in codecov/codecov-action#1955 (opened the same day) and the related #1876.

Why a fix and not a rerun. This exact failure shape fired three times in ~24h — #2993, #2996, and this run. #2996's diagnosis explicitly flagged that a third occurrence should escalate to a durable mitigation, crossing the running-tend repeat-occurrence threshold from transient to durable. v6.0.1 is already the latest action release, so bumping the pin doesn't help.

Solution

Set use_pypi: true on both codecov-action steps in ci.yaml (the test-results upload in the test matrix and the coverage upload in code-coverage). This is the workaround documented in #1955: it installs the Codecov CLI from PyPI instead of cli.codecov.io, bypassing the binary download and its broken Keybase GPG-key import entirely. Both call sites are subject to the same failure mode, so both are patched.

use_pypi is a documented input on [email protected] (action.yml line 155: "Use the pypi version of the CLI instead of from cli.codecov.io").

Testing

YAML validated with yaml.safe_load. Behavioral verification is the code-coverage job passing on this PR — it exercises the patched upload path. The maintainer can revert use_pypi: true once Codecov restores the Keybase key (the # (codecov/codecov-action#1955) comments mark both sites).


Automated fix for failed run

codecov/[email protected] downloads the Codecov CLI from
cli.codecov.io and verifies its GPG signature against a public key
fetched from https://keybase.io/codecovsecurity/pgp_keys.asc. That URL
is currently returning 404 ("SELF-SIGNED PUBLIC KEY NOT FOUND"), so the
key import yields "no valid OpenPGP data found", the keyring stays empty,
and the signature check aborts with "Can't check signature: No public
key" — failing the code-coverage job before any upload happens.

Set use_pypi: true on both codecov-action steps so the CLI is installed
from PyPI instead, bypassing the cli.codecov.io binary download and its
broken Keybase key import. Tracked upstream in
codecov/codecov-action#1955.

This shape fired three times in ~24h (#2993, #2996, and run 27075953927),
crossing the running-tend repeat-occurrence threshold from transient to
durable.

Co-Authored-By: Claude <[email protected]>
@worktrunk-bot worktrunk-bot added the automated-fix Automated CI fix label Jun 7, 2026
@max-sixty
max-sixty merged commit ecf1fa6 into main Jun 7, 2026
33 of 41 checks passed
@max-sixty
max-sixty deleted the fix/ci-27075953927 branch June 7, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-fix Automated CI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants