| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This is a follow up of the discussion in: https://community.codecov.com/t/add-support-of-uploading-from-cirrus-ci-without-token/1028/34 and uses the bash uploader as a reference: https://github.com/codecov/codecov-bash/blob/master/codecov#L959
Codecov Report
@@ Coverage Diff @@
## master #322 +/- ##
=====================================
Coverage 58% 58%
=====================================
Files 3 3
Lines 436 439 +3
Branches 106 107 +1
=====================================
+ Hits 255 259 +4
+ Misses 125 124 -1
Partials 56 56 |
Sorry, something went wrong.
|
I think this is missing unit tests. |
Sorry, something went wrong.
|
Thank you very much @nmoinvaz. To me they look like they actually expect to run in the given CI, instead of just posting data that the codecov server can verify from existing builds (I can be very wrong here, I really had troubles understanding the existing test suite). If you can guide me through the process, I am more than happy to add the missing tests. |
Sorry, something went wrong.
|
Unit tests can be found in Line 554 in 51469b0 It simply sets up the environment using example environment key value pairs. Then it ensures that the proper values are parsed from the environment variables after it runs run_cli(). |
Sorry, something went wrong.
|
Take a look at my PR for example: |
Sorry, something went wrong.
|
Yes, I did see this code, but it is exactly the code that I was having trouble to understand. But I think now I understand now what is happening... The decorators are there just to make sure the tests are not executed more than once, isn't it? Once the test runs, it changes the env vars, and then the decorators are there to make sure the same test does not run again? I think now I might be able to give it a shot. Thank you (I should follow up shortly). |
Sorry, something went wrong.
|
Tests added, hopefully they will pass in the CI, since I just ported them from the bash exporter 🤞 |
Sorry, something went wrong.
|
Good idea about using the bash ones. @thomasrockhu can you start the workflows? |
Sorry, something went wrong.
|
LGTM, will deploy a new version sometime this week. Just a note, we will be deprecating support for this uploader in the next few months in favor of our new uploader |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hello, this is a follow up of the discussion in:
https://community.codecov.com/t/add-support-of-uploading-from-cirrus-ci-without-token/1028/34
and uses the bash uploader as a reference:
https://github.com/codecov/codecov-bash/blob/master/codecov#L959