Skip to content

Commit

Permalink
Update query count to fix automation (#6387)
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Haggard <[email protected]>
  • Loading branch information
azure-sdk and weshaggard authored Feb 4, 2025
1 parent 82b1197 commit cb3b411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions eng/common/scripts/Helpers/PSModule-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand All @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cb3b411

Please sign in to comment.