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 1902702: fix ldap group sync tests and move them from bash to golang #25738
Bug 1902702: fix ldap group sync tests and move them from bash to golang #25738
Conversation
806cb1f
to
8318e90
Compare
@stlaz: This pull request references Bugzilla bug 1902702, which is invalid:
Comment 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 |
@stlaz: This pull request references Bugzilla bug 1902702, which is invalid:
Comment 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. |
8318e90
to
601c919
Compare
/bugzilla refresh |
@stlaz: This pull request references Bugzilla bug 1902702, 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
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. |
/retest |
601c919
to
d11d987
Compare
@stlaz: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
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.
Left you some comments.
test/extended/oauth/groupsync.go
Outdated
@@ -56,7 +56,8 @@ var _ = g.Describe("[sig-auth][Feature:LDAP][Serial] ldap group sync", func() { | |||
o.Expect(err).NotTo(o.HaveOccurred()) | |||
|
|||
// Copy groupsync test data | |||
err = pod.CopyFromHost(path.Join("test", "extended", "authentication", "ldap"), remoteTmp) | |||
groupSyncTestDir := testdata.MustAsset("test/extended/testdata/ldap/groupsync") |
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.
Nice, I wasn't aware of that one 👍
|
||
pod, err := exutil.NewPodExecutor(oc, "groupsync", image.OpenLDAPTestImage()) | ||
o.Expect(err).NotTo(o.HaveOccurred()) | ||
portFwdCmd := exec.CommandContext(ctx, "oc", "port-forward", "svc/"+ldapName, "30389:389", "-n", ldapNS) |
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.
Any particular reason for manually invoking the command instead of using oc.Run("port-forward").Args(svc/"+ldapName, "30389:389", "-n", ldapNS).Execute()
?
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.
I wanted to be able to gracefully terminate the command as the test finishes with the context cancellation.
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.
Fair.
d11d987
to
5566192
Compare
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
5566192
to
da75cf8
Compare
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 cancel
/retest
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh, stlaz 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 |
@stlaz: All pull requests linked via external trackers have merged: Bugzilla bug 1902702 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. |
@stlaz: #25738 failed to apply on top of branch "release-4.6":
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. |
/assign @soltysh
cc @sallyom
/hold
it's not yet finished, but perhaps already worth a PR
Currently, on my machine, the test takes ~4minutes, which is a huge difference from the original ~20min. It's caused by the original test actually starting a pod and installing a bunch of deps in it...
edit: with all tests added, it's now around 8 minutes, but that's still quite an improvement