Skip to content

Commit 986394d

Browse files
scbeddCopilot
andauthored
Resolve Crashing VerifyChangeLogs (#42545)
Co-authored-by: Copilot <[email protected]>
1 parent 2a839e5 commit 986394d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

eng/pipelines/templates/jobs/regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686

8787
- pwsh: |
8888
mkdir -p $(TEST_PROXY_FOLDER)
89-
python -m pip install -r eng/regression_tools.txt
89+
$(PIP_EXE) install -r eng/regression_tools.txt
9090
displayName: 'Prep Environment'
9191
9292
- template: /eng/common/testproxy/test-proxy-tool.yml

eng/scripts/Language-Settings.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,21 @@ function Get-AllPackageInfoFromRepo ($serviceDirectory)
161161
$allPkgPropLines = $null
162162
try
163163
{
164+
$pathToBuild = (Join-Path $RepoRoot "tools" "azure-sdk-tools[build]")
164165
# Use ‘uv pip install’ if uv is on PATH, otherwise fall back to python -m pip
165166
if (Get-Command uv -ErrorAction SilentlyContinue) {
166167
Write-Host "Using uv pip install"
167-
$null = uv pip install "./tools/azure-sdk-tools[build]"
168+
$null = uv pip install "$pathToBuild"
168169
$freezeOutput = uv pip freeze
169170
Write-Host "Pip freeze output: $freezeOutput"
170171
} else {
171172
Write-Host "Using python -m pip install"
172-
$null = python -m pip install "./tools/azure-sdk-tools[build]" -q -I
173+
$null = python -m pip install "$pathToBuild" -q -I
173174
}
174175

175-
Write-Host "Running get_package_properties.py to retrieve package properties"
176-
$allPkgPropLines = python (Join-path eng scripts get_package_properties.py) -s $searchPath
176+
$scriptLoc = Join-path $RepoRoot eng scripts get_package_properties.py
177+
Write-Host "Running '$scriptLoc' to retrieve package properties"
178+
$allPkgPropLines = python "$scriptLoc" -s "$(Join-Path $RepoRoot $searchPath)"
177179
}
178180
catch
179181
{

0 commit comments

Comments
 (0)