Repository navigation
[Research – do not merge] CI 10% probe: DE-app-only change - #14632
Don Syme (dsyme) wants to merge 5 commits into
Conversation
Re-wires the BuildOptimization test selection (microsoft#7392) that was dropped when test projects moved to Invoke-PerProjectTestRun, and computes PR changes from the PR merge commit so base-branch changes missing from a stale PR branch are no longer treated as PR changes. Non-PR events still run every test app. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Same tree as microsoft#14631 head 478ea1c.
|
Could not find linked issues in the pull request description. Please make sure the pull request description contains a line that contains 'Fixes #' followed by the issue number being fixed. Use that pattern for every issue you want to link. |
|
|
||
| Context "Select-TestAppsToRun" { | ||
| BeforeAll { | ||
| $selectCache = Join-Path ([System.IO.Path]::GetTempPath()) "BuildOptimization_Select_$([System.Guid]::NewGuid()).json" |
| Describe "PullRequestBuildScope" { | ||
| BeforeAll { | ||
| Import-Module "$PSScriptRoot\..\PullRequestBuildScope.psm1" -Force | ||
| $countries = @('AT', 'AU', 'CA', 'CH', 'CZ', 'DE', 'FR', 'MX', 'NZ', 'US') |
|
|
||
| Context "Get-PullRequestTestBuildModes" { | ||
| BeforeAll { | ||
| $modes = @('IntegrationTests', 'UncategorizedTests', 'LegacyTestsBucket1', 'LegacyTestsBucket2') |
| '{ "LegacyTests-Bucket1": [ "Tests-ERM" ] }' | Set-Content (Join-Path $root 'build/scripts/TestConfiguration.json') | ||
|
|
||
| $eventFile = Join-Path $root 'event.json' | ||
| $saved = @($env:GITHUB_EVENT_NAME, $env:GITHUB_EVENT_PATH, $env:GITHUB_STEP_SUMMARY) |
|
|
||
| $files = @(& git -c core.quotePath=false diff --name-only $parents[0] HEAD -- 2>$null) | ||
| if ($LASTEXITCODE -ne 0 -or $files.Count -eq 0) { return $null } | ||
| # RESEARCH ONLY (do not merge): hide the CI stack's own files so probe changes measure a single PR class |
There was a problem hiding this comment.
The committed research-only filter removes build/* and .github/* changes from the shared pull-request change set before country selection and fullBuildPatterns evaluation. In a mixed infrastructure/app PR such as this one, the infrastructure changes are therefore invisible, so the build omits the intended sentinel country and affected-test analysis does not force the full test run. Remove the research filter and its ResearchIgnorePaths.txt file so all changed files reach the production scoping safeguards.
👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v10.0.7
|
Closing without merging: the DE app probe completed successfully (run 45877710904). It selected W1 + DE, with both legacy test buckets omitted, and used 290.1 GitHub-hosted job-min (779.9 across all runners). This is one research run, not a daily savings estimate. Results and follow-up are tracked in #14597. |
Research only. Do not merge. I'll close it once the run is measured.
Same stack as #14606 (#14630 + #14631, plus the research-only change-classification commit), with one probe commit: DE-app-only change (
src/Apps/DE/IntrastatDE).Measures job-min per Pull Request Build run for this PR type, for the 10% ledger on #14597. Results go on #14606.
Related to #14597