Skip to content

Commit

Permalink
UPSTREAM: <carry>: Remove excessive e2e logging
Browse files Browse the repository at this point in the history
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
```

Origin-commit: 1cdf04c0e15b79fad3e3a6ba896ed2bb3df42b78

openshift-rebase(v1.24):source=dd0d3bfa831
  • Loading branch information
p0lyn0mial authored and soltysh committed Aug 19, 2022
1 parent c0eb8f0 commit c7f8581
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions test/e2e/framework/network/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,6 @@ func PokeHTTP(host string, port int, path string, params *HTTPPokeParams) HTTPPo
params.Timeout = 10 * time.Second
}

framework.Logf("Poking %q", url)

resp, err := httpGetNoConnectionPoolTimeout(url, params.Timeout)
if err != nil {
ret.Error = err
Expand Down Expand Up @@ -1044,7 +1042,8 @@ func PokeHTTP(host string, port int, path string, params *HTTPPokeParams) HTTPPo
}

ret.Status = HTTPSuccess
framework.Logf("Poke(%q): success", url)
// causes excessive logging that provides no value
// framework.Logf("Poke(%q): success", url)
return ret
}

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/framework/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func countEndpointsNum(e *v1.Endpoints) int {

// restclientConfig returns a config holds the information needed to build connection to kubernetes clusters.
func restclientConfig(kubeContext string) (*clientcmdapi.Config, error) {
Logf(">>> kubeConfig: %s", TestContext.KubeConfig)
//Logf(">>> kubeConfig: %s", TestContext.KubeConfig)
if TestContext.KubeConfig == "" {
return nil, fmt.Errorf("KubeConfig must be specified to load client config")
}
Expand All @@ -473,7 +473,7 @@ func restclientConfig(kubeContext string) (*clientcmdapi.Config, error) {
return nil, fmt.Errorf("error loading KubeConfig: %v", err.Error())
}
if kubeContext != "" {
Logf(">>> kubeContext: %s", kubeContext)
//Logf(">>> kubeContext: %s", kubeContext)
c.CurrentContext = kubeContext
}
return c, nil
Expand Down

0 comments on commit c7f8581

Please sign in to comment.