Skip to content

Skip CI entirely for API/ATS baseline-only PRs - #19939

Merged
Ankit Jain (radical) merged 5 commits into
mainfrom
copilot/update-ci-skip-patterns
Sep 14, 2026
Merged

Ankit Jain (radical) merged 5 commits into
mainfrom
copilot/update-ci-skip-patterns

Conversation

Copilot AI commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

PRs that touch only generated API baseline files still ran the full CI matrix even though nothing build- or test-relevant changed (e.g. #19938, #19936). Those baselines are generated release artifacts, so a baseline-only PR should skip CI entirely — while a PR that touches a baseline alongside real source must keep routing normally for the source file.

Skip gate

Added the generated baseline files to eng/github-ci/ci-skip-entirely-patterns.txt (the top-level CI skip gate):

src/*/api/*.cs
src/*/api/*.ats.txt
src/Components/*/api/*.cs
src/Components/*/api/*.ats.txt

These patterns match only the direct api/ child of a project directory. A recursive src/**/api/** glob was deliberately rejected: it also matches real starter-template sources such as src/Aspire.Cli/Templating/Templates/java-starter/api/, and it would swallow *.tscompat.suppression.txt — which is not a generated baseline and must stay visible to the typescript-api-compat route.

Selector map

  • Removed the src/Aspire.Hosting*/api/*.ats.txt path rule. The prefilter reads the same skip-patterns file, so baseline files are now dropped before either selector layer runs and the rule can never fire.
  • That rule was the only thing routing job:polyglot for most Aspire.Hosting.* integrations, so removing it would have silently dropped polyglot coverage for ordinary integration source changes. To preserve it, every project that owns a tests/PolyglotAppHosts/<project> fixture is now listed in the polyglot affected_project_rules entry. This is the correct home per the section's invariant — production-project triggers belong in affected_project_rules, not path_rules — and unlike a family-wide Aspire.Hosting* glob it does not pull in fixture-less projects such as Aspire.Hosting.Tasks and Aspire.Hosting.Analyzers.
  • Updated docs/ci/test-trigger-map.md to match.

Test coverage

tests/Infrastructure.Tests/TestTriggerMap/SelectTestsAcceptanceTests.cs gains assertions that fail if the routing regresses:

  • Root and nested-component baselines (src/*/api/, src/Components/*/api/) are prefiltered.
  • api/*.tscompat.suppression.txt is not prefiltered and still routes job:typescript-api-compat.
  • Starter-template sources under a Templates/.../api/ path are not prefiltered.
  • A hosting integration source change routes job:polyglot.
  • Baseline-only change selects nothing; baseline + real source in one PR still routes the source.

Verification

Behavior was confirmed by running the selector rather than reading the YAML:

Changed file Result
src/Components/Aspire.Azure.AI.Inference/api/Aspire.Azure.AI.Inference.cs prefiltered, 0 jobs
src/Aspire.Hosting/api/Aspire.Hosting.tscompat.suppression.txt routes job:typescript-api-compat
src/Aspire.Cli/Templating/Templates/java-starter/api/Foo.java not prefiltered, routes normally
src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs routes job:polyglot

dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-namespace "*.TestTriggerMap" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" — 218 passed, 0 failed.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
    • No

Copilot AI self-assigned this Sep 4, 2026
Copilot AI balanced review requested due to automatic review settings September 4, 2026 17:50

Copilot AI left a comment

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.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 4, 2026 18:00
Copilot AI changed the title [WIP] Update CI path filtering for generated API files Skip CI entirely for API/ATS baseline-only PRs Sep 4, 2026

Copilot AI left a comment

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.

🟡 Changes recommended

The glob mishandles suppression and component files, while removed routing leaves integration export changes without polyglot validation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread eng/github-ci/test-trigger-map.yml Resolved
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19939

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19939"

Copilot AI review requested due to automatic review settings September 4, 2026 18:46
@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from db6e7a9 to 76fd8db Compare September 4, 2026 18:46
@radical
Ankit Jain (radical) changed the base branch from main to radical-test-trigger-map-design September 4, 2026 18:46

Copilot AI left a comment

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.

🟡 Changes recommended

The skip glob also excludes real starter-template source files, and the new polyglot rule over-routes unrelated Hosting projects.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment thread eng/github-ci/test-trigger-map.yml Resolved
Comment thread docs/ci/test-trigger-map.md Resolved
@github-actions

This comment has been minimized.

Copilot AI review requested due to automatic review settings September 4, 2026 19:59
@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from f8f6d69 to e4acd5c Compare September 4, 2026 19:59
@github-actions

This comment has been minimized.

Copilot AI left a comment

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.

🟡 Changes recommended

The suppression-baseline regression test uses a nonexistent path and does not guard against an overbroad api/** skip pattern.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from fcf59e2 to 4514b20 Compare September 14, 2026 04:00
@github-actions

This comment has been minimized.

@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from 4514b20 to 24b36c6 Compare September 14, 2026 04:32
@github-actions

This comment has been minimized.

@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from 24b36c6 to 5c16b68 Compare September 14, 2026 15:37
@github-actions

This comment has been minimized.

@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from 5c16b68 to 8a12349 Compare September 14, 2026 16:37
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Base automatically changed from radical-test-trigger-map-design to main September 14, 2026 16:55
Copilot AI and others added 4 commits September 14, 2026 12:55
Keep real template sources and suppression baselines in CI while skipping generated API artifacts. Route hosting projects with polyglot fixtures through the job without over-matching unrelated projects.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78
Point the prefilter regression test at the actual api/*.tscompat.suppression.txt
location. This catches the overbroad api/** skip pattern that would hide the
TypeScript compatibility route.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 8c5beb4c-0641-4918-8b29-d53c83727a78
The API baseline skip globs matched every C# file under api/, including
compiled Dashboard services. Polyglot routing also omitted two packages
that checked-in fixtures restore.

Narrow C# baseline patterns to generated Aspire.* files, add the missing
fixture package consumers, and derive regression coverage from every
fixture directory and package configuration.

Co-authored-by: Copilot App <[email protected]>
@radical
Ankit Jain (radical) force-pushed the copilot/update-ci-skip-patterns branch from b5322c9 to fb4ca6d Compare September 14, 2026 16:55
@github-actions

This comment has been minimized.

The top-level skip gate used Git rename detection, which can report only
a baseline-shaped destination. Moving compiled source into that path
could therefore look like a baseline-only PR and skip all CI.

Disable rename detection so both sides are evaluated, pin the workflow
wiring, and protect the curated polyglot boundary with fixtureless
hosting-project regressions.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

Selects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching '.github/actions/check-changed-files/action.yml' selects ALL


Selection computed for commit dafc74e.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ CI Failure Analysis: Possible Flaky Test(s)

The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests.

Suspected flaky test(s):

  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationCreatesThePrincipalWithTheIdentityObjectIdAsItsSid in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
   at Docker.DotNet.DockerClient.MakeRequestForRawResponseAsync(HttpMethod method, String path, IQueryString queryString, IRequestContent body, IDictionary`2 headers, CancellationToken token) in /_/src/Docker.DotNet/DockerClient.cs:line 331
   at Docker.DotNet.Models.StreamUtil.MonitorResponseForMessagesAsync[T](Task`1 responseTask, DockerClient client, CancellationToken cancel, IProgress`1 progress) in /_/src/Docker.DotNet/Endpoints/StreamUtil.cs:line 80
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationHandlesPrincipalNamesRequiringEscaping in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationIsANoOpWhenTheScriptRunsAgain in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationReplacesThePrincipalWhenTheIdentityObjectIdChanges in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationLeavesPrincipalsItDidNotCreateIntact in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationRollsBackWhenTheUserCannotBeRecreated in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire.Hosting.Azure.Tests.AzureSqlPrincipalReconciliationTests.ReconciliationFailsWithoutDamageWhenThePrincipalOwnsASchema in job Tests / No-package tests (regular, Aspire.Hosting.Azure.Tests, Hosting.Azure, Hosting.Azure, tests/Aspire... / Hosting.Azure (ubuntu-latest)
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response) in /_/src/Docker.DotNet/DockerClient.cs:line 516
  • Why likely flaky: Fails due to external container registry connection refusal during Ryuk image pull, unrelated to any code changed by the PR.
  • Aspire dynamic debug configuration E2E "after each" hook for "re-resolves the selected AppHost by dynamic configuration name in duplicate-alias workspaces" in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Windows, dynamic-debug-configuration)
    • Error: Dynamic debug configuration E2E teardown failed.
  1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-8RnGGg\workspace.e2e-dynamic-debug\first'
  • Stack Trace (first frames):
AggregateError: Dynamic debug configuration E2E teardown failed.
1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-8RnGGg\workspace\.e2e-dynamic-debug\first'
    at runE2eTeardown (out\test-e2e\test-e2e\helpers\fixtures.js:217:15)
    at async Context.<anonymous> (out\test-e2e\test-e2e\dynamicDebugConfiguration.e2e.test.js:62:9)
  • Why likely flaky: Windows file-locking race condition (EBUSY) removing a temp workspace directory during test teardown, unrelated to PR changes and matching a previously tracked recurring cause.

Suggested actions:

  • Re-run the failed CI jobs to confirm if the failure is intermittent
  • If the test continues to fail, consider quarantining it using /quarantine-test <test name> <issue URL>
  • Search existing issues to see if this test is already known to be flaky

You can re-run the failed jobs from the workflow run page.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-engineering-systems infrastructure helix infra engineering repo stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants