Skip to content

Conversation

@abstractdog
Copy link
Contributor

No description provided.

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

Copy link
Contributor

@okumin okumin left a comment

Choose a reason for hiding this comment

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

LGTM

@abstractdog
Copy link
Contributor Author

rebased on top of current master
thanks a lot @okumin for your review so far!
@ayushtkn , wdyt, could we go ahead with this?

@tez-yetus

This comment was marked as outdated.

Comment on lines 308 to 328
assertEquals(conf.get("tez.lib.uris"), "tez.tar.gz");
}

@Test(timeout = 5000)
public void testPluginsDescriptorFromJSON() throws IOException {
InputStream is = ClassLoader.getSystemResourceAsStream(TezConstants.SERVICE_PLUGINS_DESCRIPTOR_JSON);
ServicePluginsDescriptor spd = TezClientUtils.createPluginsDescriptorFromJSON(is);
TaskSchedulerDescriptor tsd = spd.getTaskSchedulerDescriptors()[0];
ContainerLauncherDescriptor cld = spd.getContainerLauncherDescriptors()[0];
TaskCommunicatorDescriptor tcd = spd.getTaskCommunicatorDescriptors()[0];

assertFalse(spd.areContainersEnabled());
assertTrue(spd.isUberEnabled());
assertEquals(tsd.getClassName(), "testScheduler0_class");
assertEquals(tsd.getEntityName(), "testScheduler0");
assertEquals(cld.getClassName(), "testLauncher0_class");
assertEquals(cld.getEntityName(), "testLauncher0");
assertEquals(tcd.getClassName(), "testComm0_class");
assertEquals(tcd.getEntityName(), "testComm0");
assertEquals(tcd.getUserPayload().getVersion(), 1);
assertArrayEquals(tcd.getUserPayload().deepCopyAsArray(), new byte[] {0, 0, 0, 1});
Copy link
Member

Choose a reason for hiding this comment

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

can you check the order of arguments in assertEquals, the expected in first argument actual is second, I think it is opposite here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, let me fix

}
}

public static Configuration readTezConfigurationXml(InputStream is) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't throw IOE

return configuration;
}

public static ConfigurationProto loadConfProtoFromText() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

which method call this? this shows as unused. Removing it doesn't make any test fail either

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, this is supposed to be added by TEZ-4007 or TEZ-4008, removing it now

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@tez-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 16s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 xmllint 0m 0s xmllint was not available.
+0 🆗 jsonlint 0m 0s jsonlint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 3 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 2m 31s Maven dependency ordering for branch
+1 💚 mvninstall 9m 33s master passed
+1 💚 compile 3m 27s master passed
+1 💚 checkstyle 1m 49s master passed
+1 💚 javadoc 2m 34s master passed
+0 🆗 spotbugs 2m 9s tez-api in master has 610 extant spotbugs warnings.
+0 🆗 spotbugs 0m 45s tez-common in master has 13 extant spotbugs warnings.
+0 🆗 spotbugs 6m 53s root in master has 2066 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 5m 5s the patch passed
+1 💚 codespell 0m 50s No new issues.
+1 💚 compile 3m 26s the patch passed
+1 💚 javac 3m 26s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 26s tez-api: The patch generated 0 new + 63 unchanged - 4 fixed = 63 total (was 67)
+1 💚 checkstyle 0m 24s The patch passed checkstyle in tez-common
+1 💚 checkstyle 0m 41s root: The patch generated 0 new + 127 unchanged - 4 fixed = 127 total (was 131)
+1 💚 javadoc 2m 26s the patch passed
+1 💚 spotbugs 9m 53s the patch passed
_ Other Tests _
+1 💚 unit 2m 28s tez-api in the patch passed.
+1 💚 unit 0m 43s tez-common in the patch passed.
+1 💚 unit 71m 57s root in the patch passed.
+1 💚 asflicense 1m 20s The patch does not generate ASF License warnings.
133m 14s
Subsystem Report/Notes
Docker ClientAPI=1.51 ServerAPI=1.51 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-408/7/artifact/out/Dockerfile
GITHUB PR #408
Optional Tests dupname asflicense javac javadoc unit codespell detsecrets xmllint compile spotbugs checkstyle jsonlint
uname Linux 1f350f03d919 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-home/workspace/tez-multibranch_PR-408/src/.yetus/personality.sh
git revision master / 1c21f1f
Default Java Ubuntu-21.0.8+9-Ubuntu-0ubuntu124.04.1
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-408/7/testReport/
Max. process+thread count 1322 (vs. ulimit of 5500)
modules C: tez-api tez-common . U: .
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-408/7/console
versions git=2.43.0 maven=3.8.7 spotbugs=4.9.3 codespell=2.0.0
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

LGTM

@abstractdog abstractdog merged commit 6e357a0 into apache:master Sep 2, 2025
4 checks passed
Sign up for free to 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