Repository navigation
Skip CI entirely for API/ATS baseline-only PRs - #19939
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
🟡 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
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19939Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19939" |
db6e7a9 to
76fd8db
Compare
There was a problem hiding this comment.
🟡 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
This comment has been minimized.
This comment has been minimized.
f8f6d69 to
e4acd5c
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 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
fcf59e2 to
4514b20
Compare
This comment has been minimized.
This comment has been minimized.
4514b20 to
24b36c6
Compare
This comment has been minimized.
This comment has been minimized.
24b36c6 to
5c16b68
Compare
This comment has been minimized.
This comment has been minimized.
5c16b68 to
8a12349
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: radical <[email protected]>
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]>
b5322c9 to
fb4ca6d
Compare
This comment has been minimized.
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]>
Tests selectorSelects 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 |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
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):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
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):These patterns match only the direct
api/child of a project directory. A recursivesrc/**/api/**glob was deliberately rejected: it also matches real starter-template sources such assrc/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 thetypescript-api-compatroute.Selector map
src/Aspire.Hosting*/api/*.ats.txtpath 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.job:polyglotfor mostAspire.Hosting.*integrations, so removing it would have silently dropped polyglot coverage for ordinary integration source changes. To preserve it, every project that owns atests/PolyglotAppHosts/<project>fixture is now listed in the polyglotaffected_project_rulesentry. This is the correct home per the section's invariant — production-project triggers belong inaffected_project_rules, notpath_rules— and unlike a family-wideAspire.Hosting*glob it does not pull in fixture-less projects such asAspire.Hosting.TasksandAspire.Hosting.Analyzers.docs/ci/test-trigger-map.mdto match.Test coverage
tests/Infrastructure.Tests/TestTriggerMap/SelectTestsAcceptanceTests.csgains assertions that fail if the routing regresses:src/*/api/,src/Components/*/api/) are prefiltered.api/*.tscompat.suppression.txtis not prefiltered and still routesjob:typescript-api-compat.Templates/.../api/path are not prefiltered.job:polyglot.Verification
Behavior was confirmed by running the selector rather than reading the YAML:
src/Components/Aspire.Azure.AI.Inference/api/Aspire.Azure.AI.Inference.cssrc/Aspire.Hosting/api/Aspire.Hosting.tscompat.suppression.txtjob:typescript-api-compatsrc/Aspire.Cli/Templating/Templates/java-starter/api/Foo.javasrc/Aspire.Hosting.Redis/RedisBuilderExtensions.csjob:polyglotdotnet 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