Skip to content

ci: upload test results to codecov#3887

Merged
crazy-max merged 1 commit into
docker:masterfrom
crazy-max:codecov-test-results
Jun 9, 2026
Merged

ci: upload test results to codecov#3887
crazy-max merged 1 commit into
docker:masterfrom
crazy-max:codecov-test-results

Conversation

@crazy-max

Copy link
Copy Markdown
Member

This updates the build workflow so Codecov receives test results in addition to coverage reports for both integration and unit test jobs.

Uploading test results alongside coverage gives Codecov the data it needs to show test reporting without changing how coverage is collected or annotated in the existing CI flow.

Test Analytics offers data on test run times, failure rates, and identifies flaky tests to help decrease the risk of deployment failures and make it easier to ship new features quickly.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max

Copy link
Copy Markdown
Member Author

ci issue unrelated, see #3888

@crazy-max crazy-max marked this pull request as ready for review June 5, 2026 08:30
report_type: test_results
directory: ./bin/testreports
flags: integration
token: ${{ secrets.CODECOV_TOKEN }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still need a token? I recall they had token-less options for public repositories, but not sure if that applies here; https://docs.codecov.com/docs/codecov-tokens#when-do-i-need-a-token

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think we should keep it. Tokenless uploads only apply when Docker has disabled public token auth in Codecov, or when Codecov treats the upload as an unprotected/fork branch. This workflow also runs on pushes to master/v*, where Codecov requires a token by default. For fork PRs the secret resolves empty, and the v6 action still handles the tokenless fork path, so keeping the input doesn't block tokenless PR uploads.

@crazy-max crazy-max added this to the v0.35.0 milestone Jun 9, 2026
@crazy-max crazy-max merged commit 3a6e4e5 into docker:master Jun 9, 2026
240 of 245 checks passed
@crazy-max crazy-max deleted the codecov-test-results branch June 9, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants