@@ -20,9 +20,9 @@ EE_ANSIBLE_VERSION=null
2020EE_ANSIBLE_LINT_VERSION=null
2121
2222if command -v sudo > /dev/null 2>&1 ; then
23- SUDO=" "
24- else
2523 SUDO=sudo
24+ else
25+ SUDO=" "
2626fi
2727
2828mkdir -p out/log
@@ -51,28 +51,6 @@ get_version () {
5151 fi
5252}
5353
54- find_powershell () {
55- # Sometimes these are not in PATH under wsl, so we need to look deeper
56- local candidates=(
57- " pwsh.exe"
58- " powershell.exe"
59- " /mnt/c/Program Files/PowerShell/7/pwsh.exe"
60- " /mnt/c/Program Files (x86)/PowerShell/7/pwsh.exe"
61- " /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
62- )
63- for exe in " ${candidates[@]} " ; do
64- if cmd=$( command -v " $exe " 2> /dev/null) ; then
65- echo " $cmd "
66- exit 0
67- elif [ -x " $exe " ]; then
68- echo " $exe "
69- exit 0
70- fi
71- done
72- log error " Failed to find powershell executable"
73- exit 2
74- }
75-
7654if [[ -z " ${HOSTNAME:- } " ]]; then
7755 export HOSTNAME=${HOSTNAME:- ${HOST:- $(hostname)} }
7856 log warning " Defined HOSTNAME=${HOSTNAME} as we were not able to found a value already defined.."
@@ -150,11 +128,8 @@ else
150128 OS_VERSION=" $( lsb_release --id --short 2> /dev/null) -$( lsb_release --release --short 2> /dev/null) "
151129 OS_VERSION=" ${OS_VERSION,,} "
152130 if [[ " $WSL " -eq 1 ]]; then
153- OS_VERSION=$( $( find_powershell) -Command ' Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -property Caption, BuildNumber' | grep " Microsoft " | \
154- tr -d ' \r' | \
155- sed ' s/^Microsoft //I' | \
156- tr ' [:upper:]' ' [:lower:]' | \
157- sed ' s/[ -]\+/-/g' ) -wsl-$OS_VERSION
131+ # is wsl is configured with interop disabled, calling cmd.exe can fail ugly and without output on GHA
132+ OS_VERSION=$( cmd.exe /c ver 2> /dev/null | awk ' /Version/ {match($0, /\[Version ([0-9.]+)\]/, a); print a[1]}' || echo ' unknown' )
158133 fi
159134 else # when inside a container this would be needed
160135 # shellcheck disable=SC1091
@@ -173,7 +148,7 @@ if [[ -f "/usr/bin/apt-get" ]]; then
173148 # qemu-user-static is required by podman on arm64
174149 # python3-dev is needed for headers as some packages might need to compile
175150 # DEBS=(curl file git python3-dev python3-venv python3-pip qemu-user-static xvfb x11-xserver-utils libgbm-dev libssh-dev libonig-dev)
176- DEBS=(curl file git)
151+ DEBS=(curl file git gcc libonig-dev )
177152 # add nodejs to DEBS only if node is not already installed because
178153 # GHA has newer versions preinstalled and installing the rpm would
179154 # basically downgrade it
298273VIRTUAL_ENV=${EXPECTED_VENV}
299274if [[ -d " ${VIRTUAL_ENV} " ]]; then
300275 log notice " Running uv sync ..."
276+ if [[ " $WSL " -eq 1 ]]; then
277+ log warning " Setting UV_CONCURRENT_INSTALLS=1 because WSL was detected, see https://github.com/astral-sh/uv/issues/13481#issuecomment-3375527015"
278+ export UV_CONCURRENT_INSTALLS=1
279+ fi
301280 timed uv sync --no-progress -q || {
302- log warning " Removing broken venv from ${VIRTUAL_ENV} ..."
303- rm -rf " ${VIRTUAL_ENV} "
281+ log warning " Removing broken venv from ${VIRTUAL_ENV} ..."
282+ rm -rf " ${VIRTUAL_ENV} "
304283 }
305284fi
306285if [[ ! -d " ${VIRTUAL_ENV} " ]]; then
0 commit comments