Title: [AppVeyor] The filename, directory name, or volume label syntax is incorrect. · Issue #156 · codecov/codecov-python · GitHub
Open Graph Title: [AppVeyor] The filename, directory name, or volume label syntax is incorrect. · Issue #156 · codecov/codecov-python
X Title: [AppVeyor] The filename, directory name, or volume label syntax is incorrect. · Issue #156 · codecov/codecov-python
Description: Related: #129 and #139 As mentioned, the CI builds for this repo fail on this same error. Ignoring the issuing of posix find (disabled by -X gcov), noting that I do not actually know where this error comes from, here is the symptom of wh...
Open Graph Description: Related: #129 and #139 As mentioned, the CI builds for this repo fail on this same error. Ignoring the issuing of posix find (disabled by -X gcov), noting that I do not actually know where this err...
X Description: Related: #129 and #139 As mentioned, the CI builds for this repo fail on this same error. Ignoring the issuing of posix find (disabled by -X gcov), noting that I do not actually know where this err...
Opengraph URL: https://github.com/codecov/codecov-python/issues/156
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[AppVeyor] The filename, directory name, or volume label syntax is incorrect.","articleBody":"Related: #129 and #139\r\n\r\nAs mentioned, the CI builds for this repo fail on this same error. Ignoring the issuing of posix `find` (disabled by `-X gcov`), noting that I do **not** actually know where this error comes from, here is the _symptom_ of whatever it is that is broken in this tool for windows:\r\n\r\n```\r\ncodecov.exe : The filename, directory name, or volume label syntax is incorrect.\r\nAt line:1 char:1\r\n+ \u0026 codecov -X gcov -f .\\coverage.xml --name win64_cxx\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (The filename, d...x is incorrect.:String) [], RemoteException\r\n + FullyQualifiedErrorId : NativeCommandError\r\n ```\r\n\r\nI have rigorously tested a variety of ways to call the command, and they all result in the same `The filename, directory name, or volume label syntax is incorrect.` message. This is problematic, because almost every way that you can run `codecov` will _successfully upload the results_ but give a **non-zero exit code**, which reports back as a failed CI build.\r\n\r\n**Failing Ways to Call Codecov**\r\n\r\nBrackets `[-X gcov [-f filename [--name my_name]]]` indicate that all permutations (with / without `-X gcov` and `--name my_name` and `-f filename`) have been tested (because I'm obsessive, and was kind of drunk).\r\n\r\n- `codecov [-X gcov [-f filename [--name my_name]]]`\r\n- `python -m codecov [-X gcov [-f filename [--name my_name]]]`\r\n\r\nBasically, how you are supposed to run `codecov` depending on what you've done with `$PATH` etc.\r\n\r\n**Super Hacky Workaround**\r\n\r\nSo I'm a powershell novice, but there is this thing called `Invoke-Expression` that lets you call a command. Conveniently (really only for this use case actually), `Invoke-Expression` will give an exit code of `0` even if the thing that was invoked gives a non-zero exit code.\r\n\r\n@johlju i don't really know if this enables an alternative solution for you since i'm not capturing the \"result\" here, but in my `appveyor.yml` i just cheated and did this:\r\n\r\n```yaml\r\n# relevant for below\r\nenvironment:\r\n matrix:\r\n - PYTHON: \"C:\\\\Python27\"\r\n TEST_NAME: \"win32_py27\"\r\n - PYTHON: \"C:\\\\Python27-x64\"\r\n TEST_NAME: \"win64_py27\"\r\n - PYTHON: \"C:\\\\Python36-x64\"\r\n TEST_NAME: \"win64_py36\"\r\n\r\n# ... your install / test_script etc\r\n\r\n# Why use Invoke-Expression like this? Because I keep getting\r\n#\r\n# codecov : The filename, directory name, or volume label syntax is incorrect.\r\n#\r\n# Which reports the build as failed, but Invoke-Expression always succeeds xD\r\nafter_test:\r\n - ps: |\r\n $codecov_cmd = '\u0026 codecov -X gcov --name ' + $env:TEST_NAME\r\n Invoke-Expression $codecov_cmd\r\n```\r\n\r\nI will successfully receive updated code coverage reports to `codecov.io`, regardless of the fact that the expression fails.\r\n\r\nAnyway, I tried to give as much detail as possible to hopefully help somebody narrow down what is actually going on. It seems that if you want to fix windows support for this (epic and amazing) tool, you need to target whatever is triggering this `The filename, directory name, or volume label syntax is incorrect`, which I think comes from that `root = quote(root)` business (maybe don't do that unconditionally, but instead do it if `platform.system() != \"Windows\"`?\r\n\r\nHope this is helpful. It's a quasi-duplicate, and I've finally found a workaround, so feel free to close it if you like. I just wanted to elaborate on the precise problem, since I care very deeply about this tool and `codecov.io` :heart:","author":{"url":"https://github.com/svenevs","@type":"Person","name":"svenevs"},"datePublished":"2018-08-14T07:33:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/156/codecov-python/issues/156"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:395ad85b-05bd-2d3d-2f62-fb6b3b596bc9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFBA:147D30:47CFB0:664BE8:6A4E6EAD |
| html-safe-nonce | b6ba49d6d38cfc9fa5f11715e00801d1461514e7c03d0cbb8b9180fc90b7c953 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkJBOjE0N0QzMDo0N0NGQjA6NjY0QkU4OjZBNEU2RUFEIiwidmlzaXRvcl9pZCI6IjI1MTc1Nzg5NjMwNDUyMTU5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 02d3eeab1ae98ed8caab48e3f8555a82003fd65c4da3cabd9336f5fbdb73de96 |
| hovercard-subject-tag | issue:350312217 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/codecov/codecov-python/156/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e3f21bc522caa0ea4353e0bda5717f6dc668d7b7a108f6d16e45c3e97df8a77/codecov/codecov-python/issues/156 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e3f21bc522caa0ea4353e0bda5717f6dc668d7b7a108f6d16e45c3e97df8a77/codecov/codecov-python/issues/156 |
| og:image:alt | Related: #129 and #139 As mentioned, the CI builds for this repo fail on this same error. Ignoring the issuing of posix find (disabled by -X gcov), noting that I do not actually know where this err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | svenevs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width