From 83760bd5c627c56c16eb93c2617dbb3896aaa626 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Thu, 24 Aug 2023 21:43:24 -0400 Subject: [PATCH] ci: explicitly use python3 to start goma (#39650) * ci: explicitly use python3 to start goma * ci: explicitly use python3 for goma --- appveyor-woa.yml | 4 ++-- appveyor.yml | 4 ++-- script/start-goma.ps1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/appveyor-woa.yml b/appveyor-woa.yml index bceebd1fb7e7..0c407e7f80e1 100644 --- a/appveyor-woa.yml +++ b/appveyor-woa.yml @@ -118,7 +118,7 @@ for: - ps: .\src\electron\script\start-goma.ps1 -gomaDir $env:LOCAL_GOMA_DIR - ps: >- if (Test-Path 'env:RAW_GOMA_AUTH') { - $goma_login = python $env:LOCAL_GOMA_DIR\goma_auth.py info + $goma_login = python3 $env:LOCAL_GOMA_DIR\goma_auth.py info if ($goma_login -eq 'Login as Fermi Planck') { Write-warning "Goma authentication is correct"; } else { @@ -168,7 +168,7 @@ for: - ninja -C out/Default electron:hunspell_dictionaries_zip - ninja -C out/Default electron:electron_chromedriver_zip - ninja -C out/Default electron:node_headers - - python %LOCAL_GOMA_DIR%\goma_ctl.py stat + - python3 %LOCAL_GOMA_DIR%\goma_ctl.py stat - ps: >- Get-CimInstance -Namespace root\cimv2 -Class Win32_product | Select vendor, description, @{l='install_location';e='InstallLocation'}, @{l='install_date';e='InstallDate'}, @{l='install_date_2';e='InstallDate2'}, caption, version, name, @{l='sku_number';e='SKUNumber'} | ConvertTo-Json | Out-File -Encoding utf8 -FilePath .\installed_software.json - python3 electron/build/profile_toolchain.py --output-json=out/Default/windows_toolchain_profile.json diff --git a/appveyor.yml b/appveyor.yml index 0830ae40312a..dafbada5b026 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -116,7 +116,7 @@ for: - ps: .\src\electron\script\start-goma.ps1 -gomaDir $env:LOCAL_GOMA_DIR - ps: >- if (Test-Path 'env:RAW_GOMA_AUTH') { - $goma_login = python $env:LOCAL_GOMA_DIR\goma_auth.py info + $goma_login = python3 $env:LOCAL_GOMA_DIR\goma_auth.py info if ($goma_login -eq 'Login as Fermi Planck') { Write-warning "Goma authentication is correct"; } else { @@ -166,7 +166,7 @@ for: - ninja -C out/Default electron:hunspell_dictionaries_zip - ninja -C out/Default electron:electron_chromedriver_zip - ninja -C out/Default electron:node_headers - - python %LOCAL_GOMA_DIR%\goma_ctl.py stat + - python3 %LOCAL_GOMA_DIR%\goma_ctl.py stat - ps: >- Get-CimInstance -Namespace root\cimv2 -Class Win32_product | Select vendor, description, @{l='install_location';e='InstallLocation'}, @{l='install_date';e='InstallDate'}, @{l='install_date_2';e='InstallDate2'}, caption, version, name, @{l='sku_number';e='SKUNumber'} | ConvertTo-Json | Out-File -Encoding utf8 -FilePath .\installed_software.json - python3 electron/build/profile_toolchain.py --output-json=out/Default/windows_toolchain_profile.json diff --git a/script/start-goma.ps1 b/script/start-goma.ps1 index 0d72c413afcd..20e061105ab2 100755 --- a/script/start-goma.ps1 +++ b/script/start-goma.ps1 @@ -1,6 +1,6 @@ param([string]$gomaDir=$PWD) $cmdPath = Join-Path -Path $gomaDir -ChildPath "goma_ctl.py" -Start-Process -FilePath cmd -ArgumentList "/C", "python", "$cmdPath", "ensure_start" +Start-Process -FilePath cmd -ArgumentList "/C", "python3", "$cmdPath", "ensure_start" $timedOut = $false; $waitTime = 0; $waitIncrement = 5; $timeout=120; Do { sleep $waitIncrement; $timedOut = (($waitTime+=$waitIncrement) -gt $timeout); iex "$gomaDir\gomacc.exe port 2" > $null; } Until(($LASTEXITCODE -eq 0) -or $timedOut) if ($timedOut) {