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

Fixes and cleanup for Java tests and CI #442

Merged
merged 9 commits into from
Jun 13, 2018

Conversation

raphinesse
Copy link
Contributor

@raphinesse raphinesse commented May 17, 2018

Details in commit messages

@raphinesse raphinesse force-pushed the fix-tests branch 2 times, most recently from 73111f3 to 5797228 Compare May 17, 2018 17:11
@raphinesse raphinesse changed the title Deduplicate output and fix exit code for java tests Fix Java tests on CI May 17, 2018
@raphinesse raphinesse changed the title Fix Java tests on CI WIP Fix Java tests on CI May 17, 2018
@raphinesse raphinesse changed the title WIP Fix Java tests on CI Fix Java tests on CI May 17, 2018
@raphinesse raphinesse changed the title Fix Java tests on CI WIP Fix Java tests on CI May 17, 2018
@raphinesse raphinesse force-pushed the fix-tests branch 2 times, most recently from f22bec6 to 5797228 Compare May 17, 2018 23:56
@dpogue
Copy link
Member

dpogue commented May 18, 2018

Travis should be running, I'll open an issue with the ASF INFRA team to get it hooked up again. Please let me know if you notice any other repos where it's stopped picking up new PRs.

@dpogue dpogue closed this May 18, 2018
@dpogue dpogue reopened this May 18, 2018
@raphinesse raphinesse changed the title WIP Fix Java tests on CI Fix Java tests on CI May 19, 2018
@codecov-io

This comment has been minimized.

@shazron
Copy link
Member

shazron commented May 21, 2018

@dpogue @infil00p is this good to go?

@dpogue
Copy link
Member

dpogue commented May 22, 2018

Looks fine to me, and the tests pass, but @infil00p would know better the gradle requirements and whether this makes sense.

@dpogue dpogue requested a review from infil00p May 22, 2018 04:02
@raphinesse raphinesse force-pushed the fix-tests branch 4 times, most recently from f050cee to 741ad82 Compare May 31, 2018 22:49
@raphinesse raphinesse changed the title Fix Java tests on CI Fix Java tests and cleanup CI May 31, 2018
@raphinesse
Copy link
Contributor Author

I added my other CI related changes since they depend on the initial ones. Looking forward to reviews.

This should also fix the failing build for #445

@erisu erisu mentioned this pull request Jun 9, 2018
3 tasks
@raphinesse
Copy link
Contributor Author

Just a gentle reminder: Java Unit tests don't run on CI without this.

Would appreciate a review, @infil00p. I can split this up into a few different PRs if preferred.
The following would make sense:

  • Fix Java Unit tests (local and on CI)
  • Cleanup Java Unit tests
  • Cleanup CI configs
  • Update supported Node.js versions

@shazron
Copy link
Member

shazron commented Jun 13, 2018

I don't think Joe can chime in, he can't devote time to this at this juncture -- we'll just have to pull this in since its a blocker for other PRs, and deal with any incompatibilities as they come. I wish I had more input on this matter, but my Android knowledge (especially gradle issues) is minimal. Thoughts?

@raphinesse
Copy link
Contributor Author

Thanks for the info @shazron. I will go ahead, give this a last polish and merge then. I am quite confident that these changes are OK. Furthermore, all of these changes only affect tests. So nothing too dangerous anyway.

@raphinesse raphinesse changed the title Fix Java tests and cleanup CI Fixes and cleanup for Java tests and CI Jun 13, 2018
Copy link
Member

@dpogue dpogue left a comment

Choose a reason for hiding this comment

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

Given this affects only tests and seems to simplify what's going on with the TravisCI stuff, I'm 👍 on merging.

This fixes the following issues:
* run_java_unit_tests.js always has exit code of 0 thus never failing
  the npm tests.
* "Tests completed successfully" is printed after failing to create the
  Gradle wrapper and never running the tests.
* Gradle errors are printed twice
Before this, Gradle 4.4 was required to build the Gradle wrapper and
thus run the Java tests. This was because of all the stuff that had to
be configured when running the wrapper task using the build.gradle file.

Now we use a config file that only specifies the required Gradle version
and nothing else to run the wrapper task. This allows tests to be run
with Gradle versions beginning with 2.
This accepts any unaccepted Android SDK licenses in Travis.
* Print Gradle version used for Java tests during build
* Allow Java tests to be run from any directory
* Simplify Promise wrapping in Java tests runner
* Minor improvements
* Use latest Android SDK tools for easier license handling
* Reduce installed SDK components to minimum (tools & build tools)
* Reduce unnecessary PATH manipulation
* Use preinstalled Gradle on Travis CI
* Improve Gradle output on Travis CI
* Use default image on AppVeyor
* Improve formatting & other minor tweaks
@raphinesse raphinesse merged commit 2106e2e into apache:master Jun 13, 2018
@raphinesse raphinesse deleted the fix-tests branch June 13, 2018 14:28
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