Skip to content

RI Develop to Main#1365

Merged
5an7y-Microsoft merged 29 commits intomainfrom
develop
Mar 31, 2026
Merged

RI Develop to Main#1365
5an7y-Microsoft merged 29 commits intomainfrom
develop

Conversation

@5an7y-Microsoft
Copy link
Copy Markdown
Contributor

No description provided.

forderud and others added 29 commits August 21, 2024 12:14
This define isn't used anywhere in the driver. Therefore proposing to remove it to clean up.
Clear BATTERY_INFORMATION::BATTERY_CAPACITY_RELATIVE field to enable per-battery charge display in Windows Settings.
The contained BATTERY_MINIPORT_INFO_V1_1 struct and BATTERY_CLASS_MINOR_VERSION_1 define are already defined in <batclass.h>, so there shouldn't be a need for duplicating the definitions here.
FI: Main -> Develop WDK 6584 (Shadow commit)
[simbatt] Delete redundant "batclass_prepublish.h" to simplify
[simbatt] Remove dead code in simbattdriverif.h
simbatt: Clear BATTERY_CAPACITY_RELATIVE field for per-battery charge display
#1347)

removed the space after newline which seems to be bug in c++ 23 not in samples

Co-authored-by: Prashant Chahar <pchahar@microsoft.com>
- ListAllSamples.ps1: Enumerates .sln files and writes Samples.txt
- Build-Samples.ps1: Unified build script reading Samples.txt with
  exclusion support, parallel execution, and report generation
- Build-Sample.ps1: Fix retry bug where all-fail exits 0 instead of 1

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Build-Samples.ps1:
- Extract helper functions for readability (Resolve-BuildEnvironment,
  Import-SampleExclusions, Initialize-DevShell, Assert-MsBuildAvailable,
  Get-DiskFreeGB)
- Add #Requires -Version 7.0
- Fix build_number to explicit [int] cast (was string from regex)
- Fix multi-socket CPU handling (sum LogicalProcessors)
- Fix NuGet path detection to use absolute repo root path
- Support wildcard patterns in exclusion paths (-like vs ContainsKey)
- Guard Invoke-Item for CI/automation (skip in non-interactive sessions)
- Validate sample directories exist before building
- Wrap Get-Volume in try/catch for UNC/network drives
- Use Write-Host with carriage return for progress (Write-Progress
  unreliable in -Parallel runspaces)
- Clean up variable names and add section comments
- Use switch instead of if/elseif for exit codes

ListAllSamples.ps1:
- Fix NuGet packages filter regex to catch packages anywhere in path
  (was only matching paths starting with packages)

Samples.txt:
- Regenerated with fixed filter, remove BOM

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- ListAllSamples.ps1: output sorted sample names to stdout instead of
  writing Samples.txt. The file output is replaced with Write-Output
  so callers can capture results via pipeline or command substitution.
- Build-Samples.ps1: remove SampleListPath parameter. Default discovery
  now calls ListAllSamples.ps1 at runtime and consumes its stdout.
  Explicit -Samples array still works and is sorted alphabetically.
  Both paths guarantee a consistent alphabetical sample ordering.
- Samples.txt: deleted. No longer needed as a pre-generated artifact.

WDS_TestPass.cs is unaffected - it only passes -LogFilesDirectory and
-InfOptions, neither of which changed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-Samples.ps1

- Delete Build-AllSamples.ps1 and Build-SampleSet.ps1 (replaced by Build-Samples.ps1)
- Update ci.yml workflow to call Build-Samples.ps1
- Update Build-ChangedSamples.ps1 to call Build-Samples.ps1
- Rewrite Building-Locally.md Step 6 with new script usage and output format
- Update Step 7 NuGet notes to reference Build-Samples.ps1
- Inline Build-Sample.ps1 logic as Build-SingleSample function in Build-Samples.ps1
- Pass function definition into parallel runspaces via $using: pattern
- Replace exit codes with return values for in-process execution
- Delete Build-Sample.ps1 (no longer needed as a separate script)
- Update Build-ChangedSamples.ps1 trigger file list
- When -Samples contains wildcards (* or ?), discover all samples first
  then filter with -like (same pattern style as exclusions.csv)
- Exact sample names still work as before without discovery overhead
- Update parameter docs, examples, and Building-Locally.md
…w-build-samples

# Conflicts:
#	Build-AllSamples.ps1
#	Build-SampleSet.ps1
…ples

Consolidate build scripts into a single Build-Samples.ps1
Build-AllSamples.ps1 was removed in favor of Build-Samples.ps1.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ci: update Code-Scanning workflow to use Build-Samples.ps1
@5an7y-Microsoft 5an7y-Microsoft marked this pull request as ready for review March 31, 2026 23:13
@5an7y-Microsoft 5an7y-Microsoft requested review from a team as code owners March 31, 2026 23:13
@5an7y-Microsoft 5an7y-Microsoft merged commit 7652eb7 into main Mar 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants