Skip to content

READY TO MERGE: Completed JIRA OWLS-71984 - Migrate Session Migration test suite to GitHub #950

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

Merged
merged 12 commits into from
Mar 28, 2019

Conversation

hzhao-github
Copy link
Contributor

Created on GitHub the first time

@hzhao-github
Copy link
Contributor Author

hzhao-github commented Mar 19, 2019

Test results:

  1. on Wercker

https://app.wercker.com/Oracle/weblogic-kubernetes-operator/runs/integration-test-java/5c8da4bd23fcb70008d0c4eb?step=5c8da4d903f4460007a652b0

oracle.kubernetes.operator.ITSessionMigration didn't run

  1. on Jenjins

http://****/job/weblogic-kubernetes-operator-javatest/1299/consoleFull

[WARNING] Tests run: 4, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 475.655 s - in oracle.kubernetes.operator.ITSessionMigration

two skipped tests are myTest1 and myTest2 written to reprod the bug 29502819

@markxnelson
Copy link
Member

you need to push the commit with your changes

@hzhao-github
Copy link
Contributor Author

Pushed my commit

…e war file for web app in a server pod and deploy it from the pod
@hzhao-github
Copy link
Contributor Author

Just pushed a new commit with changes to add these missing copyright and javadoc

@hzhao-github
Copy link
Contributor Author

Kicked off run on Jenkins #1350

… file for EJB App in a server pod and deploy it from the pod
Copy link
Member

@markxnelson markxnelson left a comment

Choose a reason for hiding this comment

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

looks good


// Restore test env
// Wait some time for ms pod to become ready
Thread.sleep(30 * 1000);
Copy link
Member

Choose a reason for hiding this comment

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

sleep 30 secs is not needed here, TestUtils.checkPodReady checks in loop. This adds up test run time. @hzhao-github @anpanigr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed. However, if there no any waiting time, the test will start before the pod become ready. Tried 10 seconds but not working.

Copy link
Member

Choose a reason for hiding this comment

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

TestUtils.checkPodReady waits upto 250 seconds for the pod to become ready in loop. which test starts before the pod is ready?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, TestUtils.checkPodReady waits upto 250 seconds, not 50 seconds as I mentioned below. Let me remove the sleep time here. If the test still fails, we need to file a bug for too long for a pod to become ready online


// Restore test env
// Wait some time for ms pod to become ready
Thread.sleep(30 * 1000);
Copy link
Member

Choose a reason for hiding this comment

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

sleep 30 secs is not needed here, TestUtils.checkPodReady checks in loop. This adds up test run time. @hzhao-github @anpanigr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed. However, if there no any waiting time, the test will start before the pod become ready. Tried 10 seconds butnot working.

Copy link
Member

Choose a reason for hiding this comment

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

Can you explicitly wait for the pod to become ready rather than just a blind 30 seconds? We have code that does this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Ryan, entire block of that part looks like:

// Restore test env
// Wait some time for ms pod to become ready
Thread.sleep(30 * 1000);
TestUtils.checkPodReady(domainUid + "-" + primaryServName1, domainNS);

TestUtils.checkPodReady waits for 50 seconds for a pod gets ready. Since this test delete the pod, most likely, 50 econds is not long enough for the pod become up and running online again.

How about this, Vanaja if I make this changes:

In BaseTest.java, add a new set method to change

private static int maxIterationsPod = 50;

to a longer time, like maxIterationsPod = 90;

Copy link
Member

Choose a reason for hiding this comment

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

why only 50 seconds? TestUtils.checkPodReady waits upto 250 seconds for the pod to become ready in loop. See below props defined in Operator.props file.

maxIterationsPod=25
waitTimePod=10

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was wrong. Yes, we wait up to 250 seconds :)

@vanajamukkara
Copy link
Member

vanajamukkara commented Mar 25, 2019

Kicked off run on Jenkins #1350

There are lot of failures in this run, you should sync to the latest develop branch first. Also, post the latest Jenkins run results with these changes.

@hzhao-github
Copy link
Contributor Author

for an unknown reason, "mvn clean verify -P java-integration-tests" failed to me no matter what I do, tried in my local below, both had same set of failures. The failure looks like I didn't get the fix just merged a few days ago. Can you please give advice what I did wrong?

git clone -b develop https://github.com/oracle/weblogic-kubernetes-operator.git
mvn clean verify -P java-integration-tests

git clone -b develop https://github.com/oracle/weblogic-kubernetes-operator.git
mvn clean verify -P java-integration-tests
git checkout session-migration-tests

@vanajamukkara
Copy link
Member

for an unknown reason, "mvn clean verify -P java-integration-tests" failed to me no matter what I do, tried in my local below, both had same set of failures. The failure looks like I didn't get the fix just merged a few days ago. Can you please give advice what I did wrong?

git clone -b develop https://github.com/oracle/weblogic-kubernetes-operator.git
mvn clean verify -P java-integration-tests

git clone -b develop https://github.com/oracle/weblogic-kubernetes-operator.git
mvn clean verify -P java-integration-tests
git checkout session-migration-tests

You need to get the latest from develop into your branch. Do the following..
git pull origin develop
git status
Resolve the conflicts and merge if any
git add
git commit -m "...."
git push --set-upstream origin session-migration-tests

@hzhao-github
Copy link
Contributor Author

Thanks, Vanaja, I did wrong to sync up with develop :(

@hzhao-github
Copy link
Contributor Author

Vanaja, full steps to sync up with develop branch looks like this, right?

git clone -b session-migration-tests https://github.com/oracle/weblogic-kubernetes-operator.git
cd weblogic-kubernetes-operator
git pull origin develop
git status
Resolve the conflicts and merge if any
git add
git commit -m "...."
git push --set-upstream origin session-migration-tests

…es-operator into session-migration-tests

To pull the latest bevelop branch into session-migration-tests branch
@hzhao-github
Copy link
Contributor Author

Eventually get this results :). Let me kick off Jenkins run
[ERROR] Errors:
[ERROR] ITOperator.testDomainOnPVUsingWDT:131->BaseTest.testWLDFScaling:459 � Runtime ...
[INFO]
[ERROR] Tests run: 37, Failures: 0, Errors: 1, Skipped: 1

@vanajamukkara
Copy link
Member

@hzhao-github have you updated README.md with new tests you have added?

@hzhao-github
Copy link
Contributor Author

hzhao-github commented Mar 26, 2019

got expected results on Jenkins

http://****/job/weblogic-kubernetes-operator-javatest/1376/consoleFull

[INFO]
[ERROR] Errors:
[ERROR] ITOperator.testDomainOnPVUsingWDT:131->BaseTest.testWLDFScaling:458 ? Runtime ...
[INFO]
[ERROR] Tests run: 43, Failures: 0, Errors: 1, Skipped: 1

@hzhao-github hzhao-github changed the title WIP: Completed JIRA OWLS-71984 - Migrate Session Migration test suite to GitHub Completed JIRA OWLS-71984 - Migrate Session Migration test suite to GitHub Mar 26, 2019
@vanajamukkara vanajamukkara changed the title Completed JIRA OWLS-71984 - Migrate Session Migration test suite to GitHub READY TO MERGE: Completed JIRA OWLS-71984 - Migrate Session Migration test suite to GitHub Mar 28, 2019
@rjeberhard rjeberhard merged commit e876e1e into develop Mar 28, 2019
@rjeberhard rjeberhard deleted the session-migration-tests branch April 9, 2019 12:20
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