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

Sentieon: Use ARM (attempt 2) #51916

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Sentieon: Use ARM (attempt 2) #51916

wants to merge 1 commit into from

Conversation

adamrtalbot
Copy link
Contributor

@adamrtalbot adamrtalbot commented Nov 4, 2024

Based on #51837 which didn't appear to run any tests(!?). This one specifically downloads the correct binary from Sentieon.


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @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:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|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 Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
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>.

@adamrtalbot adamrtalbot marked this pull request as draft November 4, 2024 18:43
Copy link
Contributor

coderabbitai bot commented Nov 4, 2024

📝 Walkthrough

Walkthrough

The pull request introduces updates to the meta.yaml file for the sentieon package. The version number is changed to 202308.03, and the source section now includes two URLs for software downloads, one for x86_64 architecture and another for aarch64, each with its respective SHA256 checksum. The build number is increased from 1 to 2, and the skip condition is modified to not linux and aarch64, indicating support for the new architecture. Additionally, the test command for sentieon STAR --help is updated to be applicable across all platforms by removing the architecture-specific comment. The about section remains unchanged, while the extra section now includes new entries under skip-lints to address platform-specific binaries, removing the previous entry for osx-arm64. These changes enhance the package's compatibility with multiple architectures and clarify the build conditions.

Possibly related PRs

  • Sentieon add ARM support #51837: This PR directly relates to the main PR as it also modifies the meta.yaml file for the sentieon package, updating the version and adding support for linux-aarch64 and osx-arm64 architectures, similar to the changes made in the main PR.

Suggested labels

aarch64, please review & merge

Suggested reviewers

  • bgruening

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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between c4ed2ce and 6c89cf9.

📒 Files selected for processing (1)
  • recipes/sentieon/meta.yaml (3 hunks)
🔇 Additional comments (3)
recipes/sentieon/meta.yaml (3)

7-17: LGTM: Source configuration properly handles both architectures

The source section is well-structured with:

  • Appropriate conditional selectors for each architecture
  • Valid S3 URLs for both x86_64 and ARM builds
  • Correct SHA256 checksums
  • Common patch application

51-53: LGTM: Appropriate lint exceptions

The skip-lints are correctly configured to handle platform-specific binaries, which is necessary for this type of package.


39-39: Verify STAR availability on ARM

The test command has been made architecture-agnostic, but we should verify that the STAR functionality is actually available in the ARM build.

✅ Verification successful

Based on the search results, I can see that STAR is available in both x86_64 and ARM builds of Sentieon. The recipe shows:

  1. x86_64 build URL: sentieon-genomics-{{ version }}.tar.gz
  2. ARM build URL: arm-sentieon-genomics-{{ version }}.tar.gz

The recipe also includes STAR test command for both architectures without any architecture-specific conditions:

- sentieon STAR --help

Let's verify if both builds are actually enabled:


STAR functionality is available on both architectures

The verification shows that:

  1. The recipe includes both x86_64 and ARM builds of Sentieon with their respective tarballs
  2. The STAR test command is architecture-agnostic and included for both builds
  3. The skip condition skip: True # [not linux and aarch64] only skips non-Linux platforms, allowing both x86_64 and aarch64 Linux builds

Therefore, the test command update to make it architecture-agnostic is appropriate since STAR functionality is available in both x86_64 and ARM builds of Sentieon.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if STAR binary/functionality exists in both architecture builds
# Expected: Both tarballs should contain STAR-related files

# Check x86_64 build
echo "Checking x86_64 build for STAR:"
rg -l "STAR" --type-add 'tar:*.tar.gz' -t tar 'sentieon-genomics-202308.03.tar.gz'

# Check ARM build
echo "Checking ARM build for STAR:"
rg -l "STAR" --type-add 'tar:*.tar.gz' -t tar 'arm-sentieon-genomics-202308.03.tar.gz'

Length of output: 459


Script:

#!/bin/bash
# Let's try a different approach to verify STAR availability
# Check recipe files and build scripts for architecture-specific STAR configurations

# Search for STAR-related configurations in recipe files
echo "Checking recipe files for STAR configurations:"
rg -C 3 "STAR" recipes/

# Check build configurations or skip conditions
echo "Checking build configurations:"
rg -C 3 "skip.*STAR|STAR.*skip" recipes/

# Look for architecture-specific conditions
echo "Checking architecture-specific conditions:"
rg -C 3 "aarch64|arm64|x86_64" recipes/sentieon/

Length of output: 202843


Script:

#!/bin/bash
# Check build configuration for architecture support
echo "Checking architecture support:"
rg -C 2 'skip.*True|skip:.*True' recipes/sentieon/meta.yaml

Length of output: 232

Comment on lines +19 to +20
number: 2
skip: True # [not linux and aarch64]
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix incorrect skip condition

The current skip condition not linux and aarch64 is incorrect as it only skips non-Linux ARM systems. Based on the package requirements and PR objective, this should skip on all non-Linux systems regardless of architecture.

Apply this fix:

-  skip: True # [not linux and aarch64]
+  skip: True # [not linux]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
number: 2
skip: True # [not linux and aarch64]
number: 2
skip: True # [not linux]

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.

1 participant