René's URL Explorer Experiment


Title: Please add an option to skip "cd" to different directories, or convert relative to absolute paths · Issue #174 · codecov/codecov-python · GitHub

Open Graph Title: Please add an option to skip "cd" to different directories, or convert relative to absolute paths · Issue #174 · codecov/codecov-python

X Title: Please add an option to skip "cd" to different directories, or convert relative to absolute paths · Issue #174 · codecov/codecov-python

Description: Noticed something interesting recently fixing another CI error: my AppVeyor results were no longer being uploaded anymore (for who knows how long). I am greatly suspicious of this code: codecov-python/codecov/__init__.py Lines 562 to 565...

Open Graph Description: Noticed something interesting recently fixing another CI error: my AppVeyor results were no longer being uploaded anymore (for who knows how long). I am greatly suspicious of this code: codecov-pyt...

X Description: Noticed something interesting recently fixing another CI error: my AppVeyor results were no longer being uploaded anymore (for who knows how long). I am greatly suspicious of this code: codecov-pyt...

Opengraph URL: https://github.com/codecov/codecov-python/issues/174

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Please add an option to skip \"cd\" to different directories, or convert relative to absolute paths","articleBody":"Noticed something interesting recently fixing another CI error: my AppVeyor results were no longer being uploaded anymore (for who knows how long).  I am greatly suspicious of this code:\r\n\r\nhttps://github.com/codecov/codecov-python/blob/0743daa83647f12ff31b84d07113d2c24c27b924/codecov/__init__.py#L562-L565\r\n\r\n### Failed build\r\n\r\n[Full build log here](https://ci.appveyor.com/project/svenevs/exhale/builds/21187044/job/s46vy07b2e5yttju#L206), specifically this part is curious because this used to work as expected with `codecov` on this repo:\r\n\r\n```\r\n==\u003e Collecting reports\r\nXX\u003e Searching for reports disabled\r\n    Targeting specific files\r\n    - Ignored: [Errno 2] No such file or directory: '.\\\\coverage.xml'\r\nError: No coverage report found\r\n```\r\n\r\n### Solution: must use absolute path now\r\n\r\n```diff\r\n--- a/.appveyor.yml\r\n+++ b/.appveyor.yml\r\n@@ -94,6 +94,6 @@ after_test:\r\n         Invoke-Expression $codecov_cmd\r\n       }\r\n       else {\r\n-        $codecov_cmd = '\u0026 codecov -X gcov -f .\\coverage.xml --name ' + $env:TEST_NAME\r\n+        $codecov_cmd = '\u0026 codecov -X gcov -f c:\\projects\\exhale\\coverage.xml --name ' + $env:TEST_NAME\r\n         Invoke-Expression $codecov_cmd\r\n       }\r\n```\r\n\r\n### My Guess\r\n\r\nI don't think you can just do `cd \u003csomewhere\u003e \u0026\u0026 other_stuff || different_stuff` on windows in general.  So what I believe happens is the `cd` is successful, but the rest fails and then `codecov` never goes back.\r\n\r\nIn general, it's worth mentioning that this repo has a lot of patterns like this that should probably be a little more careful.  Another small example that could cause problems:\r\n\r\nhttps://github.com/codecov/codecov-python/blob/0743daa83647f12ff31b84d07113d2c24c27b924/codecov/__init__.py#L493\r\n\r\nI think that the python script was probably just adapted from the bash script and maybe that's why all of these are in here?  Unfortunately, there's a large number of them...but this is why there are generally so many problems on AppVeyor.\r\n\r\nFor the `cd` (suspected) problem, you may want to introduce a simple context manager so that you can do\r\n\r\n```py\r\nwith cd(some_path):\r\n    execute_stuff()\r\n```\r\n\r\nwhere the context manager will go back to where it came from (lots of examples online, [here's a good starting place](https://stackoverflow.com/a/24176022)).\r\n\r\nOr an even easier solution that would be much faster is specifically when you get a `-f \u003csome_path\u003e` you can check\r\n\r\n```py\r\n# suppose it was called this\r\nfile_path = args[\"-f\"]  # just an example...\r\nif not os.path.isabs(file_path):\r\n    file_path = os.path.abspath(file_path)\r\n```\r\n\r\nor similar.  Basically, make everything absolute before you start \"cd'ing\" around :upside_down_face:\r\n\r\nHappy to help implement changes with more input on what you want here.","author":{"url":"https://github.com/svenevs","@type":"Person","name":"svenevs"},"datePublished":"2018-12-22T01:02:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/174/codecov-python/issues/174"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0cb5e16d-37ac-ff92-ec1d-6404f7960ea3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA42:117F59:16866EB:2057DA6:6A4CCDD8
html-safe-nonce987701134e3629ded8fc2338d9145c962c5662c718d623a06f28fe0bc5bc4b80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTQyOjExN0Y1OToxNjg2NkVCOjIwNTdEQTY6NkE0Q0NERDgiLCJ2aXNpdG9yX2lkIjoiNzI4NDgwOTM5MTA1NTYyMTU5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5ccbc1116007f6709413dc3e506d414867905b5dd8f8d85b3e704fc38a1394a9
hovercard-subject-tagissue:393628983
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codecov/codecov-python/174/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9bdb9c0059d09e6fc1a62968efe2c2cbd601c2c0e3512dd567e49795cae7a8e6/codecov/codecov-python/issues/174
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9bdb9c0059d09e6fc1a62968efe2c2cbd601c2c0e3512dd567e49795cae7a8e6/codecov/codecov-python/issues/174
og:image:altNoticed something interesting recently fixing another CI error: my AppVeyor results were no longer being uploaded anymore (for who knows how long). I am greatly suspicious of this code: codecov-pyt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesvenevs
hostnamegithub.com
expected-hostnamegithub.com
Noneee8a9d18044a05fe2d57b9ae797da38c8be34effb03f015f7c42e94770d28a1b
turbo-cache-controlno-preview
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-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef84814acc6f036583fd43463f5847a846243d2a4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/codecov/codecov-python/issues/174#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodecov%2Fcodecov-python%2Fissues%2F174
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodecov%2Fcodecov-python%2Fissues%2F174
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=codecov%2Fcodecov-python
Reloadhttps://redirect.github.com/codecov/codecov-python/issues/174
Reloadhttps://redirect.github.com/codecov/codecov-python/issues/174
Reloadhttps://redirect.github.com/codecov/codecov-python/issues/174
Please reload this pagehttps://redirect.github.com/codecov/codecov-python/issues/174
codecov https://redirect.github.com/codecov
codecov-pythonhttps://redirect.github.com/codecov/codecov-python
Notifications https://redirect.github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Fork 136 https://redirect.github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Star 184 https://redirect.github.com/login?return_to=%2Fcodecov%2Fcodecov-python
Code https://redirect.github.com/codecov/codecov-python
Issues 22 https://redirect.github.com/codecov/codecov-python/issues
Pull requests 1 https://redirect.github.com/codecov/codecov-python/pulls
Actions https://redirect.github.com/codecov/codecov-python/actions
Projects https://redirect.github.com/codecov/codecov-python/projects
Security and quality 0 https://redirect.github.com/codecov/codecov-python/security
Insights https://redirect.github.com/codecov/codecov-python/pulse
Code https://redirect.github.com/codecov/codecov-python
Issues https://redirect.github.com/codecov/codecov-python/issues
Pull requests https://redirect.github.com/codecov/codecov-python/pulls
Actions https://redirect.github.com/codecov/codecov-python/actions
Projects https://redirect.github.com/codecov/codecov-python/projects
Security and quality https://redirect.github.com/codecov/codecov-python/security
Insights https://redirect.github.com/codecov/codecov-python/pulse
Please add an option to skip "cd" to different directories, or convert relative to absolute pathshttps://redirect.github.com/codecov/codecov-python/issues/174#top
https://github.com/svenevs
svenevshttps://github.com/svenevs
on Dec 22, 2018https://github.com/codecov/codecov-python/issues/174#issue-393628983
codecov-python/codecov/__init__.pyhttps://github.com/codecov/codecov-python/blob/0743daa83647f12ff31b84d07113d2c24c27b924/codecov/__init__.py#L562-L565
0743daahttps://redirect.github.com/codecov/codecov-python/commit/0743daa83647f12ff31b84d07113d2c24c27b924
Full build log herehttps://ci.appveyor.com/project/svenevs/exhale/builds/21187044/job/s46vy07b2e5yttju#L206
codecov-python/codecov/__init__.pyhttps://github.com/codecov/codecov-python/blob/0743daa83647f12ff31b84d07113d2c24c27b924/codecov/__init__.py#L493
0743daahttps://redirect.github.com/codecov/codecov-python/commit/0743daa83647f12ff31b84d07113d2c24c27b924
here's a good starting placehttps://stackoverflow.com/a/24176022
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.