Skip to content

fix(ci): fix Codecov coverage and test results uploads#303

Merged
rhuanbarreto merged 2 commits into
mainfrom
fix/codecov-upload
May 11, 2026
Merged

fix(ci): fix Codecov coverage and test results uploads#303
rhuanbarreto merged 2 commits into
mainfrom
fix/codecov-upload

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Fix report_type input name — codecov-action v6 expects report_type (underscore), not report-type (hyphen). The hyphenated form was silently ignored, causing test results (JUnit XML) to upload via upload-coverage instead of upload-test-results.
  • Add disable_search: true to both upload steps — prevents auto-discovery of unrelated files (doc MDX fixtures were being picked up as coverage data).
  • Add push: branches: [main] trigger to code-pull-request.yml — pushes to main now upload coverage, giving Codecov the base commit data it needs to compute diff coverage on PRs.

Applied to both code-pull-request.yml and release.yml.

Test plan

  • Verify CI passes on this PR (ADR checks, lint, typecheck, tests)
  • After merge, confirm coverage uploads succeed on the push-to-main run (check the "Upload coverage to Codecov" step logs for Upload queued for processing complete without the Repository not found error)
  • Confirm Codecov PR comments appear on subsequent PRs
  • Verify test results upload uses upload-test-results command (not upload-coverage)

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 11, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: d5c43f0
Status: ✅  Deploy successful!
Preview URL: https://6dbe6ef6.archgate-cli.pages.dev
Branch Preview URL: https://fix-codecov-upload.archgate-cli.pages.dev

View logs

@sentry

sentry Bot commented May 11, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Fix multiple issues preventing Codecov from receiving uploads:

- Fix report_type input name: codecov-action v6 expects report_type
  (underscore), not report-type (hyphen). The hyphenated form was
  silently ignored, causing test results to upload via upload-coverage
  instead of upload-test-results.

- Add disable_search: true to both upload steps to prevent
  auto-discovery of unrelated files (doc MDX fixtures were being
  picked up as coverage data).

- Add push trigger for main branch to code-pull-request.yml so
  coverage uploads on every push to main, giving Codecov the base
  commit data it needs to compute diff coverage on PRs.

- Switch to OIDC authentication (use_oidc) which uses GitHub's
  OpenID Connect provider to authenticate directly with Codecov,
  bypassing known token-related bugs (codecov/codecov-action#1794,
  #1839, #1623). OIDC is disabled for fork PRs where id-token is
  unavailable — those fall back to the repository token.

- Add explicit slug (archgate/cli) to prevent auto-detection failures.

- Add id-token: write permission to the Validate workflow for OIDC.

Note: coverage data uploads currently hit a Codecov server-side 500
error (filed as codecov/codecov-action#1945). Test results uploads
work. Coverage will start flowing once Codecov resolves the issue.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@rhuanbarreto rhuanbarreto merged commit 0cc2a5b into main May 11, 2026
11 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/codecov-upload branch May 11, 2026 20:19
@archgatebot archgatebot Bot mentioned this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant