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
Conversation
jvm-packages/release_prep.py
Outdated
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") |
There was a problem hiding this comment.
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.
jvm-packages/release_prep.py
Outdated
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") |
There was a problem hiding this comment.
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.
jvm-packages/release_prep.py
Outdated
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") |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
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.