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 linux-aarch64 and/or osx-arm64 variants to various perl-unicode-* #51909

Merged

Conversation

dslarm
Copy link
Contributor

@dslarm dslarm commented Nov 4, 2024

This pull request adds support for linux-aarch64 and/or osx-arm64 perl-unicode-* where these packages ought to already work. This is a slice of previous PR request that is timing out due to size of package list.

@martin-g - can you review

Copy link
Contributor

coderabbitai bot commented Nov 4, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

This pull request introduces updates to the meta.yaml files for three Perl packages: perl-unicode-map, perl-unicode-normalize, and perl-unicode-utf8. Each package's build number is incremented: from 7 to 8 for perl-unicode-map, from 5 to 6 for perl-unicode-normalize, and from 6 to 7 for perl-unicode-utf8. A new key, run_exports, is added under the build section for each package, which references a subpackage with a specific pinning specification. Additionally, the extra section is updated to include a new key, additional-platforms, which lists linux-aarch64 and osx-arm64 for all three packages, enhancing their compatibility with these platforms. No changes were made to the requirements, test, or about sections, and the overall structure of the meta.yaml files remains unchanged.

Possibly related PRs

Suggested labels

please review & merge, aarch64, osx-arm64

Suggested reviewers

  • martin-g

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: 0

🧹 Outside diff range and nitpick comments (1)
recipes/perl-unicode-map/meta.yaml (1)

Line range hint 1-44: Consider standardizing these changes across perl-unicode- packages*

The configuration changes (run_exports, additional platforms) represent good practices for conda packages. Consider applying these same patterns consistently across all perl-unicode-* packages to maintain uniformity in the ecosystem.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f15d991 and 7aeb8ba.

📒 Files selected for processing (3)
  • recipes/perl-unicode-map/meta.yaml (2 hunks)
  • recipes/perl-unicode-normalize/meta.yaml (2 hunks)
  • recipes/perl-unicode-utf8/meta.yaml (2 hunks)
🔇 Additional comments (9)
recipes/perl-unicode-map/meta.yaml (3)

14-15: LGTM: Appropriate run_exports configuration

The addition of run_exports with pin_subpackage is the correct approach for Perl modules to ensure ABI compatibility.


16-16: LGTM: Proper build number increment

Build number increment is appropriate for the package modifications.


41-44: Platform additions look correct, but license needs attention

The addition of linux-aarch64 and osx-arm64 platforms is appropriate as there are no platform-specific constraints. However, the "unknown" license in the recipe needs attention.

Let's check if the license information is available in the source:

recipes/perl-unicode-normalize/meta.yaml (3)

14-15: LGTM! Good use of run_exports.

The addition of run_exports with pin_subpackage ensures proper version constraints for downstream dependencies.


16-16: LGTM! Appropriate build number increment.

Build number increment is correct for adding new platform support.


45-48: LGTM! Platform additions align with PR objectives.

The addition of linux-aarch64 and osx-arm64 platforms is appropriate. Let's verify there are no platform-specific dependencies that might cause issues.

✅ Verification successful

Platform additions are safe and compatible

The package can safely support linux-aarch64 and osx-arm64 platforms because:

  • The build script is platform-agnostic, using standard Perl build processes
  • Dependencies are cross-platform:
    • Core requirements are Perl-based modules (perl-carp, perl-constant, etc.)
    • Build requirements only include standard tools (make and C++ compiler)
  • No platform-specific selectors or conditional logic is present in meta.yaml
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any platform-specific dependencies or build requirements
# that might affect the new platforms

# Check if there are any platform-specific selectors in requirements
rg '\s*-\s*\{\%.*platform' recipes/perl-unicode-normalize/meta.yaml

# Check if there are any platform-specific build scripts
fd -g 'build.*' recipes/perl-unicode-normalize/

Length of output: 256


Script:

#!/bin/bash
# Let's check the content of build.sh and meta.yaml for any platform-specific logic
cat recipes/perl-unicode-normalize/build.sh
echo "---"
cat recipes/perl-unicode-normalize/meta.yaml

Length of output: 1456

recipes/perl-unicode-utf8/meta.yaml (3)

14-15: LGTM: Appropriate runtime dependency pinning

The addition of run_exports with pin_subpackage ensures proper ABI compatibility across dependent packages.


16-16: LGTM: Appropriate build number increment

Build number increment is consistent with the package changes.


44-47: Verify dependency availability for osx-arm64

The comment indicates that osx-arm64 support is blocked by a missing perl-encode package in conda-forge. Let's verify this and consider tracking the dependency issue.

Would you like me to create a new issue in conda-forge/perl-feedstock to track the missing perl-encode package for osx-arm64?

@dslarm
Copy link
Contributor Author

dslarm commented Nov 4, 2024

@martin-g
This one is good to go - can you review?

@mencian mencian merged commit aedd09d into bioconda:master Nov 5, 2024
6 checks passed
@dslarm dslarm deleted the perl-unicode-various-linux-aarch64-osx-arm64 branch November 11, 2024 14:19
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.

2 participants