Skip to content

GenerateResources incrementality for netcore - #1251

Merged
rainersigwald merged 3 commits into
dotnet:xplatfrom
rainersigwald:generateresources-incremental-netcore
Oct 27, 2016
Merged

rainersigwald merged 3 commits into
dotnet:xplatfrom
rainersigwald:generateresources-incremental-netcore

Conversation

@rainersigwald

Copy link
Copy Markdown
Member

Closes #1197.

This implementation is sufficient for current .NET Core--see #1247 for
details. If we start supporting linked resources, this will produce false
up-to-date results and must be changed.

cc @danmosemsft @eerhardt

Closes dotnet#1197.

This implementation is sufficient for current .NET Core--see dotnet#1247 for
details. If we start supporting linked resources, this will produce false
up-to-date results and must be changed.
@danmoseley

Copy link
Copy Markdown

LGTM thanks @rainersigwald . How do we get the dotnet/buildtools updated (which I guess updates the msbuild for dotnet/coreclr and dotnet/corefx)

@danmoseley

Copy link
Copy Markdown

:shipit:

@rainersigwald

Copy link
Copy Markdown
Member Author

Confirmed that this fixes the scenario from dotnet/sdk#284 (on Windows). I'll look at the OS X failure shortly.

@danmosemsft To get this through to corefx/coreclr, we'll need to a) update buildtools and b) update the version reference in those repos. Unfortunately the current MSBuild version is pretty stale so part a) may be nontrivial. @joperezr has done those steps in the past.

@joperezr

Copy link
Copy Markdown
Member

Once you have this change in a package, I'm happy to help getting it into buildtools and then to corefx/coreclr.

This was failing but the catch-any-exception clause was preventing that
from failing tests. Disabling it for .NET Core like the other round-trip
tests.
@rainersigwald
rainersigwald force-pushed the generateresources-incremental-netcore branch from 3ea45a0 to b48b814 Compare October 26, 2016 17:36
@rainersigwald

Copy link
Copy Markdown
Member Author

@dotnet-bot test OSX Build for CoreCLR please

(checking for stability since there's a race condition in a lot of the incrementality tests on HFS+)

@danmoseley

Copy link
Copy Markdown

@rainersigwald perhaps consider using #ifdef or XUnit attributes if possible so that the increased timeout is only for OSX. Otherwise all runs slow down unnecessarily.

HFS+ timestamps have 1 second granularity, so any up-to-date test on live
files on OS X must sleep for more than one second between file updates to
ensure different timestamps.
@rainersigwald
rainersigwald force-pushed the generateresources-incremental-netcore branch from b48b814 to 2642ba4 Compare October 26, 2016 23:46
@rainersigwald

Copy link
Copy Markdown
Member Author

@danmosemsft Good point. Made it conditional on OS.

@rainersigwald
rainersigwald merged commit 626c255 into dotnet:xplat Oct 27, 2016
@rainersigwald
rainersigwald deleted the generateresources-incremental-netcore branch October 27, 2016 00:08
@rainersigwald

Copy link
Copy Markdown
Member Author

@joperezr MSBuild packages versioned 15.1.0-preview-000358-00 should have this change. Ping me if there's trouble and we'll work through it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants