Skip to content

[tests] Delay OpenAPI trimming tests - #69866

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
mauroa:dev/maagno/delay-openapi-trimming-tests
Oct 27, 2026
Merged

wtgodbe merged 1 commit into
dotnet:mainfrom
mauroa:dev/maagno/delay-openapi-trimming-tests

Conversation

@mauroa

@mauroa mauroa commented Oct 16, 2026

Copy link
Copy Markdown

Delay OpenAPI trimming tests

Description

The focused src/OpenApi/build.cmd -test path failed because Microsoft.AspNetCore.OpenApi.TrimmingTests.proj was selected before the SignalR and WebSockets outputs it consumes were available.

The project evaluates RequiresDelayedBuild=true through eng/testing/linker/trimmingTests.props, but it was absent from eng/RequiresDelayedBuildProjects.props. Add it to the generated inventory so BuildAfterTargetingPack owns it and direct project selection skips it until the delayed dependencies are built.

Validation: ran eng/scripts/GenerateProjectList.ps1 twice; both passes succeeded with 0 warnings and 0 errors, and the second pass preserved the inventory hash. Confirmed MSBuild reports one RequiresDelayedBuild match and zero direct ProjectToBuild matches.

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

Copilot AI balanced review requested due to automatic review settings October 16, 2026 00:15
@mauroa
mauroa requested review from a team and wtgodbe as code owners October 16, 2026 00:15
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Oct 16, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 16, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @mauroa. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

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.

🔵 Needs a closer look

No concrete defect was identified, but the focused build-order behavior remains independently unverified.

0 open findings

What changed in this PR

Adds OpenAPI trimming tests to the delayed-build inventory so their dependencies build first.

Changes:

  • Registers the trimming test project for delayed build orchestration rather than direct project selection.
File Description
eng/​RequiresDelayedBuildProjects.props Adds OpenAPI trimming tests to the delayed-build list.

🧠 Review effort: Balanced


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

The focused src/OpenApi/build.cmd -test path failed because Microsoft.AspNetCore.OpenApi.TrimmingTests.proj was selected before the SignalR and WebSockets outputs it consumes were available.

The project evaluates RequiresDelayedBuild=true through eng/testing/linker/trimmingTests.props, but it was absent from eng/RequiresDelayedBuildProjects.props. Add it to the generated inventory so BuildAfterTargetingPack owns it and direct project selection skips it until the delayed dependencies are built.

Validation: ran eng/scripts/GenerateProjectList.ps1 twice; both passes succeeded with 0 warnings and 0 errors, and the second pass preserved the inventory hash. Confirmed MSBuild reports one RequiresDelayedBuild match and zero direct ProjectToBuild matches.

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

Copilot-Session: 301a4210-2a2a-4990-85be-53162d3e743a
@mauroa
mauroa force-pushed the dev/maagno/delay-openapi-trimming-tests branch from 93a6d16 to 7ecc173 Compare October 16, 2026 00:39
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@dotnet-policy-service dotnet-policy-service Bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Oct 23, 2026
@wtgodbe
wtgodbe merged commit 672ad66 into dotnet:main Oct 27, 2026
36 checks passed
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:24 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:25 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:27 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:29 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:30 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 27, 2026 19:31 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR is a build/test infrastructure change with no public or observable behavior impact.

Documentation surfaces considered

  • Conceptual article: Not required — Only eng/RequiresDelayedBuildProjects.props changed (build inventory for a trimming test project); no user-visible behavior.
  • Migration guidance: Not required — No upgrade action for users.
  • Breaking change: Not required — No compatibility impact.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 7ecc1735 Deployed Oct 27, 2026 by wtgodbe via conclusion #106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework community-contribution Indicates that the PR has been added by a community member pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants