Skip to content

#3127 storage symlink feature - #3128

Merged
forki merged 2 commits into
fsprojects:masterfrom
cboudereau:master
Mar 27, 2018
Merged

forki merged 2 commits into
fsprojects:masterfrom
cboudereau:master

Conversation

@cboudereau

Copy link
Copy Markdown

The impl is done
I have manually tested on mono + windows the behavior (paket local, restore, install and update) with and without the configuration / globally and on a specific package.

On a little project 5s before and 270ms after.

When you restore dotnet core packages and the nuget cache is full the restore phase is less a second instead of 20s.

I am building integration test.

@cboudereau

Copy link
Copy Markdown
Author

@forki I don't know why there was an error on the Travis ci build with mono. Could you help me ? The metaproj error is a little bit weird for me. Thanks!

Comment thread Paket.preview3.sln Outdated
VisualStudioVersion = 15.0.26730.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Paket.Core", "src/Paket.Core.preview3/Paket.Core.fsproj", "{779DA2DD-CEA0-4EC4-9DBD-2CF29C2269EA}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Paket.Core", "src\Paket.Core.preview3\Paket.Core.fsproj", "{779DA2DD-CEA0-4EC4-9DBD-2CF29C2269EA}"

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.

change \ back to / and travis will likely work again...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh thanks a lot! @matthid

@matthid matthid 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.

The changes look reasonable to me. Obviously we need a green CI but other than that it really looks more simple than what I would have expected...

Comment thread src/Paket.Core/Dependencies/NuGet.fs Outdated
if not isLocalOverride then

match isLocalOverride, configResolved with
| true, ResolvedPackagesFolder.NoPackagesFolder -> return failwithf "paket.local in combination with storage:none is not supported"

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.

Maybe we add to that message "use storage: symlink instead" ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

return! extractPackage caches package alternativeProjectRoot root localOverride source groupName v includeVersionInPath downloadLicense force
}

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.

maybe remove that whitespace

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

/// Downloads the given package into the nuget cache and read its runtime.json.
let getRuntimeGraphFromNugetCache root groupName (package:ResolvedPackage) =
let config = PackagesFolderGroupConfig.NoPackagesFolder
let getRuntimeGraphFromNugetCache root configO groupName (package:ResolvedPackage) =

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.

configO? Maybe just config?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

@matthid

matthid commented Mar 21, 2018

Copy link
Copy Markdown
Member

One could argue about starting external processes, but we already do that on other places as well.

@cboudereau
cboudereau force-pushed the master branch 2 times, most recently from 3c36f10 to d7ed41b Compare March 21, 2018 19:21
@cboudereau

Copy link
Copy Markdown
Author

Yeah about external process I agree but dotnet core API are not yet ready due to case clash between claimed and FileInfo/DirectoryInfo (https://github.com/dotnet/corefx/issues/25569). So I reuse the external tools to preserve OS dependent behavior.

@cboudereau cboudereau changed the title [WIP] #3127 storage symlink feature #3127 storage symlink feature Mar 21, 2018
@cboudereau

cboudereau commented Mar 21, 2018 •

Copy link
Copy Markdown
Author

@matthid I have fixed the last failing test. There is some well known tests failing on AppVeyor (as I understand according to previous merged). Is it ok for you ? Thanks in advance for your help! I appreciated it

@cboudereau

Copy link
Copy Markdown
Author

Hello @matthid, do you think that the checks are done (even if there is well known failing tests ? I am currently investigating why those tests failed)

@matthid

matthid commented Mar 22, 2018

Copy link
Copy Markdown
Member

@forki is this ready? is the test failure related?

@cboudereau

Copy link
Copy Markdown
Author

Here is the diagnostic :

" Lowercase package names in package cache: old csproj, packages folder enabled" is failing due to FSharp.Core binding redirects (4.4.1 -> 4.4.3) of the FakeLib.dll logger. By disabling logger the test works fine (Fake.MSBuildHelper.MSBuildLoggers <- [] //There is a fsharp.core binding redirect issue on the FakeLib.dll logger)

"#2335 should install deps from different groups when using conditions" : this one failed due to new framework versions.

"#2294 pin NETStandard.Library = 1.6.0 Strategy Workaround" : paket timeout after 7mn
"2294 Cannot pin NETStandard.Library = 1.6.0" : paket timeout after 7mn

I am running with a timeout infinite the #2294 but test are still running for 20mn.

If I compare the build tests between mine and the last merged, tests are on the same status.
https://ci.appveyor.com/project/paket/paket/build/0.0.1.347

I am adding a new commit to fix 2 tests.

@cboudereau

Copy link
Copy Markdown
Author

@matthid by fixing those 2 tests (not flaky), all CI are done. @forki could you check if all is ok please ?

Thank a lots for your help!

@forki

forki commented Mar 27, 2018

Copy link
Copy Markdown
Member

I wonder if we can make that the default eventually?

@thinkbeforecoding

Copy link
Copy Markdown
Contributor

Probably. Let's make it opt-in for now, and make it default later when we are sure there are no problematic edge cases.

@forki
forki merged commit 7c62fa0 into fsprojects:master Mar 27, 2018
@forki

forki commented Mar 27, 2018

Copy link
Copy Markdown
Member

I get:

image

@cboudereau

Copy link
Copy Markdown
Author

Which OS/Environment ? (as I understand it is a permission issue). We are currently running it on windows without highest privilege. Same on bash ubuntu for windows.

@forki

forki commented Mar 27, 2018

Copy link
Copy Markdown
Member

running on windows in non-admin terminal

@cboudereau

Copy link
Copy Markdown
Author

Have you checked policies around mklink : Local Policies\User Rights Assignment\Create symbolic links ??

@matthid

matthid commented Mar 27, 2018

Copy link
Copy Markdown
Member

So no default for now ;)

@matthid

matthid commented Mar 27, 2018

Copy link
Copy Markdown
Member

But it is probably fine as it is. I don't think it will get any better than this.

@thinkbeforecoding

Copy link
Copy Markdown
Contributor

Are you sure there's not some process locking the dll ?

@thinkbeforecoding

Copy link
Copy Markdown
Contributor

We reproduce the problem on our CI server on a build.. checking what's happening.

@cboudereau

cboudereau commented Mar 27, 2018 via email

Copy link
Copy Markdown
Author

@forki

forki commented Mar 27, 2018

Copy link
Copy Markdown
Member

@cboudereau can you please send a PR to the docs with details? also a error message that points to the docs would be nice

@cboudereau

cboudereau commented Mar 27, 2018 via email

Copy link
Copy Markdown
Author

@cboudereau

Copy link
Copy Markdown
Author

done #3134

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