-
Notifications
You must be signed in to change notification settings - Fork 55
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
JBIDE-25314 CDK launch configuration itests #1609
Conversation
testPR |
1 similar comment
testPR |
@odockal i must be missing something: When launching the tests I see it complaining about a profile related error
|
@robstryker dare to test this please? |
@adietish The error in the pic suggests that there is something wrong with .minishift folder, perhaps try to delete old minishift config (minishift delete, remove .minishift and .kube...) and then minishift setup-cdk from fresh. I have never seen such error before. |
@adietish for variables -Dminishift= and -Dminishift.profile= you must enter absolute path, otherwise the test will be failing, also for CDK32 tests you also need to set up -Dminishift= variable(something like: -Dminishift=/home/jkopriva/git/jkopriva/jbosstools-openshift/itests/org.jboss.tools.cdk.ui.bot.test/resources/cdk-files/linux/cdk-3.1.1-mock), @odockal is working on better variables handling otherwise tests are working for me without errors |
When I run the tests, I get tons of failures. Tests run: 28, Failures: 12, Errors: 3, Skipped: 0 [rob@rawbdorable org.jboss.tools.cdk.ui.bot.test] (cdk-launch)$ mvn clean install -DskipTests=false -DskipITests=false -PITests -Dminishift.hypervisor=virtualbox -Dminishift=/home/rob/Downloads/cdk/minishift/cdk3.1.1.20170911/minishift -Dminishift.profile=/home/rob/Downloads/cdk/minishift/cdk32a1/minishift -Ddevelopers.username=rstryker@redhat.com -Ddevelopers.password=xxxxx -Dsecurestorage.password=xxxxx -Dvagrantfile=/home/rob/Downloads/cdk/cdk-install/25-Jan-2017.rc0/cdk/components/rhel/rhel-ose/ -Dusage_reporting_enabled=false One of the problems (for me) seems to be that the @RemoveCDKServers requirement doesn't seem to be running. If I change a number of dialog.finish(TimePeriod.MEDIUM); with dialog.cancel(); CDK32ServerWizardTest.java I've run these tests repeatedly for a day now and I can't really allocate any more time towards them. I also believe this patch needs to be rebased against master, because JBIDE-25308 will cause some of the tests to fail, and this was only committed recently. |
@odockal re-installing cdk helped. But using CDK 3.2-rc2 and running the tests in the following way:
I unfortunately now face the following errors (which match the errors that @robstryker reported above):
|
correcting the cmd-line to the following:
I now have 1 error left:
|
@robstryker @adietish I thank you guys for the feedback! Today I have planned to incorporate your comments into code.
this failure should be solved as #1606 was merged recently, so uage of newest devstudio should do the job. But I must say that I wrote the test before the PR was merged and thus I did not test it myself that it is working, will check today.
Thanks for patience with itests! |
ff36763
to
c1f05eb
Compare
@Override | ||
public void runAfter() { | ||
deleteCDKServers(); | ||
// log.info("Deleting all CDK server adapters in runAfter"); |
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.
Running the latest version of this PR I unfortunately still get the following error:
|
Do you have some newer devstudio or jbt? It is running for me with devstudio version 11.2.0-v20171115-0753-B1626. |
i am running from master branch aka source plugins. |
|
||
private CDKLaunchConfigurationDialog launchDialog; | ||
|
||
private static final Logger log = Logger.getLogger(CDKLaunchConfigurationTest.class); |
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.
good practice for static variables is to name them in capital letters. Preferrable would be for instance
private static final Logger LOG
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 believe that in this case we should always use lower case as we use "log" as a final reference instance of Logger class. It is always used to access Logger's method such as log or debug, so always in format log.info(...) or log.error(...). I like this convention more as you can type without using shift. And of course I found something on stackoverflow (https://stackoverflow.com/questions/1417190/should-a-static-final-logger-be-declared-in-upper-case) which support my individual preference. After all, all above is my feeling and I believe that usage of log in lower case is the most used convention across itests repos. but int the end, this is decision of contributors in given plugin. I would vote for using lower case for final reference variable that are used to access methods (thus always followed with a dot, please, see https://web.archive.org/web/20120911192801/developers.sun.com/sunstudio/products/archive/whitepapers/java-style.pdf - Field naming).
running the latest PR (via maven) I have
Weird enough, when running |
@robstryker dare to run this and confirm/refute please? |
i have this finally running fine, the problem being outdated maven artifacts. Killing .m2/org.jboss.tools.openshift and reinstalling them helped.
|
- New test class CDKLaunchConfigurationTest - CDKSmoke, CDK32AllTests and CDKAllTests suites extended with new test class - CDKLaunchConfigurationDialog added into cdk.reddeer plugin - New mock files representing cdk binaries - Remove deprecated CDK3 test classes - Add check of OS and docker after restart Signed-off-by: Ondrej Dockal <odockal@redhat.com>
with latest master installed as maven artifacts, running this fails for me on
|
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.
runs fine in Eclipse. Merging.
Signed-off-by: Ondrej Dockal odockal@redhat.com
Pull Request Checklist
General
Code
Testing
Function