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

Update crux-toolkit to 4.2 #51625

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

Conversation

CharlesEGrant
Copy link

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

Copy link
Contributor

coderabbitai bot commented Oct 24, 2024

Warning

Rate limit exceeded

@CharlesEGrant has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 50 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Files that changed from the base of the PR and between 1f10b48 and 5d4a701.

📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request updates the meta.yaml file for the crux-toolkit package. The primary change is the version increment from "4.1" to "4.2". Along with this version change, the source URLs for both Linux and Darwin distributions have been updated to correspond with the new version, and the SHA256 checksums for these distributions have been modified accordingly. The build number has been changed from 2 to 0, while the build dependencies have been altered to specify buil instead of build for the C and C++ compilers, and the syntax for these dependencies has been updated to use stdlib instead of compiler. The test commands remain unchanged. Additionally, the extra section has been enhanced to include a list of recipe maintainers, which was absent in the previous version. Other metadata elements, such as the home URL, summary, license information, and development URL, have not changed.

Possibly related PRs

Suggested labels

autobump, new version, please review & merge


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 (2)
recipes/crux-toolkit/meta.yaml (2)

17-21: Consider adding run_exports for ABI compatibility.

As per Bioconda guidelines, to prevent API/ABI breakage issues, consider adding run_exports to specify the version constraints for downstream packages.

Example addition:

build:
  run_exports:
    - {{ pin_subpackage('crux-toolkit', max_pin='x.x') }}

23-25: Consider enhancing version test.

The current test only checks if the version command works. Consider enhancing it to verify the exact version number.

 test:
   commands:
-    - crux version 2> /dev/null | grep -q 'Crux version'
+    - crux version 2> /dev/null | grep -q "Crux version {{ version }}"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between fab5a52 and 70e467c.

📒 Files selected for processing (1)
  • recipes/crux-toolkit/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/crux-toolkit/meta.yaml

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

🔇 Additional comments (4)
recipes/crux-toolkit/meta.yaml (4)

27-32: LGTM!

The metadata section is complete and appropriate.


34-40: LGTM!

The maintainers list is properly configured and includes the PR author.


1-5: Verify the new version exists.

The version update looks correct. Let's verify that version 4.2 exists in the upstream repository.

✅ Verification successful

Let me try a different verification approach by checking if the version exists in the upstream repository's release page.


Version 4.2 exists and is available in the upstream repository

The verification confirms that version 4.2 exists in the upstream repository's downloads page. The version update in the meta.yaml file is correct and corresponds to a real release.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify version 4.2 exists in the upstream repository
# Test: Check if the Linux distribution URL is accessible
curl -I https://noble.gs.washington.edu/crux-downloads/crux-4.2/crux-4.2.Linux.x86_64.zip

Length of output: 778


Script:

#!/bin/bash
# Check if the version exists in the downloads page
curl -s https://noble.gs.washington.edu/crux-downloads/ | grep -o "crux-4.2"

Length of output: 94

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


7-11: Verify SHA256 checksums match the distribution files.

The URLs have been correctly updated for the new version. Let's verify the SHA256 checksums.

Comment on lines 13 to 15
build:
number: 2
script: "mkdir -p $PREFIX/bin; chmod a+x bin/*; cp bin/* $PREFIX/bin"
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

Reset build number for new version.

When updating to a new version, the build number should typically be reset to 0.

 build:
-  number: 2
+  number: 0
   script: "mkdir -p $PREFIX/bin; chmod a+x bin/*; cp bin/* $PREFIX/bin"
📝 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
build:
number: 2
script: "mkdir -p $PREFIX/bin; chmod a+x bin/*; cp bin/* $PREFIX/bin"
build:
number: 0
script: "mkdir -p $PREFIX/bin; chmod a+x bin/*; cp bin/* $PREFIX/bin"

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/crux-toolkit/meta.yaml (1)

17-21: Consider adding run_exports for ABI stability

Since this is a C/C++ package, consider adding run_exports to handle ABI compatibility as mentioned in the Bioconda guidelines. This helps ensure proper runtime dependencies are propagated to dependent packages.

Example addition:

build:
  run_exports:
    - {{ pin_subpackage('crux-toolkit', max_pin='x.x') }}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 70e467c and e886590.

📒 Files selected for processing (1)
  • recipes/crux-toolkit/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/crux-toolkit/meta.yaml

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

🔇 Additional comments (5)
recipes/crux-toolkit/meta.yaml (5)

1-5: LGTM: Version update looks correct

The version bump from 4.1 to 4.2 is properly implemented using Jinja2 templating.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


23-25: LGTM: Test configuration is appropriate

The version check test is sufficient for a binary package distribution.


27-32: LGTM: Package metadata is complete

All required metadata fields are properly specified with appropriate license information.


34-40: LGTM: Extra configuration is appropriate

The maintainers list is properly specified and the skip-lints configuration is reasonable for a binary package.


7-11: Verify package availability and checksums

Let's verify:

  1. The download URLs are accessible
  2. The package is not already in conda-forge
✅ Verification successful

