Skip to content

Fixes #2390 - #2454

Merged
forki merged 4 commits into
masterfrom
fix_2390
Jul 16, 2017
Merged

forki merged 4 commits into
masterfrom
fix_2390

Conversation

@matthid

@matthid matthid commented Jun 21, 2017 •

Copy link
Copy Markdown
Member

@matthid matthid changed the title fixes #2390 WIP: fixes #2390 Jun 21, 2017
@matthid

matthid commented Jun 21, 2017

Copy link
Copy Markdown
Member Author

This is harder than I thought... Problem is that the xml files actually improved the results. They were ignored by the compiler and allowed the installmodel to consider empty folders... We need to consider empty folders in the installmodel.

@matthid

matthid commented Jul 9, 2017

Copy link
Copy Markdown
Member Author

One more thing I noticed: When we add System.Net.Http and compile for net45 the framework reference is missing

@forki forki closed this Jul 12, 2017
@forki forki reopened this Jul 12, 2017
@matthid matthid changed the title WIP: fixes #2390 Fixes #2390 Jul 15, 2017
@matthid

matthid commented Jul 15, 2017

Copy link
Copy Markdown
Member Author

I don't think it is related to this PR, but I can reproduce locally as well:

4) Error : Paket.IntegrationTests.UpdatePackageSpecs.#1432 update doesn't throw Stackoverflow
System.Exception : Paket failed with:
-> There was a version conflict during package resolution.
     Resolved packages:
      - Paket.Test.B 1.0.0
      - Paket.Test.C 1.0.0-prerelease
      - Paket.Test.D 1.0.0-prerelease
     Conflict detected:
      - Paket.Test.B 1.0.0 requested package Paket.Test.A: >= 0 (no prereleases)
      - Paket.Test.C 1.0.0-prerelease requested package Paket.Test.A: >= 0.0.0-prerelease

Probably related to the latest prerelease changes. I have no idea why it doesn't fail on AppVeyor.
@forki Do you see this failure when you run the integration test locally? With this PR or on master?

@0x53A

0x53A commented Jul 15, 2017

Copy link
Copy Markdown
Contributor

I'm not forki, but have also seen a weird behaviour wrt to the tests and prereleases.

master:
image

at commit f679d39:

image


Is there a random element to the resolving, e.g. could it affect the algorithm whether a package is already locally in the cache (so getting it's information is fast) or not?

@matthid

matthid commented Jul 15, 2017

Copy link
Copy Markdown
Member Author

@0x53A Thanks for testing this. Yes I think we prefer the cache. So if other tests depend on the same packages with different contents that might explain it. Will take a deep look tomorrow...

@forki
forki merged commit 7a9cdf9 into master Jul 16, 2017
@matthid

matthid commented Jul 16, 2017

Copy link
Copy Markdown
Member Author

OK root cause seems to be

-> IOException: The process cannot access the file 'C:\Users\matth\AppData\Local\Temp\Paket.Test.A.nuspec' because it is being used by another process.

However I'm not sure where we miss to cleanup that handle. And it only happens occasionally, something like one out of 10 runs is failing.

So maybe this is related to this PR after all because I introduced an additional place where the nuspec is read (the GetContent method).

@matthid
matthid deleted the fix_2390 branch July 26, 2017 19:24
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.

3 participants