diff options
| author | zlockard <[email protected]> | 2024-01-31 13:45:54 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-31 13:45:54 -0800 |
| commit | 24f280dc4a700f00f5fbb8f13815b941620adb8e (patch) | |
| tree | 63243812757e456aadf9fb4cbf07277b1d22eccf /Build-SampleSet.ps1 | |
| parent | c657bc76ca6cf64660e12efe2d07a100055d98c0 (diff) | |
Fixes for sample build errors and updates to the execution script to use new build flags (#1078)
* Fixes for sample build errors
* Fix additional sample
* Add additional sample
* Updated comments in Build-Sample.ps1
* Adjusting exclusions.csv to be accurate for GE. Still issues for NI that we need to understand better
* Merge from develop branch
* Merge from develop branch
* Merge from develop branch
* Delete WPD samples
* Separate infverif additional options for old vs new WDK
* Delete WPD samples entry in our CODEOWNERS file
* Fix spelling error
* For 22621 WDK Remove the /samples flag
---------
Co-authored-by: Zac Lockard <[email protected]>
Co-authored-by: Jakob Lichtenberg (170957) <[email protected]>
Diffstat (limited to 'Build-SampleSet.ps1')
| -rw-r--r-- | Build-SampleSet.ps1 | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1 index 535ac6db..2f812e58 100644 --- a/Build-SampleSet.ps1 +++ b/Build-SampleSet.ps1 @@ -83,6 +83,23 @@ else { } # +# InfVerif_AdditionalOptions +# +# Samples must build cleanly and even without warnings. +# +# An exception is for infverif where specific warnings are acceptable. Those +# specific warnings indicates issues intentially present in the samples, that +# anyone that clones the samples must fix as part of productizing a driver. +# +# In 22621 those warnings are: /sw1284 /sw1285 /sw1293 /sw2083 /sw2086 +# +# After 22621 those warnings are put under a common flag: /samples +# +# Additionally after 22621 we have to temporarily suppress /sw1402 due to one specific sample "biometrics". +# +$InfVerif_AdditionalOptions=($build_number -le 22621 ? "/sw1284 /sw1285 /sw1293 /sw2083 /sw2086" : "/samples /sw1402") + +# # Determine exclusions. # # Exclusions are loaded from .\exclusions.csv. @@ -127,17 +144,18 @@ $jresult = @{ $SolutionsTotal = $sampleSet.Count * $Configurations.Count * $Platforms.Count -Write-Output ("Build Environment: " + $build_environment) -Write-Output ("Build Number: " + $build_number) -Write-Output ("Samples: " + $sampleSet.Count) -Write-Output ("Configurations: " + $Configurations.Count + " (" + $Configurations + ")") -Write-Output ("Platforms: " + $Platforms.Count + " (" + $Platforms + ")") -Write-Output "Combinations: $SolutionsTotal" -Write-Output "LogicalProcessors: $LogicalProcessors" -Write-Output "ThrottleFactor: $ThrottleFactor" -Write-Output "ThrottleLimit: $ThrottleLimit" -Write-Output "WDS_WipeOutputs: $env:WDS_WipeOutputs" -Write-Output ("Disk Remaining (GB): " + (((Get-Volume ($DriveLetter = (Get-Item ".").PSDrive.Name)).SizeRemaining / 1GB))) +Write-Output ("Build Environment: " + $build_environment) +Write-Output ("Build Number: " + $build_number) +Write-Output ("Samples: " + $sampleSet.Count) +Write-Output ("Configurations: " + $Configurations.Count + " (" + $Configurations + ")") +Write-Output ("Platforms: " + $Platforms.Count + " (" + $Platforms + ")") +Write-Output "InfVerif_AdditionalOptions: $InfVerif_AdditionalOptions" +Write-Output "Combinations: $SolutionsTotal" +Write-Output "LogicalProcessors: $LogicalProcessors" +Write-Output "ThrottleFactor: $ThrottleFactor" +Write-Output "ThrottleLimit: $ThrottleLimit" +Write-Output "WDS_WipeOutputs: $env:WDS_WipeOutputs" +Write-Output ("Disk Remaining (GB): " + (((Get-Volume ($DriveLetter = (Get-Item ".").PSDrive.Name)).SizeRemaining / 1GB))) Write-Output "" Write-Output "T: Combinations" Write-Output "B: Built" @@ -161,6 +179,7 @@ $SampleSet.GetEnumerator() | ForEach-Object -ThrottleLimit $ThrottleLimit -Paral $exclusionReasons = $using:exclusionReasons $Configurations = $using:Configurations $Platforms = $using:Platforms + $InfVerif_AdditionalOptions = $using:InfVerif_AdditionalOptions $Verbose = $using:Verbose $sampleName = $_.Key @@ -185,7 +204,7 @@ $SampleSet.GetEnumerator() | ForEach-Object -ThrottleLimit $ThrottleLimit -Paral $thisresult = "Excluded" } else { - .\Build-Sample -Directory $directory -SampleName $sampleName -LogFilesDirectory $LogFilesDirectory -Configuration $configuration -Platform $platform -Verbose:$Verbose + .\Build-Sample -Directory $directory -SampleName $sampleName -LogFilesDirectory $LogFilesDirectory -Configuration $configuration -Platform $platform -InfVerif_AdditionalOptions $InfVerif_AdditionalOptions -Verbose:$Verbose if ($LASTEXITCODE -eq 0) { $thissucceeded += 1 $thisresult = "Succeeded" |