Based on the results from the shell scripts, I can now generate the final response:

URLs are accessible and package is not in conda-forge

  • Both Linux and Darwin download URLs return HTTP 200 OK, confirming they are accessible
  • No existing crux-toolkit packages were found in conda-forge's repository

Note: I've categorized this as because:

  1. The URLs in the recipe are valid and accessible
  2. The package is not already present in conda-forge, making this a valid new addition
  3. The SHA256 checksums are provided in the recipe, which is a required component

The original review's concerns have been adequately addressed by these verification checks.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if URLs are accessible and verify checksums
echo "Checking Linux URL..."
curl -sI "https://noble.gs.washington.edu/crux-downloads/crux-4.2/crux-4.2.Linux.x86_64.zip" | head -n 1
echo "Checking Darwin URL..."
curl -sI "https://noble.gs.washington.edu/crux-downloads/crux-4.2/crux-4.2.Darwin.x86_64.zip" | head -n 1

# Check if package exists in conda-forge
echo "Checking conda-forge..."
curl -sL "https://conda.anaconda.org/conda-forge/noarch/repodata.json" | jq '.packages | keys[] | select(startswith("crux-toolkit-"))'

Length of output: 544

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/crux-toolkit/meta.yaml (1)

27-29: Consider enhancing test coverage.

While the current test verifies basic functionality, consider adding:

  1. Help command test (crux --help)
  2. Basic functionality test for a core command

Would you like me to provide examples of additional test commands?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 0cae8c5 and 1f51415.

📒 Files selected for processing (1)
  • recipes/crux-toolkit/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/crux-toolkit/meta.yaml

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

🔇 Additional comments (4)
recipes/crux-toolkit/meta.yaml (4)

1-5: LGTM: Version update looks correct.

The package version has been properly updated to 4.2 using Jinja2 templating.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


17-25: LGTM: Appropriate compiler configuration for binary distribution.

The addition of ignore_run_exports_from for the C/C++ compilers is correct for pre-built binaries, as it prevents unnecessary compiler runtime dependencies.


38-44: LGTM: Recipe maintainers properly documented.

Good addition of recipe maintainers, which helps with package maintenance tracking.


7-11: Verify source URLs and checksums.

The URLs and checksums have been updated for the new version. Let's verify their validity.

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/crux-toolkit/meta.yaml (1)

22-24: Consider enhancing version test.

The current test only verifies that the version command works. Consider enhancing it to verify the specific version number.

-    - crux version 2> /dev/null | grep -q 'Crux version'
+    - crux version 2> /dev/null | grep -q "Crux version ${PKG_VERSION}"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 1f51415 and f2046e1.

📒 Files selected for processing (1)
  • recipes/crux-toolkit/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/crux-toolkit/meta.yaml

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

🔇 Additional comments (4)
recipes/crux-toolkit/meta.yaml (4)

1-5: LGTM! Version update looks good.

The version bump to 4.2 is consistent with the PR objectives.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


26-31: LGTM! Package metadata is complete.

All required metadata fields are present and properly formatted.


33-39: LGTM! Extra configuration is appropriate.

The recipe maintainers list and skip-lints configuration are properly set up.


7-11: Verify source URLs and checksums.

Let's verify the accessibility of the URLs and validate the checksums.

Comment on lines 17 to 20
requirements:
run:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
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 requirements section: Move compilers to build requirements.

The compiler requirements are incorrectly placed in the run section. Compilers are build-time dependencies and should be in the build section.

Apply this fix:

 requirements:
-  run:
+  build:
     - {{ compiler('c') }}
     - {{ compiler('cxx') }}
📝 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
requirements:
run:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}

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

Files that changed from the base of the PR and between f2046e1 and 1f10b48.

📒 Files selected for processing (1)
  • recipes/crux-toolkit/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/crux-toolkit/meta.yaml

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

🔇 Additional comments (5)
recipes/crux-toolkit/meta.yaml (5)

1-5: LGTM: Version update looks correct

The version update to 4.2 is properly implemented using Jinja2 templating.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


22-24: LGTM: Test configuration is appropriate

The test command properly verifies the Crux version installation.


26-31: LGTM: Package metadata is complete and accurate

All required metadata fields are present and correctly maintained.


33-39: LGTM: Extra configuration properly updated

The addition of recipe maintainers and skip-lints configuration is appropriate.


7-11: Verify source URLs and checksums

Let's verify that the URLs are accessible and the checksums match the downloaded files.

Comment on lines 17 to 20
requirements:
buil:
- {{ stdlib('c') }}
- {{ stdlib('cxx') }}
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 requirements section issues

There are two issues in the requirements section:

  1. There's a typo in the buil key (should be build)
  2. The change from compiler to stdlib seems incorrect for a C/C++ project

Apply this fix:

 requirements:
-  buil:
-      - {{ stdlib('c') }}
-      - {{ stdlib('cxx') }}
+  build:
+      - {{ compiler('c') }}
+      - {{ compiler('cxx') }}
📝 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
requirements:
buil:
- {{ stdlib('c') }}
- {{ stdlib('cxx') }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}

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