Title: Improve error reporting in the "try_run" function and correctly include original command output in the error message by Kami · Pull Request #153 · codecov/codecov-python · GitHub
Open Graph Title: Improve error reporting in the "try_run" function and correctly include original command output in the error message by Kami · Pull Request #153 · codecov/codecov-python
X Title: Improve error reporting in the "try_run" function and correctly include original command output in the error message by Kami · Pull Request #153 · codecov/codecov-python
Description: This pull request fixes check_output function to correctly include output of the command which ran in the CalledProcessError exception which is thrown. In addition to that, it also includes return (exit) code in the printed error message. Before this change it was very hard / impossible to debug various codecove command failures because the original command output was not included in the error which is printed to the console. Before (as you can see, output is always None which makes troubleshooting practically impossible): _____ _ / ____| | | | | ___ __| | ___ ___ _____ __ | | / _ \ / _ |/ _ \/ __/ _ \ \ / / | |___| (_) | (_| | __/ (_| (_) \ V / \_____\___/ \____|\___|\___\___/ \_/ v2.0.15 ==> Detecting CI provider Travis Detected ==> Preparing upload ==> Processing gcov (disable by -X gcov) Executing gcov (find /home/travis/build/StackStorm/st2 -not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**' -type f -name '*.gcno' -exec gcov -pb {} +) ==> Collecting reports Mergeing coverage reports Error running `coverage combine -a`: None Error: No coverage report found Tip: See an example python repo: https://github.com/codecov/example-python Support channels: Email: hello@codecov.io IRC: #codecov Gitter: https://gitter.im/codecov/support Twitter: @codecov After (command output is correctly included which makes troubleshooting possible / easier): _____ _ / ____| | | | | ___ __| | ___ ___ _____ __ | | / _ \ / _ |/ _ \/ __/ _ \ \ / / | |___| (_) | (_| | __/ (_| (_) \ V / \_____\___/ \____|\___|\___\___/ \_/ v2.0.15 ==> Detecting CI provider Travis Detected Fixing merge commit SHA ==> Preparing upload ==> Processing gcov (disable by -X gcov) Executing gcov (find /home/travis/build/StackStorm/st2 -not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**' -type f -name '*.gcno' -exec gcov -pb {} +) ==> Collecting reports Mergeing coverage reports Error running `coverage combine -a`: output=Couldn't trace with concurrency=eventlet, the module isn't installed. , returncode=1 Error: No coverage report found Tip: See an example python repo: https://github.com/codecov/example-python Support channels: Email: hello@codecov.io IRC: #codecov Gitter: https://gitter.im/codecov/support Twitter: @codecov
Open Graph Description: This pull request fixes check_output function to correctly include output of the command which ran in the CalledProcessError exception which is thrown. In addition to that, it also includes return ...
X Description: This pull request fixes check_output function to correctly include output of the command which ran in the CalledProcessError exception which is thrown. In addition to that, it also includes return ...
Opengraph URL: https://github.com/codecov/codecov-python/pull/153
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e40becb2-94c9-9d62-fb33-69629d7d3d39 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A224:296F05:C71A5C:10D43D8:6A4D5885 |
| html-safe-nonce | 04ab2d2a53f14368247da8d6489b6d39c7dd230e105f5d9f8e83b3216490be69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjI0OjI5NkYwNTpDNzFBNUM6MTBENDNEODo2QTRENTg4NSIsInZpc2l0b3JfaWQiOiI4MDQ4ODk3NDgxOTAxOTU1MjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1300fc389cbf2718cce28a1a998244dcc619b578c2bc476d88e8eb4727e8c3b9 |
| hovercard-subject-tag | pull_request:203800531 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codecov/codecov-python/pull/153/files |
| twitter:image | https://avatars.githubusercontent.com/u/125088?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/125088?s=400&v=4 |
| og:image:alt | This pull request fixes check_output function to correctly include output of the command which ran in the CalledProcessError exception which is thrown. In addition to that, it also includes return ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codecov/codecov-python git https://github.com/codecov/codecov-python.git |
| octolytics-dimension-user_id | 8226205 |
| octolytics-dimension-user_login | codecov |
| octolytics-dimension-repository_id | 22685735 |
| octolytics-dimension-repository_nwo | codecov/codecov-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22685735 |
| octolytics-dimension-repository_network_root_nwo | codecov/codecov-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width