Closed bernhardkaindl closed 9 months ago
Pytest Code coverage comment for Python 2.7
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
20 | 1 :zzz: | 0 :x: | 0 :fire: | 2.199s :stopwatch: |
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b0cd013
) 85.28% compared to head (aa47bef
) 85.46%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Python3 coverage comment from https://github.com/marketplace/actions/pytest-coverage-comment
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
16 | 0 :zzz: | 0 :x: | 0 :fire: | 1.043s :stopwatch: |
Unfortunately the codecov upload keeps failing with:
X-Reduced-Redundancy: 'false'
[2024-01-15T15:01:14.875Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 503 - upstream connect error or disconnect/reset before headers. reset reason: connection failure
[2024-01-15T15:01:14.875Z] ['verbose'] The error stack is: Error: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 503 - upstream connect error or disconnect/reset before headers. reset reason: connection failure
at main (/snapshot/repo/dist/src/index.js)
Could we move this codecov upload into a separate step and make the failure non-fatal? It is an external service that apparently is not always working correctly, and shouldn't really block PRs.
Thanks for the reviews and approves! I added the missing end of a sentence in a comment found by @psafont!
And, I applied one part of @edwintorok's suggestion to not fail CI if the Codecov upload (the one after pre-commit only) fails, because in pre-commit we have a diff-cover job which fails if diff-coverage is missing (tested from triggering it before in this repo).
The other changes in the comparison stem from the merges of the other PRs in the new master onto which I rebased it now too.
RRDs are only synced to disk periodically by Xapi to avoid too much wear, and in most cases, bug report zip archives don't contain anything useful if taking a status report immediately after an issue occurs.
This PR allows syncing the current RRDs to disk by running the
rrd-cli save_rrds
command during the bug tool execution and then collect the updated RRD files within the same status report call.For this,
xen-api
added the commandrrd-cli save_rrds
to itsbugtool
plugin in/etc/xensource/bugtool/xapi/stuff.xml
:The assumption likely was:
rrd-cli save_rrds
as defined in the xen-api bugtool xml file (see the code above).But the implementation of bugtool is the other way around. Currently, it does this:
The bugtool Requirements for the fix may be: