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 el_gato to 1.20.1 #51051

Closed
wants to merge 6 commits into from
Closed

Update el_gato to 1.20.1 #51051

wants to merge 6 commits into from

Conversation

BiocondaBot
Copy link
Collaborator

@BiocondaBot BiocondaBot commented Sep 30, 2024

Update el_gato: 1.19.01.20.1

install with bioconda Conda

Info Link or Description
Recipe recipes/el_gato (click to view/edit other files)
Summary Perform Legionella pneumophila Sequence Based Typing (SBT) from short reads or assemblies.
Home https://github.com/appliedbinf/el_gato
Releases https://github.com/appliedbinf/el_gato/tags
Author @appliedbinf

This pull request was automatically generated (see docs).

@BiocondaBot BiocondaBot added autobump Automatic Version Update new version labels Sep 30, 2024
Copy link
Contributor

coderabbitai bot commented Sep 30, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces updates to the el_gato package, including the removal of the build.sh script and modifications to the meta.yaml file. The version is updated to 1.20.0, with changes to the build configuration and dependencies. A new script section is added to the build process, and the summary in the about section is slightly modified. The changes reflect adjustments in the package setup and dependency management.

Changes

File Change Summary
recipes/el_gato/build.sh Deleted the build.sh script, which previously handled Python package installation and file copying.
recipes/el_gato/meta.yaml Updated version to 1.20.0, changed build configuration from noarch: generic to noarch: python, added new script section for file copying and installation, removed setuptools from host requirements, added colorama and importlib-metadata as new dependencies, and modified the summary to include a period.

Possibly related PRs

  • Update bactopia-teton to 1.0.5 #51037: The bactopia-teton package update includes a new requirement for sizemeup >=1.0.2, which is relevant since the main PR involves changes to the sizemeup package.

Suggested labels

please review & merge

Suggested reviewers

  • martin-g

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9aa6016 and 5144c2a.

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

@Alan-Collins
Copy link
Contributor

@mencian Thanks for tidying up the recipe. The build is now failing because the database files that were being copied in the build.sh script aren't found. Are you able to offer any guidance here on how to fix this issue? Is the $PREFIX environment variable the correct way to refer to the conda environment prefix in the meta.yaml or does that need to be changed as well?

@martin-g
Copy link
Contributor

martin-g commented Oct 2, 2024

It looks to me that the DB files were created by https://github.com/bioconda/bioconda-recipes/pull/51051/files#diff-23e0b91a3b7cd25eeb68639a967975077fa68686b822522cc35970d2fed9b2dcL3
Now pip install is called after trying to copy the DB files.

@Alan-Collins
Copy link
Contributor

Yes, I saw the changes you made. However, the build now fails saying it is unable to find one of the files which should have been copied. It seems to be looking in the wrong location now:

FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/conda-bld/el_gato_1727712929695/_h_env_placehold_.../bin/all_loci.fasta.ndb'

That file should be in /opt/conda/conda-bld/el_gato.../bin/db/

Before your changes, the build failed with importlib.metadata.PackageNotFoundError: elgato, but passed the steps that are now failing.

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 2ca4053 and 691ff8b.

📒 Files selected for processing (1)
  • recipes/el_gato/meta.yaml (3 hunks)
🔇 Additional comments (5)
recipes/el_gato/meta.yaml (5)

2-3: Version and hash update looks good.

The version has been correctly updated to 1.20.0, and the corresponding SHA256 hash has been updated. This is consistent with the PR objectives.


22-22: Run exports update is appropriate.

The change in max_pin from 'x.x' to 'x' allows for more flexible version compatibility, which is consistent with common practices for Python packages.


49-49: Summary update is a minor improvement.

The addition of a period at the end of the summary is a small but welcome grammatical improvement.


37-38: New dependencies added appropriately.

The addition of colorama for Linux and importlib-metadata for Python <= 3.8 addresses specific requirements for different environments. The conditions are correctly specified.

To ensure these dependencies are correctly utilized in the package, please run the following script:

#!/bin/bash
# Description: Verify the usage of new dependencies in the package

# Test: Check for imports or usage of colorama and importlib-metadata
rg -i 'import\s+(colorama|importlib[-_]metadata)' --type python
rg -i '(colorama|importlib[-_]metadata)\..' --type python

50-51: New URL additions are valuable.

The addition of dev_url and doc_url provides important links to development and documentation resources. The URLs are correctly formatted and use appropriate variables.

To ensure these URLs are correct and accessible, please run the following script:

Comment on lines 16 to 20
noarch: python
script:
- {{ PYTHON }} -m pip install . -vvv --no-deps --no-build-isolation --no-cache-dir
- mkdir -p $PREFIX/bin/db
- cp el_gato/db/* $PREFIX/bin/db/
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Issue with $PREFIX usage: Environment variable is not set.

The $PREFIX environment variable is not set, causing the script to attempt copying database files to /bin/db/, which does not exist.

Please ensure that $PREFIX is correctly set before running the build script.

🔗 Analysis chain

Build configuration update looks good, but verify $PREFIX usage.

The change to noarch: python is appropriate for a Python package. The new build script correctly installs the package using pip and copies the database files.

However, based on the PR comments, there might be an issue with the $PREFIX usage.

Please verify the correct path for database files using the following script:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the correct path for database files

# Test: Check if the database files are correctly copied to the expected location
fd -t f . "$PREFIX/bin/db"

Length of output: 281


Script:

#!/bin/bash
# Description: Verify the correct path for database files

# Test: Check if the database directory exists and list its contents
if [ -d "$PREFIX/bin/db" ]; then
  echo "Contents of $PREFIX/bin/db:"
  ls -la "$PREFIX/bin/db/"
else
  echo "Error: Directory $PREFIX/bin/db does not exist."
  exit 1
fi

Length of output: 120


Script:

#!/bin/bash
# Description: Print the value of $PREFIX

echo "PREFIX is set to: $PREFIX"

Length of output: 46

@BiocondaBot BiocondaBot changed the title Update el_gato to 1.20.0 Update el_gato to 1.20.1 Oct 18, 2024
bgruening pushed a commit that referenced this pull request Oct 18, 2024
* bump version to 1.20.0 and (hopefully) fix build issues in #51051

* try noarch python

* build noarch generic but try skipping noarch lint

* add new 1.20.1 release
@mencian
Copy link
Contributor

mencian commented Oct 18, 2024

Closing in favor of #51484.

@mencian mencian closed this Oct 18, 2024
@mencian mencian deleted the bump/el_gato branch October 18, 2024 21:19
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.

4 participants