-
Notifications
You must be signed in to change notification settings - Fork 216
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
Conversation
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
Outdated
Show resolved
Hide resolved
Test results:
oracle.kubernetes.operator.ITSessionMigration didn't run
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 |
you need to push the commit with your changes |
Pushed my commit |
…e war file for web app in a server pod and deploy it from the pod
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/ITSessionMigration.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
Show resolved
Hide resolved
integration-tests/src/test/resources/apps/buildDeployWebAppInPod.sh
Outdated
Show resolved
Hide resolved
integration-tests/src/test/resources/apps/httpsessionreptestapp/CounterServlet.java
Show resolved
Hide resolved
integration-tests/src/test/resources/apps/httpsessionreptestapp/CounterServlet.java
Show resolved
Hide resolved
integration-tests/src/test/resources/apps/httpsessionreptestapp/WEB-INF/web.xml
Show resolved
Hide resolved
integration-tests/src/test/resources/apps/httpsessionreptestapp/WEB-INF/weblogic.xml
Show resolved
Hide resolved
Just pushed a new commit with changes to add these missing copyright and javadoc |
Kicked off run on Jenkins #1350 |
… file for EJB App in a server pod and deploy it from the pod
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
integration-tests/src/test/resources/apps/httpsessionreptestapp/CounterServlet.java
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
Outdated
Show resolved
Hide resolved
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. |
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 git clone -b develop https://github.com/oracle/weblogic-kubernetes-operator.git |
You need to get the latest from develop into your branch. Do the following.. |
Thanks, Vanaja, I did wrong to sync up with develop :( |
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 |
…es-operator into session-migration-tests To pull the latest bevelop branch into session-migration-tests branch
Eventually get this results :). Let me kick off Jenkins run |
@hzhao-github have you updated README.md with new tests you have added? |
…es-operator into session-migration-tests Adding the description to integration-tests
got expected results on Jenkins http://****/job/weblogic-kubernetes-operator-javatest/1376/consoleFull [INFO] |
Created on GitHub the first time