OCPBUGS-85429: feat(openshift-apiserver): authenticate to build farm registry in verify step - #82636
Conversation
|
@jubittajohn: This pull request references Jira Issue OCPBUGS-85429, which is valid. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe four OpenShift API Server verification workflows now set ChangesOpenShift API Server verification
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jubittajohn The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-main-verify |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
1 similar comment
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jubittajohn: job(s): pull-ci-openshift-openshift-apiserver-5.0-verify either don't exist or were not found to be affected, and cannot be rehearsed |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jubittajohn: job(s): pull-ci-openshift-openshift-apiserver-4.23-verify either don't exist or were not found to be affected, and cannot be rehearsed |
|
@jubittajohn: job(s): pull-ci-openshift-openshift-apiserver-4.22-verify either don't exist or were not found to be affected, and cannot be rehearsed |
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-release-5.0-verify |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-release-4.22-verify |
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-release-4.23-verify |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
1 similar comment
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
90114de to
7c320c4
Compare
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-main-verify |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/retest |
7c320c4 to
67d0867
Compare
|
/pj-rehearse pull-ci-openshift-openshift-apiserver-release-5.0-verify |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
67d0867 to
ab7e87c
Compare
b4aa087 to
123a9c3
Compare
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
123a9c3 to
56cad29
Compare
|
/pj-rehearse |
|
@jubittajohn: |
|
@jubittajohn: your |
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
e687e46 to
182ffe3
Compare
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
182ffe3 to
8ede041
Compare
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
| commands: | | ||
| export XDG_RUNTIME_DIR=/tmp/run | ||
| mkdir -p "${XDG_RUNTIME_DIR}/containers" | ||
| oc registry login | ||
| make verify -k --warn-undefined-variables |
There was a problem hiding this comment.
What if oc or something in the make recipe relies on XDG_RUNTIME_DIR for something else, today or in the future? There could be unintended side effects of pointing it to a mostly-empty directory.
oc registry login prefers REGISTRY_AUTH_FILE https://github.com/openshift/oc/blob/9c7ccc4232cffdbe39ae3396e9163b985d070cc5/pkg/cli/registry/login/login.go#L238 for its write destination, too. Does that allow us to do something like this:
| commands: | | |
| export XDG_RUNTIME_DIR=/tmp/run | |
| mkdir -p "${XDG_RUNTIME_DIR}/containers" | |
| oc registry login | |
| make verify -k --warn-undefined-variables | |
| env: | |
| - name: REGISTRY_AUTH_FILE | |
| default: /tmp/registry-auth.json | |
| commands: | | |
| oc registry login | |
| make verify -k --warn-undefined-variables |
There was a problem hiding this comment.
@benluddy
Yes that would work. Verified that using this same change in #82639 which is fixing this against the oauth-apiserver. The reason it fails in openshift-apiserver is due to the openshift/openshift-apiserver#669 merged PR where we prefered REGISTRY_AUTH_FILE over cluster profile pull secret.
openshift/openshift-apiserver#670 - revert PR open. Could you approve them after that the rehearsals on this PR should pass
8ede041 to
a514752
Compare
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
a514752 to
3bec432
Compare
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
…unt ci-pull-credentials in verify step Signed-off-by: jubittajohn <jujohn@redhat.com>
3bec432 to
6da11e5
Compare
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse |
|
@jubittajohn: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@jubittajohn: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
To have openshift/openshift-apiserver#666 pass the update verify ci job.
The verify-openapi-spec check pulls binaries from the CI release image on build farm registries, which aren't covered by the cluster profile pull secret. Add
oc registry loginbeforemake verifyso the job can pull from CI-internal registries.Summary by CodeRabbit
OPENSHIFT_RELEASEtomake verify, usingRELEASE_IMAGE_LATESTas the fallback.ci-pull-credentialsand setsREGISTRY_AUTH_FILEso verification jobs can pull binaries from build farm registries.