Skip to content

Conversation

jkoritzinsky
Copy link
Member

Fixes failures in runtime-coreclr crossgen2 pipeline and fixes TestReadyToRun=true builds.

@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 22:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes crossgen2-related build failures by standardizing the use of Crossgen2InBuildDir instead of Crossgen2Dir for locating the crossgen2 tool. The change ensures that tests and builds consistently use the in-build crossgen2 location rather than a published directory that may not exist during certain build scenarios.

Key changes:

  • Removes redundant Crossgen2Dir property definitions
  • Updates targeting pack resolution to use Crossgen2InBuildDir
  • Standardizes crossgen2 location references across build files

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/tests/Common/Directory.Build.targets Removes empty Crossgen2Dir property definition that was overriding the conditional one
eng/targetingpacks.targets Updates crossgen2 pack resolution to use Crossgen2InBuildDir instead of Crossgen2Dir
eng/liveBuilds.targets Removes Crossgen2Dir property definition, keeping only Crossgen2InBuildDir

@jkoritzinsky jkoritzinsky requested a review from agocke October 13, 2025 22:33
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 13, 2025
@jkoritzinsky jkoritzinsky added area-crossgen2-coreclr test-bug Problem in test source code (most likely) and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 13, 2025
@jkoritzinsky
Copy link
Member Author

/azp run runtime-coreclr crossgen2

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkoritzinsky jkoritzinsky merged commit ce717ac into dotnet:main Oct 14, 2025
154 of 156 checks passed
@jkoritzinsky jkoritzinsky deleted the testr2r-fix branch October 14, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-crossgen2-coreclr test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants