Skip to content

fix: windows core count from powershell#2108

Open
maxnbk wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
maxnbk:fix/windows-core-count-from-powershell
Open

fix: windows core count from powershell#2108
maxnbk wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
maxnbk:fix/windows-core-count-from-powershell

Conversation

@maxnbk
Copy link
Copy Markdown
Contributor

@maxnbk maxnbk commented May 15, 2026

Closes #2029 .

Explanation:

wmic was removed as a default install in Windows 11 24H2, causing rez to fail at startup when physical core count is computed.

Fix:

Replace it with a PowerShell/Get-CimInstance equivalent - powershell.exe (Windows PowerShell 5.1) ships with all Windows 10/11 installs and is guaranteed available. The old wmic path is retained as a fallback for older Windows builds.

Disclosure:

This PR was AI-assisted with Claude Code, Sonnet 4.6, primarily for diagnostics, logic-tracing, documentation and edge-case verification.

maxnbk added 2 commits May 15, 2026 07:01
…th wmic fallback

Signed-off-by: Stephen Mackenzie <maxnbk@users.noreply.github.com>
Signed-off-by: Stephen Mackenzie <maxnbk@users.noreply.github.com>
@maxnbk maxnbk requested a review from a team as a code owner May 15, 2026 11:04
@maxnbk maxnbk added the devdays26 ASWF Dev Days 2026 label May 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.69%. Comparing base (d415b96) to head (f92b52e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2108      +/-   ##
==========================================
+ Coverage   60.65%   60.69%   +0.04%     
==========================================
  Files         164      164              
  Lines       20584    20598      +14     
  Branches     3579     3580       +1     
==========================================
+ Hits        12485    12502      +17     
+ Misses       7224     7220       -4     
- Partials      875      876       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devdays26 ASWF Dev Days 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows 11 - Missing wmic blocks rez from working

1 participant