Skip to content

Fix CoreLib fast up-to-date check - #69240

Merged
ViktorHofer merged 7 commits into
dotnet:mainfrom
ViktorHofer:FixCoreLibFastUpToDateCheck
May 12, 2022
Merged

ViktorHofer merged 7 commits into
dotnet:mainfrom
ViktorHofer:FixCoreLibFastUpToDateCheck

Conversation

@ViktorHofer

Copy link
Copy Markdown
Member

Fixes #68698

CoreLib's fast up-to-date check was broken because the output pdb was
moved into a different folder. Changing this to use a copy task instead
and consolidate the two targets into one.

I couldn't find a publicly exposed property that allows to change the
pdb's output path, hence I decided to copy.

Fixes dotnet#68698

CoreLib's fast up-to-date check was broken because the output pdb was
moved into a different folder. Changing this to use a copy task instead
and consolidate the two targets into one.

I couldn't find a publicly exposed property that allows to change the
pdb's output path, hence I decided to copy.
@ViktorHofer ViktorHofer added the area-Infrastructure-coreclr Only use for closed issues label May 12, 2022
@ViktorHofer
ViktorHofer requested a review from agocke May 12, 2022 11:22
@ViktorHofer ViktorHofer self-assigned this May 12, 2022
@ghost

ghost commented May 12, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #68698

CoreLib's fast up-to-date check was broken because the output pdb was
moved into a different folder. Changing this to use a copy task instead
and consolidate the two targets into one.

I couldn't find a publicly exposed property that allows to change the
pdb's output path, hence I decided to copy.

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure-coreclr

Milestone: -

</PropertyGroup>

</Project> No newline at end of file
</Project>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Please just ignore this change. I originally had a change in that file and then reverted it in the GH UI. Don't want to spin another build for this...

Inputs="@(_DebugSymbolToMove)"
Outputs="@(_DebugSymbolToMove->Metadata('Destination'))"
Condition="'$(_DebugSymbolsProduced)' == 'true'">
<Copy SourceFiles="@(_DebugSymbolToMove)"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any particular reason we're avoiding SkipUnchangedFiles?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That setting isn't useful when you leverage Target Inputs and Outputs. The documentation actually warns on using it: https://docs.microsoft.com/en-us/visualstudio/msbuild/copy-task?view=vs-2022.

@agocke agocke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM aside from small comment

@ViktorHofer

Copy link
Copy Markdown
Member Author

The two test failures are known and got already disabled. I pinged @jakobbotsch offline regarding the msbuild failure as I'm unsure if it's a known issue.

@ViktorHofer
ViktorHofer merged commit c96b440 into dotnet:main May 12, 2022
@ViktorHofer
ViktorHofer deleted the FixCoreLibFastUpToDateCheck branch May 12, 2022 19:56
Condition="'%(_AllPdbs.FolderName)' == 'aotsdk'" />

AfterTargets="CopyFilesToOutputDirectory"
DependsOnTargets="_CheckForCompileOutputs"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any non-internal target that we can hang off of? Like this target is implied by CopyFilesToOutputDirectory. Is the AfterTargets here not enough?


<!-- Force System.Private.CoreLib.dll into a special IL output directory -->
<OutputPath>$(RuntimeBinDir)/IL/</OutputPath>
<OutputPath>$(RuntimeBinDir)IL\</OutputPath>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we usually normalize or use linux path separators?

@ghost ghost locked as resolved and limited conversation to collaborators Jun 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Private.CoreLib's fast up-to-date check is broken

3 participants