Skip to content

WIP: Try to activate V3 API - #1212

Merged
forki merged 5 commits into
masterfrom
V3API
Nov 13, 2015
Merged

forki merged 5 commits into
masterfrom
V3API

Conversation

@forki

@forki forki commented Nov 12, 2015

Copy link
Copy Markdown
Member
  • - create integration test
  • - reactivate API
  • - fix integration test

/cc @xavierzwirtz

@forki

forki commented Nov 12, 2015

Copy link
Copy Markdown
Member Author

@xavierzwirtz do you see the issue?

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I have most of the issue resolved, working on some minor differences between the lock file generated against a V2 api and a lock file generated against a V3 api.

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I have submitted a pr (#1216) that fixes most of this issue.

I updated your regression test to compare the paket.lock when run against the v2 api and the v3 api. There is only one difference now,, and I believe the bug is actually in the v2 api.

From what I can tell FSharp.Data depends on Zlib.Portable (1.11.0), but when using the v2 api it doesnt register a dependency for Zlib.Portable (1.11.0).

@forki

forki commented Nov 12, 2015

Copy link
Copy Markdown
Member Author

so you found a bug in our v2 implementation?

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I think so, I'd like you to take a look at it.

On November 12, 2015 1:18:29 PM Steffen Forkmann [email protected]
wrote:

so you found a bug in our v2 implementation?


Reply to this email directly or view it on GitHub:
#1212 (comment)

@forki

forki commented Nov 12, 2015

Copy link
Copy Markdown
Member Author

image

looks like v2 is correct. ZLib.Portable is only used for portable projects.

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I was not calling the right method to parse framework dependencies. Fixed that. Also added caching in.

The integration test is passing now.

@forki

forki commented Nov 12, 2015

Copy link
Copy Markdown
Member Author

Awesome.
Will look into this tomorrow. Thanks buddy

@xavierzwirtz

Copy link
Copy Markdown
Contributor

No problem, glad this was caught quickly.

On November 12, 2015 3:15:04 PM Steffen Forkmann [email protected]
wrote:

Awesome.
Will look into this tomorrow. Thanks buddy


Reply to this email directly or view it on GitHub:
#1212 (comment)

@xavierzwirtz

Copy link
Copy Markdown
Contributor

Submited pr #1222

I rewrote the v2 and v3 getDetails to use a single cache function.

Also changed the behavior of the cache. When an error occurs it doesnt write an error file, it simply falls back to the api. Logs to the console with traceWarnfn.

@forki

forki commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

the error file was a idea that future runs of paket don't have to retry the same API call

@xavierzwirtz

Copy link
Copy Markdown
Contributor

Requires the user to call paket with force to blow them out though, doesn't it? Feels rather irritating from a user perspective, but I can understand if that's out of scope for this pr.

@forki

forki commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

yes, but the idea was: if all calls failed (e.g. because of error files) we
will also throw error files away and retry.
So usaully nobody should call with -f

2015-11-13 18:17 GMT+01:00 Xavier Zwirtz [email protected]:

Requires the user to call paket with force to blow them out though,
doesn't it? Feels rather irritating from a user perspective, but I can
understand if that's out of scope for this pr.

—
Reply to this email directly or view it on GitHub
#1212 (comment).

@xavierzwirtz

Copy link
Copy Markdown
Contributor

Ah, okay. I think I missed that in the v3 implementation of caching.

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I tested the old implementation of the v2 api's caching, if an error file exists you have to run paket with -f.

@forki

forki commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

maybe things got broken. ;-)

2015-11-13 18:25 GMT+01:00 Xavier Zwirtz [email protected]:

I tested the old implementation of the v2 api's caching, if an error file
exists you have to run paket with -f.

—
Reply to this email directly or view it on GitHub
#1212 (comment).

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I think so. Would you like me to try to re-implement the behavior you describe?

@forki

forki commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

if you think it's useful.
I don't really know if it's still needed, since we also change to
Async.Parallel and Async.Choice combo

2015-11-13 18:27 GMT+01:00 Xavier Zwirtz [email protected]:

I think so. Would you like me to try to re-implement the behavior you
describe?

—
Reply to this email directly or view it on GitHub
#1212 (comment).

@xavierzwirtz

Copy link
Copy Markdown
Contributor

I think the way it works right now, without error files, is simpler and not any slower. Your probably right, the async work makes it not needed.

@forki

forki commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

Ok. Then please drop the error files. I never really liked them anyways.
Actually I'm happy to get rid of these.
On Nov 13, 2015 18:30, "Xavier Zwirtz" [email protected] wrote:

I think the way it works right now, without error files, is simpler and
not any slower. Your probably right, the async work makes it not needed.

—
Reply to this email directly or view it on GitHub
#1212 (comment).

@xavierzwirtz

Copy link
Copy Markdown
Contributor

Heh, awesome. Thats done in the current state of the pr.

@forki
forki merged commit 8451f52 into master Nov 13, 2015
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.

2 participants