redhat-developer / odo

odo - Developer-focused CLI for fast & iterative container-based application development on Podman and Kubernetes. Implementation of the open Devfile standard.
https://odo.dev
Apache License 2.0
795 stars 243 forks source link

`odo list namespace` tests seem flaky in periodic test infra #6966

Closed rm3l closed 10 months ago

rm3l commented 1 year ago

/kind bug /area testing /area flake

Any logs, error output, etc?

• [FAILED] [1.270 seconds]
odo create/delete/list/set namespace/project tests when namespace is created with -w [It] should list the new namespace when listing namespace
/go/src/github.com/redhat-developer/odo/tests/integration/cmd_namespace_test.go:36
  Timeline >>
  Created dir: /tmp/2077704388
  Created dir: /tmp/1854115374
  Setting KUBECONFIG=/tmp/1854115374/config
  Creating a new project: cmd-namespace-test36cyp
  Running oc with args [oc new-project cmd-namespace-test36cyp] and odo env: []
  [oc] Now using project "cmd-namespace-test36cyp" on server "https://api.ci-op-pbirj3v6-894cb.origin-ci-int-aws.dev.rhcloud.com:6443".
  [oc] 
  [oc] You can add applications to this project with the 'new-app' command. For example, try:
  [oc] 
  [oc]     oc new-app rails-postgresql-example
  [oc] 
  [oc] to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:
  [oc] 
  [oc]     kubectl create deployment hello-node --image=k8s.gcr.io/e2e-test-images/agnhost:2.33 -- /agnhost serve-hostname
  [oc] 
  Running oc with args [oc create configmap config-map-for-cleanup --from-literal type=testing --from-literal team=odo -n cmd-namespace-test36cyp] and odo env: []
  [oc] configmap/config-map-for-cleanup created
  Current working dir: /go/src/github.com/redhat-developer/odo/tests/integration
  Running odo with args [odo preference remove registry DefaultDevfileRegistry -f] and odo env: []
  [odo] I0712 01:46:01.348624   81017 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] Successfully removed registry
  [odo] I0712 01:46:01.349536   81017 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] I0712 01:46:01.349606   81017 segment.go:264] Checking telemetry enable status
  [odo] I0712 01:46:01.349617   81017 segment.go:282] Sending telemetry disabled by env variable
  Running odo with args [odo preference add registry DefaultDevfileRegistry https://registry.stage.devfile.io] and odo env: []
  [odo] I0712 01:46:01.378806   81033 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] New registry successfully added
  [odo] I0712 01:46:01.379076   81033 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] I0712 01:46:01.379130   81033 segment.go:264] Checking telemetry enable status
  [odo] I0712 01:46:01.379138   81033 segment.go:282] Sending telemetry disabled by env variable
  Running odo with args [odo create namespace cmd-namespace-test36eyz --wait] and odo env: []
  [odo] I0712 01:46:01.414155   81051 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo]  •  Creating the namespace "cmd-namespace-test36eyz"  ...
  [odo] I0712 01:46:01.414292   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:01.704419   81051 projects.go:195] Status of creation of project cmd-namespace-test36eyz is Active
  [odo] I0712 01:46:01.704436   81051 projects.go:200] Project cmd-namespace-test36eyz now exists
  [odo] I0712 01:46:01.71[834](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-redhat-developer-odo-main-v4.10-integration-e2e-periodic/1678917250859405312#1:build-log.txt%3A834)7   81051 namespace.go:194] Status of creation of service account &ServiceAccount{ObjectMeta:{default  cmd-namespace-test36eyz  aefc70b9-848c-45e4-b358-693a49dc133d 110467 0 2023-07-12 01:46:01 +0000 UTC <nil> <nil> map[] map[] [] [] []},Secrets:[]ObjectReference{ObjectReference{Kind:,Namespace:,Name:default-token-jnwtq,UID:,APIVersion:,ResourceVersion:,FieldPath:,},ObjectReference{Kind:,Namespace:,Name:default-dockercfg-gdzj8,UID:,APIVersion:,ResourceVersion:,FieldPath:,},},ImagePullSecrets:[]LocalObjectReference{LocalObjectReference{Name:default-dockercfg-gdzj8,},},AutomountServiceAccountToken:nil,} is ready
  [odo] 
 ✓  Creating the namespace "cmd-namespace-test36eyz" [304ms]
  [odo]  •  Waiting for the namespace to come up  ...
  [odo] I0712 01:46:01.718475   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:01.802272   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:01.867333   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:01.935819   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:02.001275   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] I0712 01:46:02.066087   81051 kclient.go:237] Checking if "projects" resource is supported
  [odo] 
 ✓  Waiting for the namespace to come up [363ms]
  [odo]  ✓  Namespace "cmd-namespace-test36eyz" is ready for use
  [odo]  ✓  New namespace created and now using namespace: cmd-namespace-test36eyz
  [odo] I0712 01:46:02.085346   81051 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] I0712 01:46:02.085414   81051 segment.go:264] Checking telemetry enable status
  [odo] I0712 01:46:02.085421   81051 segment.go:282] Sending telemetry disabled by env variable
  Running odo with args [odo list namespace] and odo env: []
  [odo] I0712 01:46:02.122759   81068 kclient.go:237] Checking if "projects" resource is supported
  [odo] ACTIVE     NAME
  [odo]            cmd-delete-test314qls
  [odo]            cmd-dev-debug-test225cvw
  [odo]            cmd-dev-test1308jvc
  [odo]            cmd-dev-test1349eyx
  [odo]            cmd-dev-test1349xng
  [odo]            cmd-dev-test4075dar
  [odo]            cmd-namespace-test36cyp
  [odo]            default
  [odo]            myproject
  [odo]            nodejs-12
  [odo]            nodejs-12-rhel7
  [odo]            nodejs-14
  [odo]            openjdk-11
  [odo]            openjdk-11-rhel8
  [odo] I0712 01:46:02.188980   81068 implem.go:114] The path for preference file is /tmp/1854115374/preference.yaml
  [odo] I0712 01:46:02.189095   81068 segment.go:264] Checking telemetry enable status
  [odo] I0712 01:46:02.189103   81068 segment.go:282] Sending telemetry disabled by env variable
  [FAILED] in [It] - /go/src/github.com/redhat-developer/odo/tests/integration/cmd_namespace_test.go:38 @ 07/12/23 01:46:02.197
  Deleting project: cmd-namespace-test36cyp
  Running oc with args [oc delete project cmd-namespace-test36cyp --wait=false] and odo env: []
  [oc] project.project.openshift.io "cmd-namespace-test36cyp" deleted
  Setting current dir to: /go/src/github.com/redhat-developer/odo/tests/integration
  Deleting dir: /tmp/2077704388
  Deleting dir: /tmp/1[854](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-redhat-developer-odo-main-v4.10-integration-e2e-periodic/1678917250859405312#1:build-log.txt%3A854)115374
  << Timeline
  [FAILED] Expected
      <string>: ACTIVE     NAME
                 cmd-delete-test314qls
                 cmd-dev-debug-test225cvw
                 cmd-dev-test1308jvc
                 cmd-dev-test1349eyx
                 cmd-dev-test1349xng
                 cmd-dev-test4075dar
                 cmd-namespace-test36cyp
                 default
                 myproject
                 nodejs-12
                 nodejs-12-rhel7
                 nodejs-14
                 openjdk-11
                 openjdk-11-rhel8

  to contain substring
      <string>: cmd-namespace-test36eyz
  In [It] at: /go/src/github.com/redhat-developer/odo/tests/integration/cmd_namespace_test.go:38 @ 07/12/23 01:46:02.197
[...]
Summarizing 1 Failure:
  [FAIL] odo create/delete/list/set namespace/project tests when namespace is created with -w [It] should list the new namespace when listing namespace
  /go/src/github.com/redhat-developer/odo/tests/integration/cmd_namespace_test.go:38
Ran 486 of 940 Specs in 5389.520 seconds
FAIL! -- 485 Passed | 1 Failed | 0 Pending | 454 Skipped
Ginkgo ran 1 suite in 1h30m1.362432073s
github-actions[bot] commented 1 year ago

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.