Closed miguelatvaadin closed 2 years ago
Here follows a link related to this task, pointed out by Soroosh: https://www.hascode.com/2014/05/allocating-available-random-ports-in-a-maven-build/
If it can be of interest, I use build-helper-maven-plugin for getting random ports for servlet containers and embedded databases during integration tests https://www.mojohaus.org/build-helper-maven-plugin/reserve-network-port-mojo.html
If it can be of interest, I use build-helper-maven-plugin for getting random ports for servlet containers and embedded databases during integration tests https://www.mojohaus.org/build-helper-maven-plugin/reserve-network-port-mojo.html
Many thanks, Marco. I'll have a look at it
Speeding up the Flow validation by parallel test execution is currently underway by @manolo .
Description of the bug / feature
Enable maven parallel execution of modules (e.g. by using the T1C parameter).
As a first step, we should find the way to automatically assign a free port to the jetty (and to the webpack-dev-server, when involved). Also, some plugins are not marked as thread safe, so we should also check that there are not more conflicts which prevent us from running the modules in parallel.
Minimal reproducible example
run
mvn -T1C -B -e -V -Pvalidation -Pnpm -Dcom.vaadin.testbench.Parameters.maxAttempts=2 clean verify
Expected behavior
build ends with SUCCESS and we experience a 15-20 minutes build time improvement
Actual behavior
integration test modules build fail when using the T1C parameter: