You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change directory into the default_python folder, fix up the target destinations and run databricks bundle deploy
See the error Error: build failed default, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
Expected Behavior
The wheel builds and deployment completes successfully.
Actual Behavior
The wheel fails to build and deployment completes successfully.
It looks like it checks if the path "bash" exists, that unfortunately isn't enough to detect if bash for Windows is installed as WSL (Windows Subsystem for Linux) will route all commands sent to bash to the Linux subsystem, but that's not what we want in this case!
I believe the best solution is to just use CMD on Windows - that way if developers have WSL installed it won't cause issues.
Building default_python...
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build mutator=seq mutator=artifacts.BuildAll mutator=seq mutator=artifacts.Build(default_python) mutator=artifacts.whl.Build(default_python)
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build mutator=seq mutator=artifacts.BuildAll mutator=seq mutator=artifacts.Build(default_python)
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build mutator=seq mutator=artifacts.BuildAll mutator=seq
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build mutator=seq mutator=artifacts.BuildAll
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build mutator=seq
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq mutator=build
18:10:56 ERROR Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
pid=37912 mutator=seq
Error: build failed default_python, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
The text was updated successfully, but these errors were encountered:
NathanNZ
changed the title
Databricks fails to deploy bundles that depend on wheels under Windows
Databricks fails to deploy bundles with Wheels when WSL is enabled
Jan 28, 2024
NathanNZ
changed the title
Databricks fails to deploy bundles with Wheels when WSL is enabled
CLI fails to deploy when building python wheels bundles on Windows with WSL installed
Jan 28, 2024
NathanNZ
changed the title
CLI fails to deploy when building python wheels bundles on Windows with WSL installed
CLI fails to deploy when building python wheels on Windows with WSL installed
Jan 28, 2024
#1169)
## Changes
Allow specifying executable in artifact section
```
artifacts:
test:
type: whl
executable: bash
...
```
We also skip bash found on Windows if it's from WSL because it won't be
correctly executed, see the issue above
Fixes#1159
Describe the issue
When using a Wheel task eg:
Validation completes, but deployment fails with:
Error: build failed default, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec3488002273.sh: No such file or directory
Configuration
Please provide a minimal reproducible configuration for the issue
Steps to reproduce the behavior
Error: build failed default, error: exit status 1, output: /bin/bash: C:UsersnathanAppDataLocalTempcli-exec944438467.sh: No such file or directory
Expected Behavior
The wheel builds and deployment completes successfully.
Actual Behavior
The wheel fails to build and deployment completes successfully.
OS and CLI version
Is this a regression?
Yes - this was working with v0.211.0
Logs
Having a look at code that looks a bit suspicious:
cli/libs/exec/shell_bash.go
Line 26 in af618f7
It looks like it checks if the path "bash" exists, that unfortunately isn't enough to detect if bash for Windows is installed as WSL (Windows Subsystem for Linux) will route all commands sent to bash to the Linux subsystem, but that's not what we want in this case!
I believe the best solution is to just use CMD on Windows - that way if developers have WSL installed it won't cause issues.
The text was updated successfully, but these errors were encountered: