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

[CI] Add a helper script to aid Maven release #7470

Merged
merged 3 commits into from Nov 23, 2021

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Nov 22, 2021

The helper script will ensure that not a single step is left out in the release process for the JVM packages. Related: #7449

@trivialfis There are many manual steps in the current process for Maven release. I'd like to automate them eventually. For now, I've created a helper script to ensure that all steps are followed.

output_dir = f"xgboost4j-gpu/src/main/resources/lib/{os}/{arch}"
maybe_makedirs(output_dir)
print("====Next Steps====")
print("1. Obtain Linux and Windows binaries from the CI server")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To automate thie step, the CI server should be configured to upload libxgboost4j.so (GPU and non-GPU version) and xgboost4j.dll in a convenient location.

print("====Next Steps====")
print("1. Obtain Linux and Windows binaries from the CI server")
print("2. Put them in xgboost4j(-gpu)/src/main/resources/lib/[os]/[arch]")
print("3. Now run 'mvn release' on a Mac machine")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hopefully, we can configure GitHub Actions to build libxgboost4j.dylib automatically.

Comment on lines 48 to 51
print("====copying pure-Python tracker====")
for use_cuda in [True, False]:
xgboost4j = "xgboost4j-gpu" if use_cuda else "xgboost4j"
cp("../python-package/xgboost/tracker.py", f"{xgboost4j}/src/main/resources")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This step ensures that we don't repeat the same mistake as #7449

Copy link
Member

@trivialfis trivialfis left a comment

Choose a reason for hiding this comment

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

Thanks for handling the maven release. Could you please put the helper under xgboost/dev? We can improve those helpers as a collection.

@hcho3 hcho3 merged commit 0c67685 into dmlc:master Nov 23, 2021
@hcho3 hcho3 deleted the better_maven_release branch November 23, 2021 08:11
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.

None yet

2 participants