| Age | Commit message (Collapse) | Author |
|
The previous single-job approach with a 4-shard matrix caused PRs to
spin up 4 identical runners all building the same changed files.
Split into two jobs:
- analyze-pr: runs only on pull_request, single runner, builds changed
samples via Build-ChangedSamples.ps1. No shard matrix overhead.
- analyze: runs on push/schedule, 4-shard matrix, each shard builds its
slice of all samples. Also drops the now-unnecessary 'get-changed-files'
step from the push path.
Co-authored-by: Copilot <[email protected]>
|
|
GitHub Actions expressions don't support arithmetic operators so
'matrix.shard + 1' was invalid. Switch the matrix to [1, 2, 3, 4]
so the job name, step name, and log output all read '1 of 4' through
'4 of 4'. The PowerShell script subtracts 1 locally for the 0-based
slice math.
Co-authored-by: Copilot <[email protected]>
|
|
- Job name and step name now show '1 of 4' through '4 of 4' (shard+1)
instead of '0' through '3 of 4' which looked like an off-by-one bug
- Move build-mode back into the matrix (was there before sharding) so it
remains explicit and consistent with the original workflow structure
Co-authored-by: Copilot <[email protected]>
|
|
Co-authored-by: Copilot <[email protected]>
|
|
Split samples alphabetically into 4 equal shards using ListAllSamples.ps1
and run each on a separate machine in parallel. ThrottleLimit stays 1 per
shard for accurate CodeQL tracing. Each shard uploads SARIF with a
distinct category (shard-0..shard-3) so results merge in the Security tab.
On PRs the existing Build-ChangedSamples behavior is preserved (no sharding
needed since only changed files are built).
Co-authored-by: Copilot <[email protected]>
|
|
ci: update Code-Scanning workflow to use Build-Samples.ps1
|
|
|
|
Build-AllSamples.ps1 was removed in favor of Build-Samples.ps1.
Co-authored-by: Copilot <[email protected]>
|
|
Consolidate build scripts into a single Build-Samples.ps1
|
|
user/jvalesmena/new-build-samples
# Conflicts:
# Build-AllSamples.ps1
# Build-SampleSet.ps1
|
|
|
|
- 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
|
|
- 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
|
|
Build-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
|
|
|
|
- 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 <[email protected]>
|
|
|
|
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 <[email protected]>
|
|
|
|
samples.txt
|
|
- 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 <[email protected]>
|
|
FI main to develop
|
|
Fix RCE vulnerability in workflow using environment variables
|
|
5an7y-Microsoft/copilot/fix-rce-vulnerability-in-workflow
Fix RCE in tag-codeowner-on-issue workflow via environment variables
|
|
interpolation
Co-authored-by: 5an7y-Microsoft <[email protected]>
|
|
|
|
Making INF verifier and option to the build all samples PS script
|
|
|
|
Disable tag-codeowner-on-issue workflow
|
|
Added 'if: false' to the job to prevent it from running while preserving the code.
Co-authored-by: Copilot <[email protected]>
|
|
New SDCAVAD sample
|
|
update Script to be compatible with vs2026
|
|
removed the space after newline which seems to be bug in c++ 23 not in samples
Co-authored-by: Prashant Chahar <[email protected]>
|
|
|
|
removed the space after newline which seems to be a bug in c++ 23
|
|
|
|
|
|
disable schedule and deleted the closing issue part
|
|
|
|
reversing the PAT_TOKEN and dry-run change
|
|
|
|
use PAT_TOKEN and add dry-run for testing purpose.
|
|
|
|
Increase operations-per-run to 400 and the stale threshold
|
|
|
|
adding workflow to bulk cleanup stale issues older than 1 year
|
|
simbatt: Clear BATTERY_CAPACITY_RELATIVE field for per-battery charge display
|
|
[simbatt] Remove dead code in simbattdriverif.h
|
|
[simbatt] Delete redundant "batclass_prepublish.h" to simplify
|
|
New issues template based on sample.
|