runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Don't copy *-ms-win-* into non-windows test overlay

Open wtgodbe opened this issue 9 years ago • 14 comments

We shouldn't be copying these files into Core_Root for non-windows: see https://github.com/dotnet/coreclr/pull/9907/files#diff-e99015da4fdea5ed8c0b58186a5e4b70R396

wtgodbe avatar Mar 02 '17 20:03 wtgodbe

@weshaggard @mmitche this is happening because https://github.com/dotnet/coreclr/blob/master/tests/src/Common/test_runtime/project.json#L5-L7 are bringing in an old version of the CoreCLR package, which depends on the APISets package. Is it safe to remove those dependencies? Who might know?

wtgodbe avatar Apr 19 '17 22:04 wtgodbe

@russellhadley or @RussKeldorph Might know, since that's jit land

mmitche avatar Apr 19 '17 22:04 mmitche

Coincidentally, I believe @rartemev had a problem with these dependencies as well in his Unix test build PR. @russellhadley or @sbomer should be able to speak to whether they are necessary or if it's possible to simply upgrade their dependencies.

@dotnet/jit-contrib

RussKeldorph avatar Apr 20 '17 00:04 RussKeldorph

We'll want to create newer versions of those packages from the tip of jitutils eventually, but this needs to happen together with changes to the dasm jobs, because the command-line interface for jitutils has been changing.

The current packages are fairly standard tools targeting netcoreapp1.0. I don't understand why its dependencies would cause a problem on linux - are we restoring on windows and then copying over to the overlay for linux? Might the effort to build tests on linux (https://github.com/dotnet/coreclr/pull/10532) fix this?

sbomer avatar Apr 20 '17 18:04 sbomer

@sbomer Yes you are correct. This issue is due to the current workflow. Create windws overlay, copy most of it to a Linux overlay, then replace windows specific dll's with Linux ones....

sdmaclea avatar Apr 20 '17 18:04 sdmaclea

@wtgodbe This happened because we have required source of packages missed in tests\src\NuGet.config. You should add https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json there. For more details see https://github.com/dotnet/coreclr/pull/10532/files#diff-bc6eba596262c94bfe6c0d138549f8b3R9

rartemev avatar Apr 20 '17 19:04 rartemev

@rartemev, I think the problem you're referring to is a bit different from this, just a coincidence as @RussKeldorph said. The problem here isn't that restoring fails due to missing sources, but that some of the restored dlls that are windows-specific are getting copied to the overlay when they shouldn't be.

I'm not sure how exactly we use the overlay today, but to me it seems like the correct thing to do in general is to restore these packages for linux in the first place. @wtgodbe, is this an option? I assume that building tests on linux as per https://github.com/dotnet/coreclr/pull/10532 will do the right thing.

sbomer avatar Apr 20 '17 21:04 sbomer

@sbomer most likely Linux will be fine after https://github.com/dotnet/coreclr/pull/10532, but we actually don't want these binaries to appear in Core_Root on Windows, either - having https://github.com/dotnet/coreclr/blob/master/tests/src/Common/test_runtime/project.json#L5-L7 still puts us in a position where those binaries are appearing in Core_Root.

wtgodbe avatar Apr 20 '17 22:04 wtgodbe

Thanks @wtgodbe. Is there a more appropriate place to restore test runtime dependencies such as tools that the tests don't need to reference themselves? These jitutils are restored to be used in our dasm test legs. Also out of curiosity, what's the problem with having the ms-win binaries in core_root on windows? /cc @ramarag

sbomer avatar Apr 20 '17 22:04 sbomer

Having them there doesn't cause any test issues, but our tests no longer depend on them, so having them in Core_Root is unnecessary. It would probably be fine to add a new project.json inside of tests/src/Common for just these dependencies - @ramarag may have an opinion on this as well.

wtgodbe avatar Apr 20 '17 22:04 wtgodbe

@jashook ...in case this goes away with new Unix workflow.

RussKeldorph avatar Dec 01 '17 22:12 RussKeldorph

This is still an issue. This issue will be fixed when we switch our tests to build with arcade. Note that project.assets.json will most likely need to go away and we should add packagerefs in our test sdk projects.

jashook avatar Mar 15 '19 20:03 jashook

Aiming for post 3.0 for the test arcade port.

jashook avatar Mar 15 '19 20:03 jashook

This will die in the new repo.

jashook avatar Nov 22 '19 22:11 jashook