-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support for Alpine on LGBM #145
Conversation
This commit bumps lightgbm to v0.9.14 and makes it possible to use LGBM on nodes with AMD64 architecture using Alpine.
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.
Be mindful of the directory structure that we choose in the other repo and adopt it here accordingly.
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #145 +/- ##
============================================
+ Coverage 80.37% 80.52% +0.15%
- Complexity 469 479 +10
============================================
Files 48 50 +2
Lines 1620 1648 +28
Branches 157 158 +1
============================================
+ Hits 1302 1327 +25
- Misses 231 233 +2
- Partials 87 88 +1 ☔ View full report in Codecov by Sentry. |
This commit changes the paths when loading the dependencies on amd64 architecture in order to reflect the changes made on the jar.
This commit changes the path when loading the dependencies on amd64 architecture in order to reflet the change on the jar structure from amd64/alpine to amd64/musl.
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
This commit changes the code structure by adding a new enum representing the libc implementation available. In order to detect the libc implementation, an env variable FDZ_OPENML_JAVA_LIBC must be set with either 'glibc' or 'musl', and using glibc if this env variable is not defined. This new enum is also used along side with the cpu architecture enum to represent the infrastructure running the code.
...gbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/Infrastructure.java
Outdated
Show resolved
Hide resolved
...gbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/Infrastructure.java
Outdated
Show resolved
Hide resolved
...gbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/Infrastructure.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Show resolved
Hide resolved
...gbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/Infrastructure.java
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
This commit includes information in the README about the new ENV variable used to load dependencies for musl-based OS.
Co-authored-by: Artur Pedroso <[email protected]>
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
...tgbm-provider/src/test/java/com/feedzai/openml/provider/lightgbm/TestLibcImplementation.java
Outdated
Show resolved
Hide resolved
This commits changes the if statment on the method Infrastructure#getLgbmNativeLibsFolder into a switch statement.
...gbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/Infrastructure.java
Outdated
Show resolved
Hide resolved
...tgbm/lightgbm-provider/src/main/java/com/feedzai/openml/provider/lightgbm/LightGBMUtils.java
Outdated
Show resolved
Hide resolved
LGTM |
This commit bumps lightgbm to v0.9.14 and makes it possible to use LGBM on nodes with AMD64 architecture using Alpine.