Repository navigation
[tests] Delay OpenAPI trimming tests - #69866
Conversation
|
Thanks for your PR, @mauroa. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
There was a problem hiding this comment.
🔵 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
93a6d16 to
7ecc173
Compare
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
✅ 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
|
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]