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

Configure Codecov #19936

Merged
merged 18 commits into from
Jan 16, 2024
Merged

Configure Codecov #19936

merged 18 commits into from
Jan 16, 2024

Conversation

wzieba
Copy link
Contributor

@wzieba wzieba commented Jan 12, 2024

Description

This PR integrates Codecov. By this, we'll have:

Screenshot 2024-01-12 at 16 39 56

To Test:

  1. Open https://app.codecov.io/github/wordpress-mobile/WordPress-Android/
  2. See that for this PR, there's a reprt and it contains some code coverage data for some class from each module:
    • WordPress
    • :libs:image-editor
    • :libs:processors

It's double-check. From what I've browsed, all seems fine. Also, each job on Buildkite reports successful report upload to Codecov.

Decission log

Why specify the report file directly?

Codecov couldn't find reports if they were named differently than report.xml. So initially, it worked only for a JVM module (:lib:processors) but didn't work for e.g. WordPress, because the report file is named reportWordpressVanillaRelease.xml.

Why use CODECOV_TOKEN if WordPress-Android is a public repository?

It's possible to use Codecov uploader without specifing a token if repository is open source. This approach is flaky though and results with often upload failures. Details are available in this comment and thread: codecov/codecov-action#557 (comment)

@wzieba wzieba added the Tooling label Jan 12, 2024
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 12, 2024

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19936-ea9cb25
Commitea9cb25
Direct Downloadjetpack-prototype-build-pr19936-ea9cb25.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 12, 2024

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19936-ea9cb25
Commitea9cb25
Direct Downloadwordpress-prototype-build-pr19936-ea9cb25.apk
Note: Google Login is not supported on these builds.

@wzieba wzieba requested a review from tiagomar January 12, 2024 15:45
@wzieba wzieba marked this pull request as ready for review January 12, 2024 15:45
@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@wzieba wzieba added this to the 24.1 milestone Jan 12, 2024
Copy link
Contributor

@tiagomar tiagomar left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, @wzieba! 🙇

I could visit the dashboard and confirm there was coverage reported for WordPress, :libs:image-editor and :libs:processors.

comments on each PR reporting code coverage diff(...)

I assume this would only be visible after being merged to trunk.

Why use CODECOV_TOKEN if WordPress-Android is a public repository?

Thanks for being one step ahead and for sharing the context! 🙇

Everything looks good to me. :shipit:

@wzieba wzieba merged commit 9427981 into trunk Jan 16, 2024
24 checks passed
@wzieba wzieba deleted the configure_codecov branch January 16, 2024 09:11
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.

3 participants