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

Run java test specs in parallel #1844

Merged

Conversation

amitkrout
Copy link
Contributor

What is the purpose of this change? What does it change?

Was the change discussed in an issue?

fixes - part of #1473

How to test changes?

make test-java-e2e

@amitkrout
Copy link
Contributor Author

Blocked due to #1846

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 24, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Jun 26, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 27, 2019
@amitkrout
Copy link
Contributor Author

/test integration

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jul 1, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jul 4, 2019
@amitkrout
Copy link
Contributor Author

amitkrout commented Jul 5, 2019

odo generic when .odoignore file exists 
  should create and push the contents of a named component excluding the contents in .odoignore file
  /go/src/github.com/openshift/odo/tests/integration/generic_test.go:104
 Creating a new project: iyirwywxlc
Running odo with args: [project create iyirwywxlc -w -v4] 
[odo] I0705 05:27:00.625993   12354 preference.go:116] The configFile is /tmp/artifacts/.odo/preference.yaml
[odo] I0705 05:27:00.626054   12354 occlient.go:455] Trying to connect to server api.ci-op-cxyqp9s0-f09f4.origin-ci-int-aws.dev.rhcloud.com:6443
[odo] I0705 05:27:00.640618   12354 occlient.go:462] Server https://api.ci-op-cxyqp9s0-f09f4.origin-ci-int-aws.dev.rhcloud.com:6443 is up
[odo] I0705 05:27:00.723231   12354 occlient.go:385] isLoggedIn err:  <nil> 
[odo]  output: "developer"
[odo] I0705 05:27:00.723263   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0705 05:27:00.723271   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0705 05:27:00.723309   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0705 05:27:00.723317   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: project
[odo] I0705 05:27:00.744462   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0705 05:27:00.744491   12354 context.go:355] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: output
[odo] I0705 05:27:00.744498   12354 context.go:355] 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 [425ms]
[odo]  ✓  Project 'iyirwywxlc' is ready for use
[odo]  ✓  New project created and now using project : iyirwywxlc
[odo] I0705 05:27:01.178295   12354 odo.go:70] Could not get the latest release information in time. Never mind, exiting gracefully :)
Created dir: /tmp/366751980
Running git with args: [clone https://github.com/openshift/nodejs-ex /tmp/366751980/nodejs-ex] 
[git] Cloning into '/tmp/366751980/nodejs-ex'...
Running odo with args: [create nodejs nodejs --project iyirwywxlc --context /tmp/366751980/nodejs-ex] 
[odo]  •  Validating component  ...
[odo]  ✓  Validating component [319ms]
[odo] Please use `odo push` command to create the component with source deployed
Running odo with args: [push --context /tmp/366751980/nodejs-ex] 
[odo] Validation
[odo]  •  Validating component  ...
[odo]  ✓  Validating component [403ms]
[odo]  •  Checking component  ...
[odo]  ✓  Checking component [18ms]
[odo] 
[odo] Configuration changes
[odo]  •  Creating component  ...
[odo]  ✓  Initializing component
[odo]  ✓  Creating component [183ms]
[odo]  •  Applying configuration  ...
[odo]  ✓  Applying configuration [10365ns]
[odo] 
[odo] Pushing to component nodejs of type local
[odo]  •  Waiting for component to start  ...
[odo]  ✓  Waiting for component to start [3m]
[odo]  •  Copying files to component  ...
[odo]  ✓  Copying files to component [34s]
[odo]  •  Building component  ...
[odo]  ✓  Building component [13s]
[odo]  ✓  Changes successfully pushed to component
Running oc with args: [get pods --namespace iyirwywxlc] 
[oc] NAME                  READY   STATUS    RESTARTS   AGE
[oc] nodejs-app-1-deploy   1/1     Running   0          3m38s
[oc] nodejs-app-1-fzt56    1/1     Running   0          3m28s
Running oc with args: [exec nodejs-app-1-deploy --namespace iyirwywxlc -- ls -lai /opt/app-root/src] 
[oc] error: unable to upgrade connection: container not found ("deployment")
Deleting project: iyirwywxlc
Running odo with args: [project delete iyirwywxlc -f] 
[odo] This project contains the following applications, which will be deleted
[odo] Application app
[odo] This application has following components that will be deleted
[odo] component named nodejs
[odo] No services / could not get services
[odo]  •  Deleting project iyirwywxlc  ...
[odo]  ✓  Deleting project iyirwywxlc [6s]
[odo] Deleted project : iyirwywxlc
 • Failure [229.293 seconds]
odo generic
/go/src/github.com/openshift/odo/tests/integration/generic_test.go:16
  when .odoignore file exists
  /go/src/github.com/openshift/odo/tests/integration/generic_test.go:92
    should create and push the contents of a named component excluding the contents in .odoignore file [It]
    /go/src/github.com/openshift/odo/tests/integration/generic_test.go:104
     No future change is possible.  Bailing out early after 0.338s.
      
    Expected
        <int>: 1
    to match exit code:
        <int>: 0
     /go/src/github.com/openshift/odo/tests/helper/helper_run.go:29

Seems a new flake is introduced

@amitkrout
Copy link
Contributor Author

/test integration

@amitkrout
Copy link
Contributor Author

/refresh

@amitkrout
Copy link
Contributor Author

[odo] ✗ Failed to create component with name wo-wait-javaee-git-test. Please use odo config view to view settings used to create component. Error: unable to wait for build wo-wait-javaee-git-test-app-1 to run: timed out waiting for the condition

/test integration

Copy link
Contributor

@mohammedzee1000 mohammedzee1000 left a comment

Choose a reason for hiding this comment

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

As we add context flag to enable parallel testing we should ensure that we are doing atleast one test without context flag :)
Anycase looks good to me
/approve

})

It("Should be able to deploy a spring boot uberjar file using openjdk", func() {
// https://github.com/openshift/odo/issues/1846
Copy link
Contributor

Choose a reason for hiding this comment

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

I am assuming these tests do not pass as of now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right.

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be a good idea to record this as an issue so we remember to fix it

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mohammedzee1000

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jul 8, 2019
@amitkrout
Copy link
Contributor Author

As we add context flag to enable parallel testing we should ensure that we are doing atleast one test without context flag :)
Anycase looks good to me
/approve

Thanks for the review.
The combination of with and without context flag will be implemented in #1845

Copy link
Contributor

@mik-dass mik-dass left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 9, 2019
@amitkrout
Copy link
Contributor Author

/test integration

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit ff81dcb into redhat-developer:master Jul 9, 2019
@rm3l rm3l added the estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants