Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update client build script to be source of truth for java related installations #395

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

jbkyang-nvi
Copy link
Contributor


# Copy over the jar to a specific location
mkdir -p ${JAR_INSTALL_PATH}
cp ${BUILD_HOME}/javacpp-presets/tritonserver/platform/target/tritonserver-platform-*shaded.jar ${JAR_INSTALL_PATH}/tritonserver-java-bindings.jar

rm -r ${BUILD_HOME}/javacpp-presets/
rm -r /root/.m2/repository
if [ ${KEEP_BUILD_DEPENDENCIES} -eq 1 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like the reverse. Shouldn't this be if it's not equal to 1, then delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have been pretty bad at following the guidelines for bash scripting. I would advocate for True == 0 instead of True == 1

Copy link
Contributor

Choose a reason for hiding this comment

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

Great find! Let's start a conversation offline about this. This is news to me. I don't want to block this PR, but I think we'd want to decide this on a team level and have a PR to standardize all of our tests. Otherwise, it would be inconsistent and could lead to confusion/problems.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this change has been propagated to the javacpp side, can we do this in a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, but please let's do it ASAP. We do not want this getting forgotten and us being inconsistent.

@@ -98,6 +102,10 @@ for OPTS; do
export INCLUDE_DEVELOPER_TOOLS_SERVER=0
echo "Including developer tools server C++ bindings"
;;
--keep-build-dependencies)
KEEP_BUILD_DEPENDENCIES=0
echo "Including developer tools server C++ bindings"
Copy link
Contributor

Choose a reason for hiding this comment

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

If the below comment gets addressed, we may want to review the other code for things like this which will be inconsistent (e.g. if KEEP=0, then the statement should say we are excluding developer tools bindings).

Copy link
Contributor

@dyastremsky dyastremsky left a comment

Choose a reason for hiding this comment

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

Approving, on the contingency that we have a separate PR very soon to ensure consistent naming of booleans.

@jbkyang-nvi jbkyang-nvi merged commit fa48851 into main Sep 19, 2023
3 checks passed
@jbkyang-nvi jbkyang-nvi deleted the kyang-fix-java-build branch September 19, 2023 00:04
mc-nv pushed a commit that referenced this pull request Sep 19, 2023
mc-nv pushed a commit that referenced this pull request Sep 19, 2023
jbkyang-nvi added a commit that referenced this pull request Oct 13, 2023
jbkyang-nvi added a commit that referenced this pull request Oct 17, 2023
mc-nv pushed a commit that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants