-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add WSL #1081
Add WSL #1081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add validation script as usual and add wsl to software report
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think we should add a note to Readme about WSL
/azp run windows2019 |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run windows2019 |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run windows2019 |
Azure Pipelines successfully started running 1 pipeline(s). |
I think our Windows builds started failing because of this, see rust-lang/rust#73566 (comment) |
We're fixing it by explicitly setting the shell: rust-lang/rust#74406 |
FWIW if you have some kind of test which relies on |
Hello, @The-Compiler.
If the file name does not contain an extension, .exe is appended, therefore bash is equivalent to bash.exe . Using logic above it first looks in the In that case you should use follow approaches:
|
@The-Compiler I found the same issue with GitHub Actions and pytest. The following would fail: def setUp(self):
self.shell = ['bash'] if platform == 'win32' else []
print('\n::group::Log')
sys.stdout.flush()
def tearDown(self):
print('\n::endgroup::')
sys.stdout.flush()
def _sh(self, args):
check_call(self.shell + args, stderr=STDOUT) Instead of setting def setUp(self):
self.shell = [which('bash')] if platform == 'win32' else []
print('\n::group::Log')
sys.stdout.flush() This seems to look into the PATH, skipping the |
The CI started installing some wrapper instead of a real bash which is what gets found. See: actions/runner-images#1081 Note: the manual `run_command` can be replaced with `find_program` once/if we depend on meson>=0.52.0 which added the `version` parameter. Signed-off-by: Ran Benita <ran@unusedvar.com>
The CI started installing some wrapper instead of a real bash which is what gets found. See: actions/runner-images#1081 Given meson is written in python, it should always be available hopefully. Signed-off-by: Ran Benita <ran@unusedvar.com>
The CI started installing some wrapper instead of a real bash which is what gets found. See: actions/runner-images#1081 Given meson is written in python, it should always be available hopefully. Disabled valgrind wrapper for now because it now also applies to the python interpreter which leaks like a sieve. Signed-off-by: Ran Benita <ran@unusedvar.com>
The CI started installing some wrapper instead of a real bash which is what gets found. See: actions/runner-images#1081 Given meson is written in python, it should always be available hopefully. Disabled valgrind wrapper for now because it now also applies to the python interpreter which leaks like a sieve. Signed-off-by: Ran Benita <ran@unusedvar.com>
* Fixes Windows CI: prepend '/c/Program Files/Git/bin' Bash@3 started failing after a recent change related to WSL actions/runner-images#1081 actions/runner-images#1276 * Fix slashes * Pick bash from env
actions/runner-images#1081 introduced WSL with a useless bash placeholder which sometimes shadows the actual bash executable. Delete it!
Another alternative that makes |
Cherry-Picked from reasonml/reason@d3822b7: Fixes Windows CI: prepend '/c/Program Files/Git/bin' (#2611) * Fixes Windows CI: prepend '/c/Program Files/Git/bin' Bash@3 started failing after a recent change related to WSL actions/runner-images#1081 actions/runner-images#1276 * Fix slashes * Pick bash from env
Cherry-Picked from reasonml/reason@d3822b7: Fixes Windows CI: prepend '/c/Program Files/Git/bin' (#2611) * Fixes Windows CI: prepend '/c/Program Files/Git/bin' Bash@3 started failing after a recent change related to WSL actions/runner-images#1081 actions/runner-images#1276 * Fix slashes * Pick bash from env
Cherry-Picked from reasonml/reason@d3822b7: Fixes Windows CI: prepend '/c/Program Files/Git/bin' (#2611) * Fixes Windows CI: prepend '/c/Program Files/Git/bin' Bash@3 started failing after a recent change related to WSL actions/runner-images#1081 actions/runner-images#1276 * Fix slashes * Pick bash from env
Description
New tool
Installing Windows Subsystem for Linux is turning on Windows Optional feature. Installation time: 1sec
Related issue: #50
Check list