Skip to content

TEZ-4695: Consolidate surefire plugin config to remove redundant surefire blocks - #467

Merged
abstractdog merged 2 commits into
apache:masterfrom
Aggarwal-Raghav:TEZ-4695
Mar 19, 2026
Merged

TEZ-4695: Consolidate surefire plugin config to remove redundant surefire blocks#467
abstractdog merged 2 commits into
apache:masterfrom
Aggarwal-Raghav:TEZ-4695

Conversation

@Aggarwal-Raghav

@Aggarwal-RaghavAggarwal-Raghav commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

The surefire changes are to pass the argline defines in parent pom to child pom and the environment variables defined in parent pom, child pom should inherit them. This will reduce explicit surefire plugin block in child module pom

@Aggarwal-Raghav

Aggarwal-Raghav commented Mar 17, 2026

Copy link
Copy Markdown
ContributorAuthor

Based on discussion #465 (comment), created separate PR for surefire changes.

Comment threadpom.xml
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<testFailureIgnore>true</testFailureIgnore>
<argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
<argLine>${test.jvm.args}</argLine>

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Having 2 argline is a BUG. The test.jvm.args is overwriting the above argLine i.e. Xmx one
Screenshots:
Before:
Image

After:
Image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Aggarwal-Raghav : patch itself looks good to me, only a minor concern: now as -Xmx1024m finally applied post-patch, I'm not sure how that behave pre-patch in terms of max heap? the only reason I'm worried about this is that unit tests look to be slower in this run, e.g. tez-dag took 6min, while in other PRs it was 3-4mins consistently

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the default Xmx value was behaving well so far (locally and CI) then we could keep it the same for now. We could revisit the size if/when we encounter memory issues.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

agreed, if pre-patch there was no Xmx applied, we can simply remove it now, no further investigation needed

@abstractdogabstractdog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, pending tests
this looks a good improvement with reducing duplicated pom snippets

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec7m 33sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+0 🆗xmllint0m 0sxmllint was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+0 🆗mvndep2m 26sMaven dependency ordering for branch
+1 💚mvninstall9m 11smaster passed
+1 💚compile4m 15smaster passed
+1 💚javadoc2m 49smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 36sthe patch passed
+1 💚codespell1m 34sNo new issues.
+1 💚compile4m 12sthe patch passed
+1 💚javac4m 12sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚javadoc2m 43sthe patch passed
_ Other Tests _
+1 💚unit6m 6stez-dag in the patch passed.
+1 💚unit39m 12stez-tests in the patch passed.
+1 💚unit4m 30stez-ext-service-tests in the patch passed.
+1 💚unit72m 42sroot in the patch passed.
+1 💚asflicense1m 56sThe patch does not generate ASF License warnings.
166m 45s
SubsystemReport/Notes
DockerClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/1/artifact/out/Dockerfile
GITHUB PR#467
Optional Testsdupname asflicense javac javadoc unit codespell detsecrets xmllint compile
unameLinux b7476705d2ce 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/tez-multibranch_PR-467/src/.yetus/personality.sh
git revisionmaster / 592c7c5
Default JavaUbuntu-21.0.10+7-Ubuntu-124.04
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/1/testReport/
Max. process+thread count2102 (vs. ulimit of 5500)
modulesC: tez-dag tez-tests tez-ext-service-tests . U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/1/console
versionsgit=2.43.0 maven=3.8.7 codespell=2.4.1
Powered byApache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

Comment threadpom.xml Outdated
<testFailureIgnore>true</testFailureIgnore>
<argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
<argLine>${test.jvm.args}</argLine>
<argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError ${test.jvm.args}</argLine>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The test.jvm.args property was only meant to be used for surefire. Since we only use it here we could get rid of the property and simply inline the content here.

Comment threadtez-dag/pom.xml Outdated
<environmentVariables>
<LOG_DIRS>${test.log.dir}</LOG_DIRS>
<environmentVariables combine.children="append">
<TEZ_AM_EXTERNAL_ID>test-external-id</TEZ_AM_EXTERNAL_ID>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For simplicity, maybe we could also put this env var in the main pom.xml file.

Comment threadpom.xml
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<testFailureIgnore>true</testFailureIgnore>
<argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
<argLine>${test.jvm.args}</argLine>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the default Xmx value was behaving well so far (locally and CI) then we could keep it the same for now. We could revisit the size if/when we encounter memory issues.

@Aggarwal-Raghav

Copy link
Copy Markdown
ContributorAuthor

Thanks a lot for the review @abstractdog , @zabetak . Will update the PR in some time.

Comment threadpom.xml
-XX:+HeapDumpOnOutOfMemoryError
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

In 3rd --add-opens java.base/java.io=ALL-UNNAMED equals was missing in <test.jvm.args> added it.

Comment threadtez-tests/pom.xml
<artifactId>tez-tests</artifactId>

<properties>
<test.log.dir>${project.build.directory}/logs</test.log.dir>

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

removed <test.log.dir> property from child pom's . The ant plugin in child pom is still using it but the appropriate value is propagated from parent pom to child pom.

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec7m 12sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+0 🆗xmllint0m 0sxmllint was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+0 🆗mvndep2m 26sMaven dependency ordering for branch
+1 💚mvninstall9m 28smaster passed
+1 💚compile4m 15smaster passed
+1 💚javadoc2m 47smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall5m 34sthe patch passed
+1 💚codespell1m 34sNo new issues.
+1 💚compile4m 9sthe patch passed
+1 💚javac4m 9sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚javadoc2m 34sthe patch passed
_ Other Tests _
+1 💚unit5m 46stez-dag in the patch passed.
+1 💚unit37m 45stez-tests in the patch passed.
+1 💚unit4m 25stez-ext-service-tests in the patch passed.
+1 💚unit72m 27sroot in the patch passed.
+1 💚asflicense1m 51sThe patch does not generate ASF License warnings.
164m 15s
SubsystemReport/Notes
DockerClientAPI=1.54 ServerAPI=1.54 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/2/artifact/out/Dockerfile
GITHUB PR#467
Optional Testsdupname asflicense javac javadoc unit codespell detsecrets xmllint compile
unameLinux bfba46fdfe12 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-home/workspace/tez-multibranch_PR-467/src/.yetus/personality.sh
git revisionmaster / fc230c5
Default JavaUbuntu-21.0.10+7-Ubuntu-124.04
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/2/testReport/
Max. process+thread count1409 (vs. ulimit of 5500)
modulesC: tez-dag tez-tests tez-ext-service-tests . U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-467/2/console
versionsgit=2.43.0 maven=3.8.7 codespell=2.4.1
Powered byApache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

@zabetakzabetak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@abstractdog

Copy link
Copy Markdown
Contributor

neat, and makes pom.xml much cleaner, thanks @Aggarwal-Raghav, merging this soon
thanks @zabetak for the review!

@abstractdog
abstractdog self-requested a review March 19, 2026 08:31
@abstractdog
abstractdog merged commit de1c2c8 into apache:masterMar 19, 2026
4 checks passed
@Aggarwal-Raghav
Aggarwal-Raghav deleted the TEZ-4695 branch May 1, 2026 05:52
Sign up for freeto 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

@Aggarwal-Raghav@tez-yetus@abstractdog@zabetak