-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-2467] Restoring second travis job functionality #2300
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
| # Test core modules | ||
| - jdk: "oraclejdk7" | ||
| env: SCALA_VER="2.11" SPARK_VER="2.1.0" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pscalding -Phelium-dev -Pexamples -Pscala-2.11" BUILD_FLAG="package -Pbuild-distr -DskipRat" TEST_FLAG="verify -Pusing-packaged-distr -DskipRat" MODULES="-pl ${INTERPRETERS}" TEST_PROJECTS="-Dtest='!ZeppelinSparkClusterTest,!org.apache.zeppelin.spark.*' -DfailIfNoTests=false" | ||
| env: SCALA_VER="2.11" SPARK_VER="2.1.0" HADOOP_VER="2.6" PROFILE="-Pweb-ci -Pscalding -Phelium-dev -Pexamples -Pscala-2.11" BUILD_FLAG="package -Pbuild-distr -DskipRat" TEST_FLAG="verify -Pusing-packaged-distr -DskipRat" MODULES="-pl ${INTERPRETERS}" TEST_PROJECTS="-Dtests.to.exclude=**/ZeppelinSparkClusterTest.java,**/org.apache.zeppelin.spark.*,**/HeliumBundleFactoryTest.java,**/HeliumApplicationFactoryTest.java,**/NotebookTest.java,**/ZeppelinRestApiTest.java -DfailIfNoTests=false" |
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.
excluding the exact filename is a bit hard to maintain, I think? is there a way to exclude by subfolder/path?
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 agree that excluding tests by direct links is not the best way to solve the problem. But I couldn't think up anything more appropriate.
Excluding tests by packages will cause 15 more test files won't run because our 4 tests are located in 3 different packages in 2 different modules.
Maybe the better way will be to add an @Ignore annotation into test files instead of excluding them using travis configuration?
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.
Or how about add some verbose comments a line above to explain each file in tests.to.exclude flag?
The comments can mention JIRA issue. Then i think everyone can easily understand reason why the file is excluded and helps maintaining the travis.yml
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've added a comment about excluded tests
|
According to @Leemoonsoo suggestion I have added a comment for the travis job configuration about excluded tests. |
|
Travis build green. https://travis-ci.org/AlexanderShoshin/zeppelin/builds/228261473 LGTM and merge to master if no further discussions. |
|
even though CI was green in this PR at that time, it seems that wasn't rebased recently. As a result CI is failing only in the second travis JOB. @AlexanderShoshin Could you check that? |
### What is this PR for? Second travis job didn't work correctly. It suppose to test all core unit tests plus integration test (except for spark related test) but it was doing nothing. It was because of the exclamation mark in **-Dtest** property: ``` -Dtest='!ZeppelinSparkClusterTest,!org.apache.zeppelin.spark.*' ``` which is not supported by maven-surefire-plugin of version 2.17 (which is used in Zeppelin). Exclamation mark is supported started from 2.19 but still does not work properly. I've added plugin **exclude** configuratin instead of **-Dtest** property. After travis job was restored I had found that not all core tests were working properly. I have excluded them from the travis job for now and created jira issues: https://issues.apache.org/jira/browse/ZEPPELIN-2469 https://issues.apache.org/jira/browse/ZEPPELIN-2470 https://issues.apache.org/jira/browse/ZEPPELIN-2471 https://issues.apache.org/jira/browse/ZEPPELIN-2473 ### What type of PR is it? [Bug Fix] ### What is the Jira issue? [ZEPPELIN-2467](https://issues.apache.org/jira/browse/ZEPPELIN-2467) ### Questions: * Does the licenses files need update? **no** * Is there breaking changes for older versions? **no** * Does this needs documentation? **no** Author: Alexander Shoshin <[email protected]> Closes apache#2300 from AlexanderShoshin/ZEPPELIN-2467 and squashes the following commits: 78771e9 [Alexander Shoshin] made a comment about excluded tests dfa332f [Alexander Shoshin] changed -Dtest flag to -Dtests.to.exclude and excluded unstable tests 0448c4a [Alexander Shoshin] added ability to exclude some unit tests using command line
|
@AlexanderShoshin After merging this PR, we continued to got failed in CI. Can you handle it urgently? If it took some times, it would be better to revert this commit and merge it after fixing it. How do you think of it? |
|
I think we should revert this commit then. I won't be able to fix it fast. |
|
Thanks for your opinion. Then I'll revert it. Please reopen this PR and rebase it from current master. |
### What is this PR for? issue ZEPPELIN-2467 has resolved by #2300. However 8194a5e reverts #2300. This PR apply #2300 again with two more test exclusion: - SecurityRestApiTest (https://issues.apache.org/jira/browse/ZEPPELIN-2545) - NotebookSecurityRestApiTest (https://issues.apache.org/jira/browse/ZEPPELIN-2546) ### What type of PR is it? Bug Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2467 ### How should this be tested? CI becomes green ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Alexander Shoshin <[email protected]> Author: Lee moon soo <[email protected]> Closes #2342 from Leemoonsoo/fix_ci2 and squashes the following commits: 1a8f24b [Lee moon soo] exclude SecurityRestApiTest and NotebookSecurityRestApiTest 4f82243 [Alexander Shoshin] made a comment about excluded tests 95eb7be [Alexander Shoshin] changed -Dtest flag to -Dtests.to.exclude and excluded unstable tests 41af70f [Alexander Shoshin] added ability to exclude some unit tests using command line
What is this PR for?
Second travis job didn't work correctly. It suppose to test all core unit tests plus integration test (except for spark related test) but it was doing nothing.
It was because of the exclamation mark in -Dtest property:
which is not supported by maven-surefire-plugin of version 2.17 (which is used in Zeppelin). Exclamation mark is supported started from 2.19 but still does not work properly.
I've added plugin exclude configuratin instead of -Dtest property.
After travis job was restored I had found that not all core tests were working properly. I have excluded them from the travis job for now and created jira issues:
https://issues.apache.org/jira/browse/ZEPPELIN-2469
https://issues.apache.org/jira/browse/ZEPPELIN-2470
https://issues.apache.org/jira/browse/ZEPPELIN-2471
https://issues.apache.org/jira/browse/ZEPPELIN-2473
What type of PR is it?
[Bug Fix]
What is the Jira issue?
ZEPPELIN-2467
Questions: