Skip to content

Commit cf2fe11

Browse files
p0lyn0mialbertinatto
authored andcommitted
UPSTREAM: <carry>: Remove excessive e2e logging
UPSTREAM: <carry>: Remove a redundant output in the tests This line is not necessary for our test usage and should not be an issue in OpenShift (openshift-tests already verifies this correctly). UPSTREAM: <carry>: Remove excessive logging during e2e upgrade test This line makes the upgrade log output unreadable and provides no value during the set of tests it's used in: ``` Jan 12 20:49:25.628: INFO: cluster upgrade is Progressing: Working towards registry.svc.ci.openshift.org/ci-op-jbtg7jjb/release@sha256:144e73d125cce620bdf099be9a85225ade489a95622a70075d264ea3ff79219c: downloading update Jan 12 20:49:26.692: INFO: Poke("http://a74e3476115ce4d2d817a1e5ea608dad-802917831.us-east-1.elb.amazonaws.com:80/echo?msg=hello"): success Jan 12 20:49:28.727: INFO: Poke("http://a74e3476115ce4d2d817a1e5ea608dad-802917831.us-east-1.elb.amazonaws.com:80/echo?msg=hello"): success ``` OpenShift-Rebase-Source: 8e73298
1 parent 6c08795 commit cf2fe11

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

test/e2e/framework/internal/unittests/cleanup/cleanup_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ const (
120120
< Exit [BeforeEach] e2e - cleanup_test.go:63 <time>
121121
> Enter [BeforeEach] e2e - set up framework | framework.go:xxx <time>
122122
STEP: Creating a kubernetes client - framework.go:xxx <time>
123-
<klog> util.go:xxx] >>> kubeConfig: yyy/kube.config
124123
STEP: Building a namespace api object, basename test-namespace - framework.go:xxx <time>
125124
<klog> framework.go:xxx] Skipping waiting for service account
126125
< Exit [BeforeEach] e2e - set up framework | framework.go:xxx <time>

test/e2e/framework/network/utils.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,6 @@ func PokeHTTP(host string, port int, path string, params *HTTPPokeParams) HTTPPo
10351035
params.Timeout = 10 * time.Second
10361036
}
10371037

1038-
framework.Logf("Poking %q", url)
1039-
10401038
resp, err := httpGetNoConnectionPoolTimeout(url, params.Timeout)
10411039
if err != nil {
10421040
ret.Error = err
@@ -1088,7 +1086,8 @@ func PokeHTTP(host string, port int, path string, params *HTTPPokeParams) HTTPPo
10881086
}
10891087

10901088
ret.Status = HTTPSuccess
1091-
framework.Logf("Poke(%q): success", url)
1089+
// causes excessive logging that provides no value
1090+
// framework.Logf("Poke(%q): success", url)
10921091
return ret
10931092
}
10941093

test/e2e/framework/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func countEndpointsSlicesNum(epList *discoveryv1.EndpointSliceList) int {
451451

452452
// restclientConfig returns a config holds the information needed to build connection to kubernetes clusters.
453453
func restclientConfig(kubeContext string) (*clientcmdapi.Config, error) {
454-
Logf(">>> kubeConfig: %s", TestContext.KubeConfig)
454+
//Logf(">>> kubeConfig: %s", TestContext.KubeConfig)
455455
if TestContext.KubeConfig == "" {
456456
return nil, fmt.Errorf("KubeConfig must be specified to load client config")
457457
}
@@ -460,7 +460,7 @@ func restclientConfig(kubeContext string) (*clientcmdapi.Config, error) {
460460
return nil, fmt.Errorf("error loading KubeConfig: %v", err.Error())
461461
}
462462
if kubeContext != "" {
463-
Logf(">>> kubeContext: %s", kubeContext)
463+
//Logf(">>> kubeContext: %s", kubeContext)
464464
c.CurrentContext = kubeContext
465465
}
466466
return c, nil

0 commit comments

Comments
 (0)