Skip to content

ci: configure codecov patch threshold #647

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

Merged
merged 9 commits into from
Mar 22, 2022
Merged

Conversation

Shinigami92
Copy link
Member

The threshold is not useful as it only fails PRs that are successfully but the threshold is not meet.

@Shinigami92 Shinigami92 added the c: chore PR that doesn't affect the runtime behavior label Mar 21, 2022
@Shinigami92 Shinigami92 requested a review from a team as a code owner March 21, 2022 17:00
@Shinigami92 Shinigami92 self-assigned this Mar 21, 2022
@Shinigami92 Shinigami92 added the p: 2-high Fix main branch label Mar 21, 2022
@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #647 (adf893e) into main (6e29767) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head adf893e differs from pull request most recent head ba1ec67. Consider uploading reports for the commit ba1ec67 to get more accurate results

@@           Coverage Diff           @@
##             main     #647   +/-   ##
=======================================
  Coverage   99.33%   99.33%           
=======================================
  Files        1923     1923           
  Lines      176853   176853           
  Branches      906      908    +2     
=======================================
+ Hits       175681   175683    +2     
+ Misses       1116     1114    -2     
  Partials       56       56           
Impacted Files Coverage Δ
src/vendor/unique.ts 95.16% <0.00%> (+1.61%) ⬆️

@Shinigami92 Shinigami92 added the do NOT merge yet Do not merge this PR into the target branch yet label Mar 21, 2022
@Shinigami92 Shinigami92 changed the title ci: remove threshold ci: configure codecov patch threshold Mar 21, 2022
@Shinigami92
Copy link
Member Author

Okay I think I found the issue!
We need to explicitly configure a patch block beside the project block, it always took not our configs but the one provided by codecov

@Shinigami92 Shinigami92 removed the do NOT merge yet Do not merge this PR into the target branch yet label Mar 21, 2022
@Shinigami92 Shinigami92 requested review from prisis and ST-DDT March 21, 2022 17:55
ST-DDT
ST-DDT previously approved these changes Mar 21, 2022
@ST-DDT ST-DDT requested a review from a team March 21, 2022 18:01
@Shinigami92 Shinigami92 added the s: accepted Accepted feature / Confirmed bug label Mar 21, 2022
Copy link
Contributor

@griest024 griest024 left a comment

Choose a reason for hiding this comment

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

2% threshold seems large. Why not 0% or at worst, 1%?

@Shinigami92
Copy link
Member Author

2% threshold seems large. Why not 0% or at worst, 1%?

@griest024 Okay I may have misunderstood threshold, maybe you could try to explain me what is going on.

The initial issue here is that the CI failed several times with the codecov/patch action.
I found out that it doesn't take the config we set for codecov/project default, so I needed to explicitly configured it for patch.

I assume setting the threshold to 0% will not help again, cause the default may was be 0% by default previously. (I could be wrong)
But everytime we did a helpful refactoring that moved some parts, the patch action failed and marked the whole PR as ❌, were every other action was ✅ and the PR is good to go. So it just may confused people and especially maintainers that there was something broken or wrong, but it was not.

So I would like to first try and drive for a while with my proposed settings in this PR.
If something is still bad, we can change it in a future PR anyway.

@Shinigami92 Shinigami92 requested a review from griest024 March 22, 2022 08:40
@Shinigami92 Shinigami92 requested a review from a team March 22, 2022 19:26
@griest024
Copy link
Contributor

@Shinigami92 from the docs

Allow the coverage to drop by X%, and posting a success status.

It's possible that there is some broken logic for 0% that will fail PRs that should have passed. I would think that 1% would avoid this.

@Shinigami92 Shinigami92 enabled auto-merge (squash) March 22, 2022 19:36
@Shinigami92 Shinigami92 merged commit 3946df7 into main Mar 22, 2022
@ST-DDT ST-DDT deleted the ci-remove-threshold branch March 22, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: chore PR that doesn't affect the runtime behavior p: 2-high Fix main branch s: accepted Accepted feature / Confirmed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants