Update query count to fix automation (#6387)

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-02-03 16:32:11 -08:00 committed by GitHub
parent 82b119785b
commit cb3b4117da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ function Invoke-Query($fields, $wiql, $output = $true)
}
$response = Invoke-RestMethod -Method POST `
-Uri "https://dev.azure.com/azure-sdk/Release/_apis/wit/wiql/?`$top=10000&api-version=6.0" `
-Uri "https://dev.azure.com/azure-sdk/Release/_apis/wit/wiql/?`$top=100000&api-version=6.0" `
-Headers (Get-DevOpsRestHeaders) -Body $body -ContentType "application/json" | ConvertTo-Json -Depth 10 | ConvertFrom-Json -AsHashTable
if ($response -isnot [HashTable] -or !$response.ContainsKey("workItems") -or $response.workItems.Count -eq 0) {

View File

@ -79,7 +79,7 @@ function moduleIsInstalled([string]$moduleName, [string]$version) {
if ($version -as [Version]) {
$modules = $modules.Where({ [Version]$_.Version -ge [Version]$version })
if ($modules.Count -gt 0) {
Write-Host "Using module $($modules[0].Name) with version $($modules[0].Version)."
Write-Verbose "Using module $($modules[0].Name) with version $($modules[0].Version)."
return $modules[0]
}
}
@ -100,7 +100,7 @@ function installModule([string]$moduleName, [string]$version, $repoUrl) {
Set-PSRepository -Name $repo.Name -InstallationPolicy "Trusted" | Out-Null
}
Write-Host "Installing module $moduleName with min version $version from $repoUrl"
Write-Verbose "Installing module $moduleName with min version $version from $repoUrl"
# Install under CurrentUser scope so that the end up under $CurrentUserModulePath for caching
Install-Module $moduleName -MinimumVersion $version -Repository $repo.Name -Scope CurrentUser -Force
# Ensure module installed
@ -171,7 +171,7 @@ function Install-ModuleIfNotInstalled() {
break
}
Write-Host "Using module '$($module.Name)' with version '$($module.Version)'."
Write-Verbose "Using module '$($module.Name)' with version '$($module.Version)'."
}
finally {
$mutex.ReleaseMutex()