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 trgt to 1.0.0 #50951

Merged
merged 9 commits into from
Sep 27, 2024
Merged

Update trgt to 1.0.0 #50951

merged 9 commits into from
Sep 27, 2024

Conversation

tmokveld
Copy link
Contributor

@tmokveld tmokveld commented Sep 25, 2024

Update trgt to 1.0.0. Added corresponding changes to manage consolidation of trgt and trvz binaries.

Summary by CodeRabbit

  • New Features

    • Updated trgt package to version 1.0.0 with a new source URL format.
    • Added a new license for the trgt package.
    • Included an additional recipe maintainer.
  • Bug Fixes

    • Removed outdated source entry and adjusted test commands for clarity.
  • Chores

    • Deleted the build.sh script, impacting the automated setup process for binaries.

recipe-maintainers:
- zeeev
- williamrowell

build:
number: 0
noarch: generic
Copy link
Contributor

Choose a reason for hiding this comment

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

The downloaded tarball says linux-64 but here it says noarch. IMO this line should be removed

@tmokveld

This comment was marked as resolved.

@tmokveld tmokveld requested a review from martin-g September 26, 2024 08:33
@tmokveld
Copy link
Contributor Author

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Sep 26, 2024
Copy link
Contributor

coderabbitai bot commented Sep 26, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request includes significant updates to the meta.yaml file for the trgt package, which has been upgraded to version 1.0.0. Changes include an updated SHA256 checksum, a revised source URL format, and a new license specification. The build section has been modified to skip builds for non-linux64 platforms. Additionally, the build.sh script has been removed, which previously handled the setup of the build environment and binary management. A new maintainer has also been added to the recipe.

Changes

File Change Summary
recipes/trgt/build.sh Removed the script responsible for setting up the build environment and managing binaries.
recipes/trgt/meta.yaml Updated version to 1.0.0, changed SHA256 checksum, modified source URL, updated license, adjusted build section, and modified test commands. Added new maintainer.

Possibly related PRs

  • trnascan-se: add aarch64/arm64 build #50996: The changes in the meta.yaml file for trnascan-se include updates to the SHA256 checksum and the source URL, similar to the modifications made in the meta.yaml for trgt, which also involved updating the SHA256 checksum and the source URL format.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between aa8fa0c and f18252b.

📒 Files selected for processing (1)
  • recipes/trgt/meta.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • recipes/trgt/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: 2

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

10-11: Source URL and SHA256 updates look good.

The source URL has been correctly updated to use the new tarball format, and the SHA256 reference is properly conditioned for the linux64 platform. This aligns with the build skip condition for non-linux64 platforms.

Consider moving the platform condition to a separate line for better readability:

source:
  - url: https://github.com/PacificBiosciences/trgt/releases/download/v{{ version }}/trgt-v{{ version }}-x86_64-unknown-linux-gnu.tar.gz
    sha256: {{ trgt_sha256 }}
    selector: [linux64]
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d6403ea and 6bfef43.

📒 Files selected for processing (2)
  • recipes/trgt/build.sh (0 hunks)
  • recipes/trgt/meta.yaml (1 hunks)
💤 Files not reviewed due to no reviewable changes (1)
  • recipes/trgt/build.sh
🧰 Additional context used
🪛 yamllint
recipes/trgt/meta.yaml

[error] 38-38: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (4)
recipes/trgt/meta.yaml (4)

2-2: Version update looks good.

The version has been correctly updated to 1.0.0, which aligns with the PR objective.


3-3: SHA256 checksum update is correct.

The SHA256 checksum has been updated to match the new version of the package.


15-15: License update is appropriate.

The license has been updated to provide more specific information, including a direct link to the license file. This change improves the clarity of the licensing terms for the package.


30-30: Test command update is correct.

The test command has been appropriately updated to only check the version of trgt, which aligns with the consolidation of the trgt and trvz binaries.

Comment on lines 32 to 38
extra:
recipe-maintainers:
- zeeev
- williamrowell
- tmokveld
skip-lints:
- should_be_noarch_generic
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

Extra section updates and file formatting.

The addition of the new recipe maintainer is appropriate. However, there are two issues to address:

  1. As mentioned in a previous comment, the skip-lints entry should be removed, and noarch: false should be added to the build section instead.

  2. The file is missing a newline at the end, which is a minor formatting issue.

To resolve these issues, apply the following diff:

extra:
  recipe-maintainers:
    - zeeev
    - williamrowell
    - tmokveld
- skip-lints:
-   - should_be_noarch_generic
+

This change will remove the unnecessary skip-lints entry and add the required newline at the end of the file.

📝 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
extra:
recipe-maintainers:
- zeeev
- williamrowell
- tmokveld
skip-lints:
- should_be_noarch_generic
extra:
recipe-maintainers:
- zeeev
- williamrowell
- tmokveld
🧰 Tools
🪛 yamllint

[error] 38-38: no new line character at the end of file

(new-line-at-end-of-file)

Comment on lines 20 to 24
skip: true # [not linux64]
script:
- mkdir -p ${PREFIX}/bin
- cp trgt ${PREFIX}/bin/
- chmod +x ${PREFIX}/bin/trgt
Copy link
Contributor

@coderabbitai coderabbitai bot Sep 26, 2024

Choose a reason for hiding this comment

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

⚠️ Potential issue

Build script changes look good, but consider noarch package.

The build script has been correctly updated to skip non-linux64 platforms and properly handle the trgt executable. However, there's a potential issue with the package being built as platform-specific when it could be noarch.

The linter error mentioned in the PR comments suggests that this package should be built as noarch. Given that the package is a pre-built binary for a specific architecture, it cannot be noarch. To resolve this, you should:

  1. Remove the skip-lints entry for should_be_noarch_generic.
  2. Add noarch: false to the build section to explicitly declare that this is not a noarch package.

Apply this diff to make these changes:

build:
  number: 0
  skip: true  # [not linux64]
+ noarch: false
  script:
    - mkdir -p ${PREFIX}/bin
    - cp trgt ${PREFIX}/bin/
    - chmod +x ${PREFIX}/bin/trgt

...

extra:
  recipe-maintainers:
    - zeeev
    - williamrowell
    - tmokveld
- skip-lints:
-   - should_be_noarch_generic

These changes will resolve the linter error while correctly specifying that this is a platform-specific package.

Committable suggestion was skipped due to low confidence.

Copy link
Contributor

Choose a reason for hiding this comment

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

@tmokveld This is the correct way ^^

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@martin-g Seems the linter isn't happy again, locally I get: ERROR: recipes/trgt/meta.yaml:27: should_be_noarch_generic: The recipe should be build as noarch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@martin-g Is there any other suggested change to fix this? I seem to be running in circles with these changes...

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, sorry about that! It seems the Bioconda build does not support it - #50985 (comment)
Please use the lint skip for now!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I'll do that!

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

38-38: Minor formatting issues to address.

There are two minor formatting issues detected by yamllint:

  1. Missing newline character at the end of the file
  2. Trailing spaces on the last line

To resolve these issues, please apply the following changes:

  1. Add a newline at the end of the file
  2. Remove the trailing spaces from the last line
🧰 Tools
🪛 yamllint

[error] 38-38: no new line character at the end of file

(new-line-at-end-of-file)


[error] 38-38: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 6bfef43 and aa8fa0c.

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

[error] 38-38: no new line character at the end of file

(new-line-at-end-of-file)


[error] 38-38: trailing spaces

(trailing-spaces)

🔇 Additional comments (7)
recipes/trgt/meta.yaml (7)

2-2: Version update looks good.

The package version has been correctly updated to 1.0.0, which aligns with the PR objective.


3-3: SHA256 checksum update is correct.

The SHA256 checksum has been updated to match the new version of the package, which is crucial for ensuring the integrity of the downloaded files.


10-11: Source URL and checksum updates are correct.

The source URL has been updated to reflect the new version and package format. The SHA256 checksum is correctly referenced using the Jinja2 variable. These changes are appropriately limited to the linux64 platform.


15-15: License update provides better clarity.

The license has been updated to "Pacific Biosciences Software License" with a direct link to the license file. This change offers more precise information about the software's licensing terms.


20-25: Build section updates look good.

The build instructions have been correctly updated to handle the linux64-specific package. The addition of noarch: false addresses the linter error mentioned in the PR comments. These changes align with the suggestions made in past review comments.

@martin-g The noarch: false addition resolves the issue you pointed out earlier regarding the linux-64 specificity of the package.


31-31: Test command update is appropriate.

The removal of the trvz test command aligns with the PR objective to consolidate the trgt and trvz binaries. The remaining trgt --version command is sufficient for testing this package.


37-37: New recipe maintainer added successfully.

The addition of tmokveld as a recipe maintainer is appropriate and aligns with the PR submitter.

@martin-g martin-g merged commit eb792fc into bioconda:master Sep 27, 2024
7 checks passed
@tmokveld tmokveld deleted the add-trgt-1.0.0 branch September 27, 2024 10:39
@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
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants