Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Disable Maven forking in Travis-CI to fix build issues #110

Merged
merged 2 commits into from
Feb 10, 2016
Merged

Disable Maven forking in Travis-CI to fix build issues #110

merged 2 commits into from
Feb 10, 2016

Conversation

dhalperi
Copy link
Contributor

  • See Problems with JDK on sudo:false instances travis-ci/travis-ci#3396. Basically, there's an error that does not properly pass -Xmx and similar arguments to the forked JVMs that Javadoc, Surefire, and other plugins invoke. This bug causes the forked JVMs to exceed the container's RAM limit, the JVMs to get killed, and the builds to fail.

    Disabling the forking by setting -DforkCount=0 in the Maven command seems to have resolved the issue, and it does not slow down build time much.

  • However, the underlying bug seems to only affect Linux VMs, and not OS X. Additionally, disabling forking in the OS X tests causes them to fail for another lingering Travis issue (PermSize in OS X). So, I rewrote the test matrix to only disable forking with the above argument for Linux tests.

  • In the cleanup, I rewrote the test matrix for Travis to be simpler and cleaner.

It appears that truncate mode is not supported for unbounded
PCollection.

Error message:

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on
project
google-cloud-dataflow-java-examples-all: An exception occured while
executing th
e Java class. null: InvocationTargetException:
WriteDisposition.WRITE_TRUNCATE is not supported for unbounded
PCollections or when using tablespec functions. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug
logging.
[ERROR]
[ERROR] For more information about the errors and possible
solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@dhalperi dhalperi changed the title Pr108 take2 Disable Maven forking in Travis-CI to fix build issues Feb 10, 2016
@dhalperi
Copy link
Contributor Author

CLA for Rafal is confirmed via Spotify, as in PR #108.

This PR includes #108 so that I could fix the build issues.

@dhalperi dhalperi added cla: yes and removed cla: no labels Feb 10, 2016
@dhalperi dhalperi assigned davorbonaci and unassigned davorbonaci Feb 10, 2016
@dhalperi
Copy link
Contributor Author

Ugh, now causing OS X build problems. Unassigning

@dhalperi
Copy link
Contributor Author

Problems fixed; involved a test matrix rewrite. Though the new matrix is much cleaner. See the updated PR description.

@davorbonaci
Copy link
Contributor

LGTM. Merging.

davorbonaci added a commit that referenced this pull request Feb 10, 2016
Disable Maven forking in Travis-CI to fix build issues
@davorbonaci davorbonaci merged commit 793a652 into GoogleCloudPlatform:master Feb 10, 2016
robertwb pushed a commit to robertwb/DataflowJavaSDK that referenced this pull request Feb 19, 2016
Disable Maven forking in Travis-CI to fix build issues
@dhalperi dhalperi deleted the pr108-take2 branch March 23, 2016 07:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants