Skip to content

[Research – do not merge] CI 10% probe: DE-app-only change - #14632

Closed
Don Syme (dsyme) wants to merge 5 commits into
microsoft:mainfrom
dsyme:research/ci-10pct-de
Closed

Don Syme (dsyme) wants to merge 5 commits into
microsoft:mainfrom
dsyme:research/ci-10pct-de

Conversation

@dsyme

Copy link
Copy Markdown
Contributor

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

Don Syme (dsyme) and others added 5 commits November 26, 2026 18:25
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>
@github-actions github-actions Bot added Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files From Fork Pull request is coming from a fork labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the Team: SCM GitHub request for SCM area label Nov 26, 2026
@dsyme
Don Syme (dsyme) marked this pull request as ready for review November 26, 2026 18:39
@dsyme
Don Syme (dsyme) requested a review from a team November 26, 2026 18:39

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$\textbf{🟡\ Medium\ Severity\ —\ Agent}$

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

@dsyme

Copy link
Copy Markdown
Contributor Author

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.

This branch was successfully deployed

1 active deployment
triage — 12e53966 Deployed Nov 26, 2026 by dsyme via Classify team ownership #12245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files From Fork Pull request is coming from a fork Team: SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants