Skip to content

TEZ-4472: Use unique DAG names in tests. - #293

Merged
abstractdog merged 4 commits into
apache:masterfrom
ayushtkn:TEZ-4472
Jun 23, 2023
Merged

TEZ-4472: Use unique DAG names in tests.#293
abstractdog merged 4 commits into
apache:masterfrom
ayushtkn:TEZ-4472

Conversation

@ayushtkn

Copy link
Copy Markdown
Member

No description provided.

Change-Id: Ibbec29dc3ac57414943e9cb35121187c2251cf71
@tez-yetus

This comment was marked as outdated.

Change-Id: Ie57c9b944d08f107b7b2f8e839aed6392adacb27
@ayushtkn

Copy link
Copy Markdown
MemberAuthor

Fixed test, the checkstyle warnings in TestCommit weren't actually induced here, but got pop up because I touched those lines, had to change the variable name to get them going

@tez-yetus

This comment was marked as outdated.

LOG.info("Setting up mixed edge dag plan");
org.apache.tez.dag.api.DAG dag = org.apache.tez.dag.api.DAG.create("MixedEdges");
org.apache.tez.dag.api.DAG dag =
org.apache.tez.dag.api.DAG.create("Dag-MixedEdges-" + dagNeme);

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.

typo: neme

@abstractdog

Copy link
Copy Markdown
Contributor

@ayushtkn: this patch covers much more test classes than I expected, which is a huge work thanks!
I feel that as you're about addressing as much as possible, maybe it's time to figure out a test dag name convention: some uses "Dag-" prefix, other uses "testdag", yet another uses only the test case's name...I don't have strong opinion about that, and I'm afraid it can still diverge later, but now it would make sense to unify it

@Test (timeout = 5000)
public void testTezclientApp() throws Exception {
testTezClient(false, true);
testTezClient(false, true, "testTezclientApp");

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.

I know this patch is not about that, but...: can you please fix all occurrences of "Tezclient" -> "TezClient"?
feel free to create a new ticket if you want

Change-Id: Ib1129ed8b9dc2edfea57c365551d466b3e6eade8
@abstractdog

abstractdog commented Jun 23, 2023

Copy link
Copy Markdown
Contributor

thanks @ayushtkn ! one more class to address here, can you please check TestLocalMode too? I remember that was root cause of my headache originally that I workarounded with something like (with respecting the junit parameters), can you adapt it?

private String generateDagName(String baseName) {
return baseName + (useDfs ? "_useDfs" : "") + (useLocalModeWithoutNetwork ? "_useLocalModeWithoutNetwork" : "");
}

and:

 private DAG createSimpleDAG(String dagName, String processorName) {
+ dagName = generateDagName(dagName);
DAG dag1 = createSimpleDAG("dag1", FailingProcessor.class.getName());
DAG dag1 = createSimpleDAG("DAG-testNoSysExitOnFailinglDAG", FailingProcessor.class.getName());

Change-Id: I611eb74577643feebf7dbf0aa37d6d41890cd5d6
@abstractdog
abstractdog self-requested a review June 23, 2023 08:41

@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.

+1
pending tests

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 19sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 15 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep6m 9sMaven dependency ordering for branch
+1 💚mvninstall9m 50smaster passed
+1 💚compile2m 4smaster passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚compile1m 56smaster passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚checkstyle2m 6smaster passed
+1 💚javadoc1m 43smaster passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javadoc1m 36smaster passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+0 🆗spotbugs0m 51sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs3m 41smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall1m 9sthe patch passed
+1 💚compile1m 16sthe patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javac1m 16sthe patch passed
+1 💚compile1m 4sthe patch passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚javac1m 4sthe patch passed
-0 ⚠️checkstyle0m 27stez-dag: The patch generated 1 new + 276 unchanged - 7 fixed = 277 total (was 283)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 45sthe patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javadoc0m 44sthe patch passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚findbugs2m 52sthe patch passed
_ Other Tests _
+1 💚unit2m 16stez-api in the patch passed.
-1 ❌unit5m 9stez-dag in the patch failed.
+1 💚unit41m 3stez-tests in the patch passed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
89m 23s
ReasonTests
Failed junit teststez.dag.app.rm.TestTaskScheduler
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/3/artifact/out/Dockerfile
GITHUB PR#293
JIRA IssueTEZ-4472
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux edd9f98f2932 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / d20f334
Default JavaPrivate Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
checkstylehttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/3/artifact/out/diff-checkstyle-tez-dag.txt
unithttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/3/artifact/out/patch-unit-tez-dag.txt
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/3/testReport/
Max. process+thread count1426 (vs. ulimit of 5500)
modulesC: tez-api tez-dag tez-tests U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/3/console
versionsgit=2.34.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 19sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 16 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep6m 27sMaven dependency ordering for branch
+1 💚mvninstall10m 14smaster passed
+1 💚compile2m 1smaster passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚compile1m 53smaster passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚checkstyle2m 6smaster passed
+1 💚javadoc1m 40smaster passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javadoc1m 37smaster passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+0 🆗spotbugs0m 52sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs3m 21smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 10sMaven dependency ordering for patch
+1 💚mvninstall1m 8sthe patch passed
+1 💚compile1m 13sthe patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javac1m 13sthe patch passed
+1 💚compile1m 5sthe patch passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚javac1m 5sthe patch passed
-0 ⚠️checkstyle0m 27stez-dag: The patch generated 1 new + 276 unchanged - 7 fixed = 277 total (was 283)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 45sthe patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1
+1 💚javadoc0m 46sthe patch passed with JDK Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
+1 💚findbugs2m 54sthe patch passed
_ Other Tests _
+1 💚unit2m 16stez-api in the patch passed.
+1 💚unit5m 10stez-dag in the patch passed.
-1 ❌unit39m 27stez-tests in the patch failed.
+1 💚asflicense0m 41sThe patch does not generate ASF License warnings.
88m 5s
ReasonTests
Failed junit teststez.test.TestRecovery
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/4/artifact/out/Dockerfile
GITHUB PR#293
JIRA IssueTEZ-4472
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 7e7bc7e69129 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / d20f334
Default JavaPrivate Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu122.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-gaus1-0ubuntu122.04-b09
checkstylehttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/4/artifact/out/diff-checkstyle-tez-dag.txt
unithttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/4/artifact/out/patch-unit-tez-tests.txt
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/4/testReport/
Max. process+thread count1391 (vs. ulimit of 5500)
modulesC: tez-api tez-dag tez-tests U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-293/4/console
versionsgit=2.34.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@ayushtkn

Copy link
Copy Markdown
MemberAuthor

That checkstyle isn’t on me, I just touched that line, test failure doesn’t look related either

@abstractdog

Copy link
Copy Markdown
Contributor

agreed, TestTaskScheduler failure is crazy, nothing to do with this patch, we don't need a new precommit

@abstractdog
abstractdog merged commit 154fd34 into apache:masterJun 23, 2023
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.

3 participants

@ayushtkn@tez-yetus@abstractdog