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

mummer: fix linux build #50669

Merged
merged 6 commits into from
Sep 13, 2024
Merged

mummer: fix linux build #50669

merged 6 commits into from
Sep 13, 2024

Conversation

aliciaaevans
Copy link
Contributor

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

@aliciaaevans
Copy link
Contributor Author

@BiocondaBot please fetch artifacts

@BiocondaBot
Copy link
Collaborator

Package(s) built are ready for inspection:

Arch Package Zip File / Repodata CI Instructions
linux-64 mummer-3.23-pl5321hdbdd923_20.tar.bz2 LinuxArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the LinuxArtifacts directory: conda install -c ./packages <package name>
osx-64 mummer-3.23-pl5321h4a92bd6_20.tar.bz2 OSXArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the OSXArtifacts directory: conda install -c ./packages <package name>
osx-arm64 mummer-3.23-pl5321h85d7946_20.tar.bz2 repodata.json CircleCI
showYou may also use conda to install:conda install -c https://output.circle-artifacts.com/output/job/e36aa80a-0d9e-404e-9565-d9365599b65d/artifacts/0/tmp/artifacts/packages <package name>
linux-aarch64 mummer-3.23-pl5321h7021222_20.tar.bz2 repodata.json CircleCI
showYou may also use conda to install:conda install -c https://output.circle-artifacts.com/output/job/cf8261d1-722a-4c6e-a27d-07d8213bec66/artifacts/0/tmp/artifacts/packages <package name>

Docker image(s) built:

Package Tag CI Install with docker
mummer 3.23--pl5321hdbdd923_20 Azure
showImages for Azure are in the LinuxArtifacts zip file above.gzip -dc LinuxArtifacts/images/mummer:3.23--pl5321hdbdd923_20.tar.gz | docker load

@@ -47,12 +49,13 @@ for i in exact-tandems dnadiff mapview mummerplot nucmer promer run-mummer1 run-
perl -i -pe 's/(envs\/\_\_.*)(\K\@)/\\@/' $i
done

# fix hashbang lines to use conda's perl
for i in dnadiff mapview mummerplot nucmer promer; do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this out for clarity and because I think the linux build actually needs this too, but the file command is not available on the build container.

@aliciaaevans
Copy link
Contributor Author

@BiocondaBot please fetch artifacts

@aliciaaevans aliciaaevans marked this pull request as ready for review September 12, 2024 21:44
@BiocondaBot
Copy link
Collaborator

Package(s) built are ready for inspection:

Arch Package Zip File / Repodata CI Instructions
linux-64 mummer-3.23-pl5321hdbdd923_20.tar.bz2 LinuxArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the LinuxArtifacts directory: conda install -c ./packages <package name>
osx-64 mummer-3.23-pl5321h4a92bd6_20.tar.bz2 OSXArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the OSXArtifacts directory: conda install -c ./packages <package name>
osx-arm64 mummer-3.23-pl5321h85d7946_20.tar.bz2 repodata.json CircleCI
showYou may also use conda to install:conda install -c https://output.circle-artifacts.com/output/job/ac33e031-50df-4d9b-8218-258673239895/artifacts/0/tmp/artifacts/packages <package name>
linux-aarch64 mummer-3.23-pl5321h7021222_20.tar.bz2 repodata.json CircleCI
showYou may also use conda to install:conda install -c https://output.circle-artifacts.com/output/job/68857244-20f5-4e0b-bba0-4eec3048c464/artifacts/0/tmp/artifacts/packages <package name>

Docker image(s) built:

Package Tag CI Install with docker
mummer 3.23--pl5321hdbdd923_20 Azure
showImages for Azure are in the LinuxArtifacts zip file above.gzip -dc LinuxArtifacts/images/mummer:3.23--pl5321hdbdd923_20.tar.gz | docker load

@aliciaaevans
Copy link
Contributor Author

@peterjc if you are able to test this with your test case from #49899, that would be great.

Copy link
Contributor

@peterjc peterjc left a comment

Choose a reason for hiding this comment

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

That's subtle - so the Linux failure was due to missing the file command (and I'm guessing therefore running sed on non-Perl scripts?).

The changes look good, I'm about to test the packages...

  • The new osx-64 package works (to be expected)
  • The new linux-64 package works 🚀

@peterjc
Copy link
Contributor

peterjc commented Sep 13, 2024

Closes #49899

@aliciaaevans
Copy link
Contributor Author

@peterjc I think linux also needed the patches, but this was inconsistent to test. Sometimes I ended up with an error and sometimes with a nearly empty results file. I think caching may have come into play somehow. Just happy this works. Thanks!

@aliciaaevans aliciaaevans merged commit 3f826de into master Sep 13, 2024
6 checks passed
@aliciaaevans aliciaaevans deleted the fix-mummer-linux branch September 13, 2024 15:44
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.

3 participants