René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e40becb2-94c9-9d62-fb33-69629d7d3d39
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA224:296F05:C71A5C:10D43D8:6A4D5885
html-safe-nonce04ab2d2a53f14368247da8d6489b6d39c7dd230e105f5d9f8e83b3216490be69
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjI0OjI5NkYwNTpDNzFBNUM6MTBENDNEODo2QTRENTg4NSIsInZpc2l0b3JfaWQiOiI4MDQ4ODk3NDgxOTAxOTU1MjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1300fc389cbf2718cce28a1a998244dcc619b578c2bc476d88e8eb4727e8c3b9
hovercard-subject-tagpull_request:203800531
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/codecov/codecov-python/pull/153/files
twitter:imagehttps://avatars.githubusercontent.com/u/125088?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/125088?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/codecov/codecov-python git https://github.com/codecov/codecov-python.git
octolytics-dimension-user_id8226205
octolytics-dimension-user_logincodecov
octolytics-dimension-repository_id22685735
octolytics-dimension-repository_nwocodecov/codecov-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22685735
octolytics-dimension-repository_network_root_nwocodecov/codecov-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3bdd3157ea1f0fd738d408eceeead721acf1dc3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/codecov/codecov-python/pull/153/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodecov%2Fcodecov-python%2Fpull%2F153%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodecov%2Fcodecov-python%2Fpull%2F153%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=codecov%2Fcodecov-python
Reloadhttps://github.com/codecov/codecov-python/pull/153/files
Reloadhttps://github.com/codecov/codecov-python/pull/153/files
Reloadhttps://github.com/codecov/codecov-python/pull/153/files
Please reload this pagehttps://github.com/codecov/codecov-python/pull/153/files
codecov https://github.com/codecov
codecov-pythonhttps://github.com/codecov/codecov-python
Notifications https://github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Fork 136 https://github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Star 184 https://github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Code https://github.com/codecov/codecov-python
Issues 22 https://github.com/codecov/codecov-python/issues
Pull requests 1 https://github.com/codecov/codecov-python/pulls
Actions https://github.com/codecov/codecov-python/actions
Projects https://github.com/codecov/codecov-python/projects
Security and quality 0 https://github.com/codecov/codecov-python/security
Insights https://github.com/codecov/codecov-python/pulse
Code https://github.com/codecov/codecov-python
Issues https://github.com/codecov/codecov-python/issues
Pull requests https://github.com/codecov/codecov-python/pulls
Actions https://github.com/codecov/codecov-python/actions
Projects https://github.com/codecov/codecov-python/projects
Security and quality https://github.com/codecov/codecov-python/security
Insights https://github.com/codecov/codecov-python/pulse
thomasrockhuhttps://github.com/thomasrockhu
codecov:masterhttps://github.com/codecov/codecov-python/tree/master
Kami:better_error_outputhttps://github.com/Kami/codecov-python/tree/better_error_output
Conversation 7 https://github.com/codecov/codecov-python/pull/153
Commits 7 https://github.com/codecov/codecov-python/pull/153/commits
Checks 0 https://github.com/codecov/codecov-python/pull/153/checks
Files changed https://github.com/codecov/codecov-python/pull/153/files
Please reload this pagehttps://github.com/codecov/codecov-python/pull/153/files
Improve error reporting in the "try_run" function and correctly include original command output in the error message https://github.com/codecov/codecov-python/pull/153/files#top
Show all changes 7 commits https://github.com/codecov/codecov-python/pull/153/files
43c4f0d Log more info when a command fails. Kami Jul 25, 2018 https://github.com/codecov/codecov-python/pull/153/commits/43c4f0d19fc27c65ae51e273e00bec61604328f8
beec5bd Also log return code. Kami Jul 25, 2018 https://github.com/codecov/codecov-python/pull/153/commits/beec5bd1b7fd43641afd50f43a63d6b45d5d4138
d26470a Correctly include process output with the thrown exception. Kami Jul 25, 2018 https://github.com/codecov/codecov-python/pull/153/commits/d26470a1daa14b08dc0a10c15f64a6a94d890cdc
fb63124 Include returncode before the output. Kami Jul 25, 2018 https://github.com/codecov/codecov-python/pull/153/commits/fb63124c3d5a53daebe6342a69185afd5d5a11e4
7887d3c Merge branch 'master' into better_error_output thomasrockhu Sep 9, 2020 https://github.com/codecov/codecov-python/pull/153/commits/7887d3c95a10bbf8aa3ec6f2f8ab850b9e2db306
60bf5f8 Update codecov/__init__.py thomasrockhu Sep 9, 2020 https://github.com/codecov/codecov-python/pull/153/commits/60bf5f802f024f09013d7a24014591a13cd9aab2
20f3167 black thomasrockhu Sep 9, 2020 https://github.com/codecov/codecov-python/pull/153/commits/20f316775205bc4352fc256b8a8d5b8019a5b21c
Clear filters https://github.com/codecov/codecov-python/pull/153/files
Please reload this pagehttps://github.com/codecov/codecov-python/pull/153/files
Please reload this pagehttps://github.com/codecov/codecov-python/pull/153/files
codecov/__init__.pyhttps://github.com/codecov/codecov-python/pull/153/files#diff-36d8bb3370e39b91e34059655e752dabf12ef00bb45a1fe51647ef45a179753e
View file https://github.com/Kami/codecov-python/blob/20f316775205bc4352fc256b8a8d5b8019a5b21c/codecov/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/codecov/codecov-python/pull/153/{{ revealButtonHref }}
https://github.com/codecov/codecov-python/pull/153/files#diff-36d8bb3370e39b91e34059655e752dabf12ef00bb45a1fe51647ef45a179753e
Kamihttps://github.com/Kami
Jul 25, 2018https://github.com/codecov/codecov-python/pull/153/files#r205069348
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/enthought/Python-2.7.3/blob/master/Lib/subprocess.py#L408https://github.com/enthought/Python-2.7.3/blob/master/Lib/subprocess.py#L408
Please reload this pagehttps://github.com/codecov/codecov-python/pull/153/files
https://github.com/codecov/codecov-python/pull/153/files#diff-36d8bb3370e39b91e34059655e752dabf12ef00bb45a1fe51647ef45a179753e
https://github.com/codecov/codecov-python/pull/153/files#diff-36d8bb3370e39b91e34059655e752dabf12ef00bb45a1fe51647ef45a179753e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.