Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flake: test/cmd/newapp.sh:282 #14418

Closed
tnozicka opened this issue May 31, 2017 · 2 comments · Fixed by #14758
Closed

Flake: test/cmd/newapp.sh:282 #14418

tnozicka opened this issue May 31, 2017 · 2 comments · Fixed by #14758
Assignees
Labels
component/build kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1

Comments

@tnozicka
Copy link
Contributor

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/853/

Error Message

2.3/test/puma-test-app': the command returned the wrong error code; the output content test failed
Stacktrace

=== BEGIN TEST CASE ===
test/cmd/newapp.sh:282: executing 'oc new-app https://github.com/openshift/sti-ruby.git --context-dir="2.3/test/puma-test-app" -o yaml' expecting success and text 'contextDir: 2.3/test/puma-test-app'
FAILURE after 119.199s: test/cmd/newapp.sh:282: executing 'oc new-app https://github.com/openshift/sti-ruby.git --context-dir="2.3/test/puma-test-app" -o yaml' expecting success and text 'contextDir: 2.3/test/puma-test-app': the command returned the wrong error code; the output content test failed
There was no output from the command.
Standard error from the command:
error: Errors occurred while determining argument types:

https://github.com/openshift/sti-ruby.git as a Git repository URL:  execution of git ls-remote https://github.com/openshift/sti-ruby.git timed out after 30s

https://github.com/openshift/sti-ruby.git as a local directory pointing to a Git repository:  stat https://github.com/openshift/sti-ruby.git: no such file or directory

Errors occurred during resource creation:
error: unable to load template file "https://github.com/openshift/sti-ruby.git": error converting YAML to JSON: yaml: line 22: mapping values are not allowed in this context
error: no match for "https://github.com/openshift/sti-ruby.git"

The 'oc new-app' command will match arguments to the following types:

  1. Images tagged into image streams in the current project or the 'openshift' project
     - if you don't specify a tag, we'll add ':latest'
  2. Images in the Docker Hub, on remote registries, or on the local Docker engine
  3. Templates in the current project or the 'openshift' project
  4. Git repository URLs or local paths that point to Git repositories

--allow-missing-images can be used to point to an image that does not exist yet.

See 'oc new-app -h' for examples.
=== END TEST CASE ===
@tnozicka tnozicka added kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 labels May 31, 2017
@liggitt
Copy link
Contributor

liggitt commented May 31, 2017

git ls-remote https://github.com/openshift/sti-ruby.git looks like a github timeout

@tnozicka
Copy link
Contributor Author

tnozicka commented Jun 1, 2017

github timeout or infra.
I think in the long term we should solve it. There should be a retry in oc new-app or any other such command using remote resource otherwise this will eventually cause flakes in test and in customers scripts as well.

Kubernetes seems to already do it: kubernetes/kubernetes#25267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/build kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants