odo: PR got merged even when TravisCI test were failing
on travis CI https://travis-ci.com/openshift/odo/jobs/225078001
notice the projects names
Running odo with args [odo service create dh-postgresql-apb --plan dev -p postgresql_user=luke -p postgresql_password=secret -p postgresql_database=my_data -p postgresql_version=9.6 --app uphmxpo --project ajdvqxarqf]
[odo] ✗ Component dh-postgresql-apb does not exist in application uphmxpo
full output
Creating a new project: ajdvqxarqf
Running odo with args [odo project create ajdvqxarqf -w -v4]
[odo] I0814 08:14:02.342870 23023 preference.go:116] The configFile is /home/travis/.odo/preference.yaml
[odo] I0814 08:14:02.343241 23023 occlient.go:478] Trying to connect to server 127.0.0.1:8443
[odo] I0814 08:14:02.346659 23023 occlient.go:485] Server https://127.0.0.1:8443 is up
[odo] I0814 08:14:02.461155 23023 occlient.go:408] isLoggedIn err: <nil>
[odo] output: "developer"
[odo] I0814 08:14:02.461193 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0814 08:14:02.461203 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0814 08:14:02.461236 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0814 08:14:02.461243 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: project
[odo] I0814 08:14:02.471270 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0814 08:14:02.471297 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: output
[odo] I0814 08:14:02.471302 23023 context.go:371] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: component
[odo] • Waiting for project to come up ...
[odo] ✓ Waiting for project to come up [1s]
[odo] ✓ Project 'ajdvqxarqf' is ready for use
[odo] ✓ New project created and now using project : ajdvqxarqf
[odo] I0814 08:14:03.650283 23023 odo.go:70] Could not get the latest release information in time. Never mind, exiting gracefully :)
Created dir: /tmp/659686430
Current working dir: /home/travis/gopath/src/github.com/openshift/odo/tests/integration
Setting current dir to: /tmp/659686430
Setting current dir to: /home/travis/gopath/src/github.com/openshift/odo/tests/integration
Running odo with args [odo service create dh-postgresql-apb --plan dev -p postgresql_user=luke -p postgresql_password=secret -p postgresql_database=my_data -p postgresql_version=9.6 --app uphmxpo --project ajdvqxarqf]
[odo] • Creating service ...
[odo] ✓ Creating service [183ms]
[odo] ✓ Service 'dh-postgresql-apb' was created
[odo] Progress of the provisioning will not be reported and might take a long time.
[odo] You can see the current status by executing 'odo service list'
Running oc with args [oc get serviceinstance -o name -n ajdvqxarqf]
[oc] serviceinstance.servicecatalog.k8s.io/dh-postgresql-apb
Running odo with args [odo service list --app uphmxpo --project ajdvqxarqf]
[odo] NAME TYPE STATUS
[odo] dh-postgresql-apb dh-postgresql-apb Provisioning
Running odo with args [odo delete -f dh-postgresql-apb --app uphmxpo --project ajdvqxarqf]
[odo] ✗ Component dh-postgresql-apb does not exist in application uphmxpo
Deleting project: ajdvqxarqf
Running odo with args [odo project delete ajdvqxarqf -f]
[odo] This project contains the following applications, which will be deleted
[odo] Application uphmxpo
[odo] This application has following service that will be deleted
[odo] service named dh-postgresql-apb of type dh-postgresql-apb
[odo] • Deleting project ajdvqxarqf ...
[odo] ✓ Deleting project ajdvqxarqf [8s]
[odo] Deleted project : ajdvqxarqf
Deleting dir: /tmp/659686430
Setting current dir to: /home/travis/gopath/src/github.com/openshift/odo/tests/integration
• Failure [15.788 seconds]
odoServiceE2e
/home/travis/gopath/src/github.com/openshift/odo/tests/integration/service_test.go:15
When working from outside a component dir
/home/travis/gopath/src/github.com/openshift/odo/tests/integration/service_test.go:105
should be able to create, list and delete services without a context and using --app and --project flags instaed [It]
/home/travis/gopath/src/github.com/openshift/odo/tests/integration/service_test.go:143
No future change is possible. Bailing out early after 0.723s.
Running odo with args [odo delete -f dh-postgresql-apb --app uphmxpo --project ajdvqxarqf]
Expected
<int>: 1
to match exit code:
<int>: 0
/home/travis/gopath/src/github.com/openshift/odo/tests/helper/helper_run.go:32
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 31 (29 by maintainers)
@girishramnani @dharmit @cdrage @mik-dass ^
LOL, the test is not deleting service, but it is trying to delete component !!! How the hell this got in?
Ideally it should, but no idea why its not working. IMO the deletion code need some amount of investigation. I will create a separate followup issue.