-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
metacache: add linux-aarch64 build #51106
Conversation
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
📝 WalkthroughWalkthroughThe pull request includes modifications to the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@BiocondaBot please fetch artifacts |
Package(s) built are ready for inspection:
Docker image(s) built:
|
LGTM! |
@BiocondaBot please add label |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
recipes/metacache/build.sh (1)
14-14
: Improved build performance with parallel compilation.The addition of
-j ${CPU_COUNT}
to themake
command is a good optimization:
- It enables parallel job execution, utilizing multiple CPU cores.
- This can significantly speed up the build process, especially on multi-core systems.
For improved robustness, consider adding a fallback in case
${CPU_COUNT}
is not set:-make -j ${CPU_COUNT} +make -j ${CPU_COUNT:-1}This ensures that if
${CPU_COUNT}
is not set, the build will still proceed with a single job, maintaining compatibility with all environments.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- recipes/metacache/build.sh (2 hunks)
- recipes/metacache/meta.yaml (2 hunks)
🔇 Additional comments (6)
recipes/metacache/build.sh (2)
3-3
: Improved error handling and debugging.The change from
set -e
toset -xe
enhances the script's behavior:
- It maintains the fail-fast behavior (
-e
), exiting immediately if any command fails.- It adds verbose output (
-x
), printing each command before execution.This modification will make it easier to debug issues during the build process by providing more detailed information about which commands are being executed.
Line range hint
1-24
: Overall improvements to build process - LGTM!The changes in this PR enhance the build script in two key ways:
- Improved debugging capabilities with the addition of the
-x
flag to theset
command.- Potential performance boost through parallel compilation using
-j ${CPU_COUNT}
.These modifications will make the build process more transparent and potentially faster, without altering the actual build steps or output. This is particularly beneficial for the new
linux-aarch64
build, as it will help identify any architecture-specific issues more easily.The changes align well with the PR objective of adding a
linux-aarch64
build for themetacache
package. They improve the build process without introducing risks to the package functionality.recipes/metacache/meta.yaml (4)
12-12
: Build number increment looks good.The build number has been correctly incremented from 0 to 1. This is the appropriate action when modifying a package without changing its version, which aligns with the PR's objective of adding a new build for linux-aarch64.
Line range hint
1-48
: Overall, the changes look good and align with the PR objectives.The modifications to add linux-aarch64 support, update the build number, and adjust the license are all appropriate. However, there are a few points that require verification:
- Confirm the license change with the upstream project.
- Verify the successful build and functionality of the package on linux-aarch64.
Once these verifications are complete, the PR should be ready for merging.
42-42
: License update looks good, but needs verification.The license has been updated from GPL-3.0 to GPL-3.0-or-later, which is more permissive. This change allows users to choose between GPL-3.0 or any later version.
Please confirm that this license change aligns with the upstream project's intentions. You can verify this by checking the project's GitHub repository or contacting the maintainers.
46-48
: Addition of linux-aarch64 platform looks good.The new 'extra' section with 'additional-platforms' specifying linux-aarch64 directly addresses the PR's main objective. This addition is correctly formatted and placed according to conda-forge standards.
To ensure the package can be built and run on linux-aarch64, please verify the following:
- Check if the CI/CD pipeline includes a successful build for linux-aarch64.
- If possible, test the package on an aarch64 Linux system to confirm it runs correctly.
You can use the following command to check the CI build status:
If this returns "success", it indicates that the linux-aarch64 build was successful in the CI pipeline.
Describe your pull request here
Please read the guidelines for Bioconda recipes before opening a pull request (PR).
General instructions
@BiocondaBot please add label
command.@bioconda/core
in a comment.Instructions for avoiding API, ABI, and CLI breakage issues
Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify
run_exports
(see here for the rationale and comprehensive explanation).Add a
run_exports
section like this:with
...
being one of:{{ pin_subpackage("myrecipe", max_pin="x") }}
{{ pin_subpackage("myrecipe", max_pin="x.x") }}
{{ pin_subpackage("myrecipe", max_pin="x.x") }}
(in such a case, please add a note that shortly mentions your evidence for that){{ pin_subpackage("myrecipe", max_pin="x.x.x") }}
(in such a case, please add a note that shortly mentions your evidence for that){{ pin_subpackage("myrecipe", max_pin=None) }}
while replacing
"myrecipe"
with eithername
if aname|lower
variable is defined in your recipe or with the lowercase name of the package in quotes.Bot commands for PR management
Please use the following BiocondaBot commands:
Everyone has access to the following BiocondaBot commands, which can be given in a comment:
@BiocondaBot please update
@BiocondaBot please add label
please review & merge
label.@BiocondaBot please fetch artifacts
You can use this to test packages locally.
Note that the
@BiocondaBot please merge
command is now depreciated. Please just squash and merge instead.Also, the bot watches for comments from non-members that include
@bioconda/<team>
and will automatically re-post them to notify the addressed<team>
.Summary by CodeRabbit
New Features
Bug Fixes
Chores
metacache
package.