-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ggcr, use remote.Head #9442
Conversation
The following is the coverage report on the affected files.
|
/lgtm |
f6fcb30
to
cee02d8
Compare
I had to update the tests 😇 |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
if you wanna fix the nits
RFAL |
/unhold |
/lgtm |
/retest |
This is a legit failure...
|
/hold So this is definitely breaking, it breaks with GCR. 🙃 @jonjohnsonjr ping me once a fix has been rolled out for the couple issues I sent you and we can |
The following jobs failed:
Job pull-knative-serving-integration-tests expended all 3 retries without success. |
Should we add something to the release note in the description for this? Seems worth making sure we remember to mention |
I'd argue for just changing the test, or checking the status code in the resolver and setting the error to something stable based on that. Per https://tools.ietf.org/html/rfc7231#section-4.3.2
As far as I can tell from testing, both GCR and Docker Hub return an empty response body for HEAD requests. I think checking the specific error message you get back from ggcr is going to be fragile, but you could consider looking for "404" too? |
+1
|
Actually one of the bugs I found last night is that GCR is returning a body with HEAD. Ack that the semantics of HEAD should be no body, but I guess that dogma on 4xx and 5xx status codes surprises me a bit. |
I added your release notes @julz (thanks!) 😉 |
Changed it to look for a |
80b5444
to
55df28f
Compare
I couldn't repro this when I tried -- I can get the same curl error as you but I'm not sure that means there was a body?
Presumably, these warnings are exactly about this scenario. I would guess
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jonjohnsonjr, mattmoor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
Some additional context: https://knative.slack.com/archives/CDJ8M6R34/p1600293665001500
This is to pull in google/go-containerregistry#770 and enable the use of
remote.Head
, which bypasses the rate limiting that DockerHub is instituting.