You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/01 16:07:34 UTC
[GitHub] [pulsar] lhotari opened a new pull request #10772: [Build] Fix build_java_test_image.sh script
lhotari opened a new pull request #10772:
URL: https://github.com/apache/pulsar/pull/10772
### Motivation & Modifications
- The `build_java_test_image.sh` script is currently broken. When starting with a clean `~/.mvn/repository/org/apache/pulsar`, the script will fail with errors about not finding `test-jar` type of dependencies.
- `build_java_test_image.sh` script passes `-Dmaven.test.skip=true` to the mvn build to
speed up the build by skipping the test classes compilation and packaging of `test-jar` dependencies
- `test-jar` dependencies have to be part of a separate profile for this to work. The profile
gets activated if `maven.test.skip` != true
- the benefit of skipping test compilation is the quicker feedback loop in developing Pulsar where docker images are required as part of the development testing process. This is the case for more complex usage scenarios where a test case might be leveraging a helm deployment to k8s.
- The `build_java_test_image.sh` script can be used in Pulsar development to quickly build a minimal Docker image that is used in a development time k8s environment such as minikube, kind or microk8s.
- Removing even just 10 seconds from the build time is useful in this type of use case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] sijie merged pull request #10772: [Build] Fix build_java_test_image.sh script
Posted by GitBox <gi...@apache.org>.
sijie merged pull request #10772:
URL: https://github.com/apache/pulsar/pull/10772
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org