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

codecov: do not fail ci on error #228

Merged
merged 1 commit into from
Aug 14, 2023
Merged

codecov: do not fail ci on error #228

merged 1 commit into from
Aug 14, 2023

Conversation

KevFan
Copy link
Contributor

@KevFan KevFan commented Aug 10, 2023

  • Prevent codecov from failing ci on error due to flakiness with codecov upload

@KevFan KevFan requested a review from a team as a code owner August 10, 2023 14:36
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #228 (4b929af) into main (473cb4a) will increase coverage by 0.73%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
+ Coverage   61.79%   62.53%   +0.73%     
==========================================
  Files          33       33              
  Lines        3112     3112              
==========================================
+ Hits         1923     1946      +23     
+ Misses        998      980      -18     
+ Partials      191      186       -5     
Flag Coverage Δ
integration 68.20% <ø> (+1.43%) ⬆️
unit 56.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) 26.86% <ø> (ø)
pkg/common (u) 77.27% <ø> (ø)
pkg/istio (u) 29.69% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 40.16% <ø> (ø)
pkg/rlptools (u) 54.47% <ø> (ø)
controllers (i) 68.20% <ø> (+1.43%) ⬆️

see 8 files with indirect coverage changes

@KevFan KevFan added kind/bug Something isn't working good first issue Good for newcomers size/small labels Aug 10, 2023
Copy link
Member

@adam-cattermole adam-cattermole left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Contributor

@art-tapin art-tapin left a comment

Choose a reason for hiding this comment

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

Hey @KevFan!
The CodeCov uploads the results two times: for unit tests and for integration tests separately. Please, check out the line 90 in test.yaml to change the true condition to false for integration tests too:

      - name: Upload integration-test coverage reports to CodeCov # more at https://github.com/codecov/codecov-action
       uses: codecov/codecov-action@v3
       with:
         token: ${{ secrets.CODECOV_TOKEN }}
         flags: integration
         fail_ci_if_error: true
         verbose: true

@KevFan
Copy link
Contributor Author

KevFan commented Aug 14, 2023

Thanks @art-tapin ! Good catch, I've pushed that change just now 👍

@KevFan KevFan merged commit 027972a into Kuadrant:main Aug 14, 2023
14 checks passed
guicassolato pushed a commit that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/bug Something isn't working size/small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants