Skip to content

Commit

Permalink
[FLINK-32834] Force parallelism of 1
Browse files Browse the repository at this point in the history
The maven output parsers rely on certain order of messages which can be broken by multi-threaded builds.
  • Loading branch information
zentol committed Aug 17, 2023
1 parent 3e5eca7 commit 6faf368
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tools/ci/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ echo "==========================================================================

EXIT_CODE=0

# run with -T1 because our maven output parsers don't support multi-threaded builds
$MVN clean deploy -DaltDeploymentRepository=validation_repository::default::file:$MVN_VALIDATION_DIR -Dflink.convergence.phase=install -Pcheck-convergence \
-Dmaven.javadoc.skip=true -U -DskipTests "${@}" | tee $MVN_CLEAN_COMPILE_OUT
-Dmaven.javadoc.skip=true -U -DskipTests "${@}" -T1 | tee $MVN_CLEAN_COMPILE_OUT

EXIT_CODE=${PIPESTATUS[0]}

Expand Down
3 changes: 2 additions & 1 deletion tools/ci/verify_bundled_optional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ MVN=${MVN:-./mvnw}

dependency_plugin_output=/tmp/optional_dep.txt

$MVN dependency:tree -B > "${dependency_plugin_output}"
# run with -T1 because our maven output parsers don't support multi-threaded builds
$MVN dependency:tree -B -T1 > "${dependency_plugin_output}"
EXIT_CODE=$?

if [ $EXIT_CODE != 0 ]; then
Expand Down
3 changes: 2 additions & 1 deletion tools/ci/verify_scala_suffixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ echo "If you haven't built the project, please do so first by running \"mvn clea

dependency_plugin_output=/tmp/dep.txt

$MVN dependency:tree -Dincludes=org.scala-lang,:*_2.1*:: ${MAVEN_ARGUMENTS} > "${dependency_plugin_output}"
# run with -T1 because our maven output parsers don't support multi-threaded builds
$MVN dependency:tree -Dincludes=org.scala-lang,:*_2.1*:: ${MAVEN_ARGUMENTS} -T1 > "${dependency_plugin_output}"
EXIT_CODE=$?

if [ $EXIT_CODE != 0 ]; then
Expand Down

0 comments on commit 6faf368

Please sign in to comment.