Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@krnowak
Copy link
Collaborator

@krnowak krnowak commented Dec 21, 2015

The fetcher function was returning our special error for this case,
but we "overwrote" it with fmt.Errorf in asc. So instead just forward
the error.

Fixes #1908

Cleaned up the auth ACI server (or was it ACI auth server?) by removing dead code, added the "quay mode", moved some functions from trust test into a common file (because they will be used in the new test) and wrote the test.

@krnowak
Copy link
Collaborator Author

krnowak commented Dec 22, 2015

Waiting for functional test.

@jonboulle
Copy link
Contributor

You mean you're writing one?

Krzesimir Nowak [email protected] schrieb am Di., 22. Dez. 2015
14:00:

Waiting for functional test.


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

@krnowak
Copy link
Collaborator Author

krnowak commented Dec 22, 2015

Yes.

@krnowak krnowak force-pushed the krnowak/fix-202-from-quay branch 2 times, most recently from fc9bf25 to 7857609 Compare December 22, 2015 17:57
@krnowak krnowak force-pushed the krnowak/fix-202-from-quay branch from 7857609 to 3d5de1a Compare December 22, 2015 18:11
@krnowak
Copy link
Collaborator Author

krnowak commented Dec 22, 2015

Updated.

@jonboulle
Copy link
Contributor

@dgonyeo review? I'm curious whether it makes sense to start considering using acserver in here...

@jonboulle jonboulle added this to the v0.15.0 milestone Dec 23, 2015
krnowak added 12 commits January 4, 2016 12:49
The fetcher function was returning our special error for this case,
but we "overwrote" it with fmt.Errorf in asc. So instead just forward
the error.
We do not download the "prog.aci" anymore. The ACI was built everytime
it was requested, so the process required to use go and actool. actool
is still used for patching ACI manifest, but go is not used anywhere,
so we can drop one environment variable too.
The stop channel is redundant. Instead, just listen to the closing of
the message channel.

Also, it was possible to build the ACI auth server as an executable
binary. That was from the times, when I initially wrote it as a
standalone tool. We don't use it anymore - the project also provides a
library, which is better suits our tests better.
"AuthType", "AuthNone" is more descriptive than just "Type" and
"None". Especially when new type enum is coming.
It asks to defer the signature file download until the image is
downloaded first.
It will be used by the test for deferred signature file download.
… function

Will be used by the test for the deferred signature file download.
It will be used also by the test checking the deferred signature
download.
@cgonyeo
Copy link
Member

cgonyeo commented Jan 4, 2016

As far as acsever goes, you're welcome to use it but all it would do in this context is host static files. I think that's trivial enough to do in go that it's not worth adding the dependency.

If rkt ends up gaining push support however, then there's be more value in adding it.

@krnowak krnowak force-pushed the krnowak/fix-202-from-quay branch from 3d5de1a to a57e8de Compare January 4, 2016 11:52
@krnowak
Copy link
Collaborator Author

krnowak commented Jan 4, 2016

Rebased to recent master. Also, it might be easier to review it commit by commit, since github didn't detect the renaming at one point.

Copy link
Member

Choose a reason for hiding this comment

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

Aren't these the other way around?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch. But git grepping shows that nothing uses the NewQuayServer function, and the only user of NewServer (the auth tests) actually does not care about it. I think I'll remove the NewServer and NewQuayServer functions, rename the NewServerFull function to NewServer and fix their uses accordingly.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good!

The NewServer and NewQuayServer were either completely unused or just
barely. Also, they mixed up the server type they created -
NewQuayServer was creating an ordinary server, and NewServer - a
Quay-like one.
@krnowak
Copy link
Collaborator Author

krnowak commented Jan 5, 2016

Pushed the commit removing the functions.

@iaguis
Copy link
Member

iaguis commented Jan 5, 2016

LGTM on green

iaguis added a commit that referenced this pull request Jan 6, 2016
image: Fix downloading image signatures from quay.io
@iaguis iaguis merged commit c501a93 into rkt:master Jan 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants