Skip to content

Commit 6142c19

Browse files
MIchaelMainerramsessanchezMicrosoft Graph DevX Tooling
authored
[v2] Module Command Metadata Refresh (#3553)
* pin autorest version to 3.7.1 * pin to last working version * throttle limit 2 * csProjeHelper with retry * reintroduce higher parallelism * reintroduce dynamic throttle * Add generated MgCommandMetadata.json. [run ci] * Bump module versions after metadata generation. --------- Co-authored-by: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent c7782d2 commit 6142c19

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

config/ModuleMetadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"versions": {
2828
"authentication": {
2929
"prerelease": "",
30-
"version": "2.35.1"
30+
"version": "2.36.0"
3131
},
3232
"beta": {
3333
"prerelease": "",
34-
"version": "2.35.1"
34+
"version": "2.36.0"
3535
},
3636
"v1.0": {
3737
"prerelease": "",
38-
"version": "2.35.1"
38+
"version": "2.36.0"
3939
}
4040
}
4141
}

src/Authentication/Authentication/custom/common/MgCommandMetadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/GenerateModules.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ $AutoRestTempFolder | ForEach-Object {
9292
}
9393

9494
$Stopwatch = [system.diagnostics.stopwatch]::StartNew()
95-
$Throttle = 2 # Reduced from 4 to prevent file locking issues in parallel module generation
95+
$CpuCount = (Get-CimInstance Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
96+
$Throttle = [int][math]::Max(1, [math]::Min(4, $CpuCount / 2)) # Use half the CPU count but max 4, min 1
9697
$Results = $ModuleToGenerate | ForEach-Object -Parallel {
9798
$Module = $_
9899
Write-Host -ForegroundColor Green "-------------'Generating $Module'-------------"

0 commit comments

Comments
 (0)