-
-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant run bash from GitHub CI #2416
Comments
Please share your Also, as suggested by the bug report template, please run Meanwhile, in order to limit the possible issues: |
3221225477 in hex is 0xc0000005 -- access violation on windows something is segfaulting or some such -- maybe try |
Hrm, okay so I got a chance to test this, seems like the issue is still there: toxfile
https://github.com/OpenMined/PySyft/runs/7296035966?check_suite_focus=true I don't understand what My tox file:
GitHub CI log:
|
Okay so I tried this again and have gone to a much simpler test case which shows that this is simply broken.
And the error:
I guess the question is, if its literally using those |
@madhavajay The When there is an issue with tox, I usually recommend to try whether this issue has been fixed with the upcoming rewrite - tox4 ( I also would suggest to run a much simplified command on your local machine. Unfortunately I have no access to a Windows box, so I can't help here. @asottile / @gaborbernat What's your take on this? |
3221225477 is the windows equivalent to a segfault it works fine for me on my windows host so I suspect some sort of misconfiguration on the host you're on |
yes I can confirm that -- I did so here: #2416 (comment) |
Okay, I did some debugging with my local Windows VM and figured out that for some reason calling the If I manually execute it, there is no issue, so perhaps its a weird security thing, since its failing on the most simple bash command So switching to another bash like the one with git works fine. But since its Windows im neither surprised nor... can I even... 🙄 Thanks for the 🐥 help. |
Also, is there any way this can be fixed with tox. Could I for instance somehow tell tox to use a specific path for Maybe like a:
|
you can set PATH, either in your actions config or in tox |
I tried to do that on windows (following this actions/runner#497) and got a warning that you need to do some special work around for changing path on windows in GitHub Actions. I guess if theres a way its out of scope of this ticket anyway. Thanks. |
I have this really weird issue where if I run tox from github CI it wont let me use
bash
inside tox. If I run this locally myself in windows or by hand on the CI machine everything is fine.So here is an example where I run something in bash which then uses || true if it fails.
I also tried escaping with
^|^|
but that didnt work.To run the tox tasks I do:
It says its shell: cmd, but I have also tried running `powershell.exe -command "tox -e stack.test.integration.windows" to no avail.
I can't figure it out. Its like the quotes are changing to single quotes somehow and then its failing, but why? Is there some way to control what shell gets used for each line under
command
when running in windows?Why does this only happen with the github ci runner and not when I run the command by hand?
The text was updated successfully, but these errors were encountered: