Skip to content

new-app: fix newapp test flake - #4975

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
csrwng:fix_newapp_flake
Oct 8, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
csrwng:fix_newapp_flake

Conversation

@csrwng

@csrwng csrwng commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

Fixes #4948

@csrwng

csrwng commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

@deads2k ptal

@csrwng

csrwng commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Comment thread pkg/generate/app/dockerimagelookup.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't an obvious change to me. Why are we now ignoring any match error for docker?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a possibility I run new-app and get no output now because of this? If so, we may want to output by default.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The registry is just one of our search sources. If we can't find anything we should simply move on to search on the next source (the local docker daemon), if available. This is basically doing the same for the registry as we do for other sources. If for example we don't have a local docker accessible, we simply don't search it or get any results from it. Same for the openshift server if we can't connect to it to search for image streams or templates.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a possibility I run new-app and get no output now because of this? If so, we may want to output by default.

You will always get an output, saying that we couldn't find a match for your input.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, just wanted to make sure

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

@csrwng travis still fails on the same line.

service "ruby-hello-world" deleted
error: no image or template matched "openshift/bogusImage", specify --allow-missing-images to use this image name.
!!! Error in test/cmd/newapp.sh:86
    '[ "$(oc new-app  openshift/bogusImage https://github.com/openshift/ruby-hello-world.git -o yaml --allow-missing-images)" ]' exited with status 1
Call stack:
    1: test/cmd/newapp.sh:86 main(...)
Exiting with status 1
!!! Error in hack/test-cmd.sh:272
    '${test}' exited with status 1
Call stack:
    1: hack/test-cmd.sh:272 main(...)
Exiting with status 1
[FAIL] !!!!! Test Failed !!!!

@csrwng csrwng closed this Oct 7, 2015
@csrwng csrwng reopened this Oct 7, 2015
@csrwng
csrwng force-pushed the fix_newapp_flake branch 2 times, most recently from e6bca78 to 51865b3 Compare October 7, 2015 14:18
@csrwng csrwng changed the title new-app: tolerate errors accessing a docker registry new-app: fix newapp test flake Oct 7, 2015
@csrwng

csrwng commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

@deads2k I am disabling the test until we get a fix for it. Created the issue #4991 to track it

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

@deads2k I am disabling the test until we get a fix for it. Created the issue #4991 to track it

Ok. Once travis goes green, I'll merge.

@0xmichalis

Copy link
Copy Markdown
Contributor

I think this is ok to merge. Travis error is related to the upstream websocket patch we are carrying @smarterclayton fyi

2015/10/07 15:54:05 http: panic serving 127.0.0.1:35389: bad read
goroutine 16 [running]:
net/http.func·011()
    /usr/local/go/src/net/http/server.go:1130 +0xcc
github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream.(*errorReader).Read(0xc20803a680, 0xc20812e800, 0x800, 0x800, 0xc20800ac40, 0x0, 0x0)
    /home/travis/gopath/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream/stream_test.go:151 +0x129
github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream.messageCopy(0xc20807c3f0, 0x2af1ac8751e0, 0xc20803a680, 0xc208000000, 0x0, 0x0, 0x0)
    github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream/_test/_obj_test/stream.go:105 +0x2aa
github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream.(*Reader).handle(0xc2080ae060, 0xc20807c3f0)
    github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream/_test/_obj_test/stream.go:79 +0x2c6
github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream.func·009(0xc20807c3f0)
    /home/travis/gopath/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream/stream_test.go:171 +0x1aa
golang.org/x/net/websocket.Server.serveWebSocket(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa2f988, ...)
    /home/travis/gopath/src/github.com/openshift/origin/Godeps/_workspace/src/golang.org/x/net/websocket/server.go:89 +0x2db
golang.org/x/net/websocket.Handler.ServeHTTP(0xc20800a4e0, 0x2af1ac874de0, 0xc208104320, 0xc20801e1a0)
    /home/travis/gopath/src/github.com/openshift/origin/Godeps/_workspace/src/golang.org/x/net/websocket/server.go:112 +0x9b
net/http/httptest.(*waitGroupHandler).ServeHTTP(0xc20800a640, 0x2af1ac874de0, 0xc208104320, 0xc20801e1a0)
    /usr/local/go/src/net/http/httptest/server.go:200 +0xf8
net/http.serverHandler.ServeHTTP(0xc2080b67e0, 0x2af1ac874de0, 0xc208104320, 0xc20801e1a0)
    /usr/local/go/src/net/http/server.go:1703 +0x1f7
net/http.(*conn).serve(0xc208104280)
    /usr/local/go/src/net/http/server.go:1204 +0x1088
created by net/http.(*Server).Serve
    /usr/local/go/src/net/http/server.go:1751 +0x3cd
--- FAIL: TestStreamClosedDuringRead-2 (0.12s)
    stream_test.go:131: unexpected server read: []
FAIL
coverage: 70.4% of statements
FAIL    
github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/wsstream   0.679s

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

re[test]

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

jenkins issue re[test]

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

still failing travis. New error this time:

test/cmd/newapp.sh: line 96: docker: command not found
!!! Error in test/cmd/newapp.sh:96
    'docker build -t test/scratchimage .' exited with status 127
Call stack:
    1: test/cmd/newapp.sh:96 main(...)
Exiting with status 1
!!! Error in hack/test-cmd.sh:272
    '${test}' exited with status 1
Call stack:
    1: hack/test-cmd.sh:272 main(...)
Exiting with status 1
[FAIL] !!!!! Test Failed !!!!

@csrwng

csrwng commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

Created an issue to create an extended test for the local docker image: #5000 and removed it from newapp.sh

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to c32c41f

@deads2k

deads2k commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3528/) (Image: devenv-fedora_2451)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to c32c41f

openshift-bot pushed a commit that referenced this pull request Oct 8, 2015
@openshift-bot
openshift-bot merged commit c5a2711 into openshift:master Oct 8, 2015
@csrwng
csrwng deleted the fix_newapp_flake branch January 27, 2016 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants