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
Bug 1971332: revert incorrect allowance of ssh:// prefix with scp styled URLs #875
Conversation
@gabemontero: This pull request references Bugzilla bug 1971332, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In 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 kubernetes/test-infra repository. |
terraform flake on e2e-aws-builds /test e2e-aws-builds |
bugs 1973724 1975050 1972374 are all noted in sippy wrt metal ipi ... failures unrelated to this PR I'll also mention here that adding a new option to |
/retest |
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.
/hold
pkg/helpers/newapp/app/app.go
Outdated
@@ -167,6 +168,9 @@ func (r *SourceRef) BuildSource() (*buildv1.BuildSource, []buildv1.BuildTriggerP | |||
URI: r.URL.StringNoFragment(), | |||
Ref: r.URL.URL.Fragment, | |||
} | |||
if r.SSHPrefixWorkaround { | |||
source.Git.URI = "ssh://" + source.Git.URI |
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.
This feels like a band-aid on top of a thing we broke in s2i.
We should fix s2i so that handles regular SSH URIs (which are valid URIs) and SCP style URIs.
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.
as I put a hold on in the description, and mentioned wanting to discuss this, I agree this is a band aid ... of course your additional hold does not hurt anything :-)
that said, the reason I want to discuss voice to voice in office hours is
a) fixing it this in s2i could prove trickier and more time consuming than we realize ... not 100% sure but I want to talk through it
b) if that pans out, is the band aid sufficient given what we have to do elsewhere
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.
In particular, the wide use of the embedded golang URL inside the S2I URL throughout new-app / new-build code gave me some pause @adambkaplan
And that golang URL still can't deal with ssh://
My hope is bring up the code in an editor, walk through the references during office hours, and see what change makes sense where.
/bugzilla refresh |
@xiuwang: This pull request references Bugzilla bug 1971332, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In 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 kubernetes/test-infra repository. |
/hold cancel OK @adambkaplan the revert of https://bugzilla.redhat.com/show_bug.cgi?id=1884270 plus additional test cases is up. I'll wait until you approve the "copied s2i" piece here before I make the change in s2i, and once that merges, vendor that into opensift/builder and openshift/openshift-apiserver |
only a sig-network flake on ipi-ovn-ipv6 ... all sig-builds passed @adambkaplan |
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.
/approve
My only question is how we are going to support scp-style git locations in oc. We can do this in a follow-up PR (i.e. move the BZ back to ASSIGNED).
/retest |
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
/assign @soltysh for an approve from someone in the OWNERS file thanks |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, gabemontero, soltysh 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 |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@gabemontero: All pull requests linked via external trackers have merged:
Bugzilla bug 1971332 has been moved to the MODIFIED state. In 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 kubernetes/test-infra repository. |
/cherrypick release-4.8 |
@gabemontero: new pull request created: #898 In 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 kubernetes/test-infra repository. |
/hold
for now
want to discuss with @adambkaplan when he returns from PTO
this is a possible reconciliation with the concerns in this BZ with conclusions drawn from https://bugzilla.redhat.com/show_bug.cgi?id=1884270
but I'm not ready to make an executive decsion here