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

augustus: add linux-aarch64 build #47056

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

martin-g
Copy link
Contributor

@martin-g martin-g commented Apr 8, 2024

Describe your pull request here


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>.

@martin-g
Copy link
Contributor Author

martin-g commented Apr 8, 2024

@martin-g martin-g force-pushed the aarch64-augustus branch 2 times, most recently from 971746d to 1828764 Compare April 8, 2024 12:03
@mencian mencian added the aarch64 Related to adding linux-aarch64 support label Apr 8, 2024
@martin-g
Copy link
Contributor Author

martin-g commented Apr 12, 2024

The Linux ARM64 build fails due to:

The reported errors are:
- Encountered problems while solving:
-   - nothing provides perl-version needed by perl-module-build-0.4224-pl5321hdfd78af_4

martin-g added a commit to martin-g/conda-forge-pinning-feedstock that referenced this pull request Apr 12, 2024
bioconda/bioconda-recipes#47056 (comment)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
@martin-g
Copy link
Contributor Author

martin-g commented May 6, 2024

The Linux ARM64 build now fails due to:

Encountered problems while solving:
  - nothing provides perl-encode needed by perl-cpan-meta-2.150010-pl5321hdfd78af_1

martin-g added a commit to martin-g/conda-forge-pinning-feedstock that referenced this pull request May 6, 2024
Needed by bioconda/bioconda-recipes#47056 (Bioconda/augustus)

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
@aliciaaevans
Copy link
Contributor

Oops, I jumped the gun on this on and thought perl-encode had already been built.

Copy link
Contributor

coderabbitai bot commented Oct 7, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces several changes to the meta.yaml file for the augustus package. Key updates include an increment in the package version to "3.5.0" and a corresponding SHA256 checksum adjustment. The build number is increased from 4 to 5. A new run_exports section is added to define dependencies for subpackages. The requirements section sees updates in version constraints, with samtools now requiring version 1.19 or higher and bamtools specified as version 2.5.2 or higher. Indentation corrections are made for the compiler entries under the build requirements. Furthermore, an additional-platforms entry is introduced to indicate support for the linux-aarch64 platform. The about section remains mostly unchanged, preserving the existing home URL, license information, and summary of the package's functionality. These modifications collectively enhance dependency management and platform support for the augustus package.

Possibly related PRs

Suggested labels

please review & merge


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9071a48 and e48e764.

📒 Files selected for processing (1)
  • recipes/augustus/meta.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • recipes/augustus/meta.yaml

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

🧹 Outside diff range and nitpick comments (1)
recipes/augustus/meta.yaml (1)

Line range hint 1-169: Summary of review and next steps

Overall, the changes in this PR align well with the stated objectives of adding support for the Linux ARM64 architecture and updating the Augustus package. Here's a summary of the key points and next steps:

  1. The build number increment and addition of run_exports are appropriate and approved.
  2. The version specifiers for samtools and bamtools need to be corrected from => to >=.
  3. The addition of linux-aarch64 platform support is approved, but needs verification of the build process.
  4. The version update and SHA256 checksum change are approved, but the checksum should be verified.

Next steps:

  1. Make the suggested correction to the version specifiers.
  2. Run the provided verification scripts to ensure the package builds correctly on linux-aarch64 and the SHA256 checksum is correct.
  3. Address any issues that may arise from the verification process.
  4. Once these steps are completed, the PR should be ready for final review and merge.

Given the significant version bump for samtools (from 0.1.19 to 1.19), it would be prudent to thoroughly test Augustus with this new version to ensure there are no compatibility issues. Consider adding or updating tests that specifically exercise the samtools integration.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 64e6279 and 9071a48.

📒 Files selected for processing (1)
  • recipes/augustus/meta.yaml (3 hunks)
🧰 Additional context used
🔇 Additional comments (3)
recipes/augustus/meta.yaml (3)

16-18: LGTM: Build number increment and run_exports addition

The build number increment and the addition of the run_exports section are both appropriate changes:

  1. Incrementing the build number ensures that the new package will be recognized as a newer version by conda.
  2. The run_exports section with {{ pin_subpackage('augustus', max_pin="x") }} ensures that packages depending on augustus will use a compatible version, preventing potential ABI breakage issues.

These changes align well with Bioconda best practices and the PR objectives.


168-169: LGTM: Addition of linux-aarch64 platform support

The addition of 'linux-aarch64' to the 'additional-platforms' section in the 'extra' metadata is correct and aligns with the PR objective of adding support for the Linux ARM64 architecture.

To ensure that the package builds correctly on the new platform, please run the following verification script:

#!/bin/bash
# Description: Verify that the package builds successfully on linux-aarch64

# Test: Check if the package builds on linux-aarch64
conda build --output-folder . .

This script will attempt to build the package and will help identify any potential issues specific to the linux-aarch64 platform.


Line range hint 1-2: LGTM: Version update and SHA256 checksum change

The update of the package version to 3.5.0 and the corresponding SHA256 checksum change are consistent with a new release of Augustus. This is a good practice to ensure the integrity of the downloaded source.

To ensure the integrity of the source, please verify the SHA256 checksum using the following script:

This script will download the source tarball and verify its checksum against the one provided in the recipe.

Comment on lines 27 to 28
- samtools =>1.19
- bamtools =>2.5.2
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

Update version specifiers for samtools and bamtools

The version updates for samtools and bamtools are notable:

  1. The samtools version has been significantly bumped from 0.1.19 to 1.19. This is a major version change that may introduce compatibility issues. Please ensure that Augustus is compatible with this newer version of samtools.

  2. The specific version requirement for bamtools (=>2.5.2) is good for reproducibility.

However, there's an issue with the syntax of the version specifiers:

The => operator is not a standard conda version specifier. Instead, use the >= operator for "greater than or equal to". Please update the lines as follows:

- samtools >=1.19
- bamtools >=2.5.2

This change will ensure that conda correctly interprets the version requirements.

@martin-g
Copy link
Contributor Author

martin-g commented Oct 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch64 Related to adding linux-aarch64 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants