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 oarfish to 0.6.3 #52102

Merged
merged 15 commits into from
Nov 14, 2024
Merged

Update oarfish to 0.6.3 #52102

merged 15 commits into from
Nov 14, 2024

Conversation

BiocondaBot
Copy link
Collaborator

Update oarfish: 0.6.20.6.3

install with bioconda Conda

Info Link or Description
Recipe recipes/oarfish (click to view/edit other files)
Summary oarfish is a tool for fast, accurate and versatile transcript quantification from long-read RNA-seq data
Home https://github.com/COMBINE-lab/oarfish
Releases https://github.com/COMBINE-lab/oarfish/tags
Author @COMBINE-lab

This pull request was automatically generated (see docs).

@BiocondaBot BiocondaBot added autobump Automatic Version Update new version labels Nov 14, 2024
Copy link
Contributor

coderabbitai bot commented Nov 14, 2024

📝 Walkthrough

Walkthrough

This pull request updates the meta.yaml file for the oarfish package. The version number has been changed from "0.6.2" to "0.6.3", which is reflected in the version variable and the version field within the package section of the file. Alongside the version update, the SHA256 checksum for the source tarball has been modified from 78b523fc459fec5ae3680395925862b4d367bd56d051120f28c689dd387e1758 to 98cc4b939e81cd0018c38d47f4596dc3079680a7b076a7dfca2e80b67094c783, indicating a change in the source code associated with this new version. The requirements section has also been updated, changing the Rust compiler requirement from a commented line with {{ compiler('rust') }} to a specific version requirement of rust >=1.82.0, while the previous line has been commented out. Additionally, a new requirement for the C++ compiler has been added. The build.sh script has been modified to include a command that installs Rust using a curl command, specifying the default toolchain as stable and updating the PATH environment variable to include Rust's Cargo binaries. The command for building a statically linked binary with Rust has also been updated to set RUSTFLAGS appropriately.

Possibly related PRs

  • Add recipe for rukki v0.3.0 #51115: The changes in the build.sh script for the rukki package involve building a statically linked binary using Rust, which is relevant to the Rust compiler requirement updates in the meta.yaml file for the oarfish package.
  • Update sawfish to 0.12.5 #51392: The sawfish package's meta.yaml file update includes a version increment and SHA256 checksum change, similar to the version and checksum updates in the oarfish package's meta.yaml.
  • Update sawfish to 0.12.6 #51439: Similar to the previous PR, this update to the sawfish package's meta.yaml reflects a version and checksum change, paralleling the changes made in the oarfish package.
  • Update sawfish to 0.12.7 #51624: This PR continues the pattern of updating the sawfish package's version and checksum in its meta.yaml, which aligns with the updates made in the oarfish package.
  • Update crabs to 1.0.4 #51645: The crabs package's meta.yaml update includes a version and checksum change, akin to the modifications in the oarfish package's meta.yaml.
  • Update crabs to 1.0.5 #51677: This update to the crabs package also involves a version and checksum change in the meta.yaml, similar to the changes in the oarfish package.
  • Update piscem to 0.10.4 #51799: The piscem package's meta.yaml update includes a version and checksum change, which is consistent with the updates made in the oarfish package.
  • Update goldrush to 1.2.1 #51872: The goldrush package's meta.yaml update reflects a version and checksum change, paralleling the modifications in the oarfish package.
  • Update varfish-cli to 0.6.4 #51973: The varfish-cli package's meta.yaml update includes a version and checksum change, similar to the changes in the oarfish package.
  • Update pacu_snp to 0.0.6 #52094: The pacu_snp package's meta.yaml update involves a version and checksum change, which aligns with the updates made in the oarfish package.

Warning

Rate limit exceeded

@rob-p has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 4 minutes and 4 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

Reviewing files that changed from the base of the PR and between 7e93f88 and ff95fdd.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 7e93f88 and ff95fdd.

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

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.

Force latest rustc
@rob-p
Copy link
Contributor

rob-p commented Nov 14, 2024

I think I need the latest rust compiler 1.82, but am I sure how to force this.

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

🧹 Outside diff range and nitpick comments (1)
recipes/oarfish/build.sh (1)

7-8: Remove extra blank line

There's an unnecessary extra blank line that can be removed.

-
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 6414742 and 6951f2f.

📒 Files selected for processing (2)
  • recipes/oarfish/build.sh (1 hunks)
  • recipes/oarfish/meta.yaml (2 hunks)
🧰 Additional context used
🪛 yamllint
recipes/oarfish/meta.yaml

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

(syntax)

🔇 Additional comments (4)
recipes/oarfish/build.sh (1)

Line range hint 11-11: LGTM: Build command looks good

The cargo install command with RUST_BACKTRACE=1 is appropriate for debugging potential build issues.

recipes/oarfish/meta.yaml (3)

1-1: LGTM: Version update is consistent

The version bump to 0.6.3 is properly reflected in the recipe.

🧰 Tools
🪛 yamllint

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

(syntax)


Line range hint 3-44: LGTM: Recipe structure follows bioconda best practices

The recipe maintains proper structure with all required sections and follows bioconda guidelines for version updates.

🧰 Tools
🪛 yamllint

[error] 11-11: trailing spaces

(trailing-spaces)


14-14: Verify source tarball checksum

Let's verify that the SHA256 checksum matches the upstream source tarball.

Comment on lines 19 to 20
#- rust >=1.82.0
#- {{ compiler('rust') }}
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

Critical: Uncomment and update Rust compiler requirement

Both Rust requirements are currently commented out, but according to rob-p's comment, the package requires Rust >=1.82.0. This could lead to build failures or runtime issues.

Apply this diff to fix the Rust requirements:

-    #- rust >=1.82.0
-    #- {{ compiler('rust') }} 
+    - {{ compiler('rust') }} >=1.82.0

Note: Using the compiler('rust') selector with a version constraint is the recommended approach in bioconda to ensure proper Rust compiler version requirements.

📝 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
#- rust >=1.82.0
#- {{ compiler('rust') }}
- {{ compiler('rust') }} >=1.82.0

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 c97fa7e and c9a022f.

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

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

(syntax)

🔇 Additional comments (3)
recipes/oarfish/meta.yaml (3)

1-1: LGTM: Version update looks good

Version bump from 0.6.2 to 0.6.3 is properly implemented.

🧰 Tools
🪛 yamllint

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

(syntax)


21-22: LGTM: C/C++ compiler requirements

The addition of both C and C++ compiler requirements is appropriate for this package.


14-14: Verify SHA256 checksum

Let's verify the SHA256 checksum matches the source tarball.

Comment on lines +19 to +20
#- rust >=1.82.0
#- {{ compiler('rust') }} >=1.82.0
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

Blocking: Rust compiler configuration must be resolved

The PR cannot be merged until the Rust compiler requirements are properly configured. Please address the previous comment about uncommenting and updating the Rust compiler requirement.

Reference rob-p's comment: "we need the latest rust compiler (1.82)."

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

🧹 Outside diff range and nitpick comments (1)
recipes/oarfish/build.sh (1)

15-16: Add Rust version verification

Since oarfish requires Rust >=1.82.0, add version verification after installation.

Add these lines after the PATH export:

 export PATH="$HOME/.cargo/bin:$PATH"
+# Verify Rust version meets minimum requirement
+rustc --version | awk -F. '{ if ($2 >= 82) exit 0; exit 1 }' || (echo "Rust 1.82+ is required"; exit 1)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between c9a022f and 586b286.

📒 Files selected for processing (1)
  • recipes/oarfish/build.sh (1 hunks)
🧰 Additional context used
🪛 Shellcheck
recipes/oarfish/build.sh

[error] 6-6: Did you forget the 'then' for this 'if'?

(SC1049)


[error] 6-6: Couldn't parse this if expression. Fix to allow more checks.

(SC1073)


[error] 9-9: Expected 'then'.

(SC1050)


[error] 9-9: Unexpected keyword/token. Fix any mentioned problems and try again.

(SC1072)

🔇 Additional comments (1)
recipes/oarfish/build.sh (1)

14-15: Previous security concerns about Rust installation are still valid

The concerns about Rust installation security and version control raised in the previous review remain applicable.

# build statically linked binary with Rust
RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path .
RUST_BACKTRACE=1 RUSTFLAGS=" cargo install --verbose --root $PREFIX --path .
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 malformed cargo installation command

The current command is incomplete and has syntax errors.

Apply this diff to fix the cargo installation command:

-RUST_BACKTRACE=1 RUSTFLAGS=" cargo install --verbose --root $PREFIX --path .
+RUST_BACKTRACE=1 RUSTFLAGS="-C target-feature=+crt-static" cargo install --verbose --root $PREFIX --path .

This:

  1. Properly formats the RUSTFLAGS for static linking
  2. Completes the command with proper syntax
📝 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
RUST_BACKTRACE=1 RUSTFLAGS=" cargo install --verbose --root $PREFIX --path .
RUST_BACKTRACE=1 RUSTFLAGS="-C target-feature=+crt-static" cargo install --verbose --root $PREFIX --path .

Comment on lines 5 to 12
unamestr=`uname`
if [ "$unamestr" == 'Darwin' ];
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi
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 shell syntax in the if condition

The if condition has syntax errors that need to be corrected.

Apply this diff to fix the shell syntax:

 unamestr=`uname`
-if [ "$unamestr" == 'Darwin' ];
+if [ "$unamestr" = 'Darwin' ]; then
   export CC=clang
   export CXX=clang++
 else
   export CC=gcc
   export CXX=g++
 fi

Note: Using = instead of == for POSIX shell compatibility.

📝 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
unamestr=`uname`
if [ "$unamestr" == 'Darwin' ];
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi
unamestr=`uname`
if [ "$unamestr" = 'Darwin' ]; then
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi
🧰 Tools
🪛 Shellcheck

[error] 6-6: Did you forget the 'then' for this 'if'?

(SC1049)


[error] 6-6: Couldn't parse this if expression. Fix to allow more checks.

(SC1073)


[error] 9-9: Expected 'then'.

(SC1050)


[error] 9-9: Unexpected keyword/token. Fix any mentioned problems and try again.

(SC1072)

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/oarfish/build.sh (1)

Line range hint 1-20: Enhance build reproducibility

Consider adding version checks for all required compilers (C, C++, Rust) at the start of the script to fail fast if requirements aren't met. This would improve build reproducibility and provide clearer error messages.

Would you like me to provide an implementation for compiler version checks?

🧰 Tools
🪛 Shellcheck

[error] 20-20: Couldn't parse this double quoted string. Fix to allow more checks.

(SC1073)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 586b286 and fc93ae5.

📒 Files selected for processing (1)
  • recipes/oarfish/build.sh (1 hunks)
🧰 Additional context used
🪛 Shellcheck
recipes/oarfish/build.sh

[error] 20-20: Couldn't parse this double quoted string. Fix to allow more checks.

(SC1073)

🔇 Additional comments (2)
recipes/oarfish/build.sh (2)

5-13: Past review comment is still applicable

The shell syntax issues in the if condition were already identified in a previous review.


20-20: Past review comment is still applicable

The malformed cargo installation command issues were already identified in a previous review.

🧰 Tools
🪛 Shellcheck

[error] 20-20: Couldn't parse this double quoted string. Fix to allow more checks.

(SC1073)

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

🧹 Outside diff range and nitpick comments (1)
recipes/oarfish/build.sh (1)

Line range hint 1-24: Consider following bioconda build script best practices

The build script could benefit from following bioconda's best practices:

  1. Use #!/usr/bin/env bash for better portability
  2. Consider using bioconda's build environment variables (e.g., $PREFIX, $BUILD_PREFIX)
  3. Add error handling and logging

Would you like me to provide an example of a more robust build script following these practices?

🧰 Tools
🪛 Shellcheck

[warning] 15-15: This expands when defined, not when used. Consider escaping.

(SC2139)


[warning] 16-16: This expands when defined, not when used. Consider escaping.

(SC2139)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 5eaddb3 and 007bdf9.

📒 Files selected for processing (1)
  • recipes/oarfish/build.sh (1 hunks)
🧰 Additional context used
🪛 Shellcheck
recipes/oarfish/build.sh

[warning] 15-15: This expands when defined, not when used. Consider escaping.

(SC2139)


[warning] 16-16: This expands when defined, not when used. Consider escaping.

(SC2139)

Comment on lines 5 to 13
unamestr=`uname`
if [ "$unamestr" == 'Darwin' ];
then
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi
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 POSIX shell compatibility issue in if condition

The if condition uses == which is bash-specific. For better portability across different shells, use = instead.

Apply this diff:

-if [ "$unamestr" == 'Darwin' ];
+if [ "$unamestr" = 'Darwin' ];
📝 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
unamestr=`uname`
if [ "$unamestr" == 'Darwin' ];
then
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi
unamestr=`uname`
if [ "$unamestr" = 'Darwin' ];
then
export CC=clang
export CXX=clang++
else
export CC=gcc
export CXX=g++
fi

Comment on lines +18 to +19
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable --profile=minimal -y
export PATH="$HOME/.cargo/bin:$PATH"
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

Pin Rust version and improve installation security

  1. The script doesn't enforce the required Rust 1.82 version mentioned in PR objectives
  2. Using curl | sh without verification is potentially unsafe

Apply this diff:

-curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable --profile=minimal -y
+# Download rustup-init first
+curl -o rustup-init.sh https://sh.rustup.rs -sSf
+# Verify the download (add checksum verification here)
+chmod +x rustup-init.sh
+# Install with specific version
+./rustup-init.sh --default-toolchain 1.82.0 --profile=minimal -y
+rm rustup-init.sh
📝 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
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable --profile=minimal -y
export PATH="$HOME/.cargo/bin:$PATH"
# Download rustup-init first
curl -o rustup-init.sh https://sh.rustup.rs -sSf
# Verify the download (add checksum verification here)
chmod +x rustup-init.sh
# Install with specific version
./rustup-init.sh --default-toolchain 1.82.0 --profile=minimal -y
rm rustup-init.sh
export PATH="$HOME/.cargo/bin:$PATH"

Comment on lines 15 to 16
alias cc=$CC
alias cxx=$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 alias expansion timing

The current aliases expand the variables when defined, not when used. This could cause issues if CC/CXX are modified later.

Apply this diff to use proper shell functions instead:

-alias cc=$CC
-alias cxx=$CXX
+cc() { $CC "$@"; }
+cxx() { $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
alias cc=$CC
alias cxx=$CXX
cc() { $CC "$@"; }
cxx() { $CXX "$@"; }
🧰 Tools
🪛 Shellcheck

[warning] 15-15: This expands when defined, not when used. Consider escaping.

(SC2139)


[warning] 16-16: This expands when defined, not when used. Consider escaping.

(SC2139)

Copy link
Contributor

@rob-p rob-p left a comment

Choose a reason for hiding this comment

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

This LGTM, though it would be great if we could specify the most recent compiler in the YAML file rather than having to use rustup directly here.

@rob-p rob-p merged commit b013559 into master Nov 14, 2024
6 checks passed
@rob-p rob-p deleted the bump/oarfish branch November 14, 2024 16:45
@coderabbitai coderabbitai bot mentioned this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autobump Automatic Version Update new version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants