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

Add osx-arm64 to biconductor biobase package. #52084

Closed
wants to merge 9 commits into from

Conversation

dslarm
Copy link
Contributor

@dslarm dslarm commented Nov 13, 2024

Just adds the attribute for osx-arm64 to extra/additional-platforms section in meta.yaml.

Builds locally - let's see what CI thinks!
@jjjermiah

Copy link
Contributor

coderabbitai bot commented Nov 13, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces modifications to two files: build.sh and meta.yaml. In build.sh, a debugging feature is added for ARM builds by incorporating the command set -x, which prints all executed commands to the terminal for debugging purposes. The core functionality of the script, which includes creating directories, setting executable permissions, modifying file paths, and compiling source files, remains unchanged. In meta.yaml, the version number is incremented from 0 to 1. The test commands are updated to utilize test -x instead of which for checking script existence, enhancing validation. The license specification is updated from GPL (>=2) to GPL-2.0-or-later, and a new field license_family is added with the value GPL2. Additionally, an additional-platforms section is introduced, listing linux-aarch64 as a supported platform. These changes focus on versioning, testing commands, licensing, and platform support, while the overall structure of the files remains consistent.

Possibly related PRs

Suggested labels

osx-arm64, please review & merge


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 97c2371 and 97a3acb.

📒 Files selected for processing (1)
  • recipes/bioconductor-biobase/meta.yaml (1 hunks)
🔇 Additional comments (1)
recipes/bioconductor-biobase/meta.yaml (1)

44-45: LGTM! Platform addition looks good.

The addition of osx-arm64 to the additional-platforms list is appropriate and aligns with the PR objectives. The package already supports linux-aarch64, suggesting ARM compatibility.

Let's verify the ARM build dependencies:


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 80a6ddc and 97c2371.

📒 Files selected for processing (2)
  • recipes/control-freec/build.sh (1 hunks)
  • recipes/control-freec/meta.yaml (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • recipes/control-freec/build.sh
🔇 Additional comments (3)
recipes/control-freec/meta.yaml (3)

17-17: LGTM: Build number increment is appropriate

The build number increment is correct as we're adding platform support without changing the package version.


36-38: LGTM: Improved test commands

The switch from which to test -x is a better practice as it explicitly verifies both existence and executable permissions of the scripts.

Also applies to: 40-41


45-46: LGTM: License specification follows best practices

The update to SPDX identifier GPL-2.0-or-later and addition of license_family follows conda-forge best practices.

Comment on lines +59 to +60
- linux-aarch64
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Missing osx-arm64 Platform Support

  • osx-arm64 is not listed in additional-platforms, which may cause build issues on ARM-based macOS systems.
🔗 Analysis chain

Verify ARM platform compatibility

Before adding platform support, we should verify:

  1. All dependencies support the target platforms
  2. No platform-specific code that might break the build
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if dependencies have ARM support
for pkg in perl r-base bioconductor-rtracklayer samtools; do
  echo "Checking $pkg..."
  conda search --json $pkg | jq '.[] | select(.platform == "osx-arm64" or .platform == "linux-aarch64")'
done

Length of output: 1197


Script:

#!/bin/bash
# Search meta.yaml for ARM platform specifications
rg 'osx-arm64|linux-aarch64' recipes/control-freec/meta.yaml

Length of output: 82

@dslarm
Copy link
Contributor Author

dslarm commented Nov 13, 2024

Used wrong branch - closing...

@dslarm dslarm closed this Nov 13, 2024
@dslarm dslarm deleted the osx-arm64-biconductor-biobase branch November 13, 2024 09:56
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.

4 participants