build, run: Run Snakemake with --benchmark-extended#513
Merged
Conversation
This only applies to --cores and --resources, not --local-storage-prefix.
This is more consistent with the run and view commands.
63b0216 to
928646e
Compare
928646e to
0fec61f
Compare
--benchmark-extended--benchmark-extended
Parallels IMAGE_FEATURE for Docker.
Preparing for reuse.
0fec61f to
c996c7f
Compare
Comment on lines
+455
to
+469
| def supports_benchmark_extended(opts) -> bool: | ||
| """ | ||
| Check if the runner's image or environment supports Snakemake's | ||
| ``--benchmark-extended`` option (requires Snakemake ≥8.11.0). | ||
| """ | ||
| if opts.__runner__ in (docker, aws_batch, singularity): | ||
| image = runner.configured_image(opts) | ||
| if opts.__runner__ is singularity: | ||
| image = remove_prefix("docker://", image) | ||
| return docker.image_supports(docker.IMAGE_FEATURE.benchmark_extended, image) | ||
|
|
||
| if opts.__runner__ is conda: | ||
| return conda.env_supports(conda.ENV_FEATURE.benchmark_extended) | ||
|
|
||
| return False |
Member
There was a problem hiding this comment.
What happens on ambient? Is directly interrogating the snakemake version acceptable?
Member
Author
There was a problem hiding this comment.
It returns False and doesn't automatically add --benchmark-extended.
Member
Author
There was a problem hiding this comment.
We could run snakemake --version and parse that, but I don't think it's worth the added complexity because this is currently all happening before actual invocation of Snakemake.
joverlee521
approved these changes
Mar 20, 2026
Contributor
joverlee521
left a comment
There was a problem hiding this comment.
Thanks for working on this! I only left a small comment.
c996c7f to
d445976
Compare
Commands used to find compatible versions for Docker¹ and Conda²:
curl -s "https://registry.hub.docker.com/v2/repositories/nextstrain/base/tags?page_size=1000" \
| jq -r '.results[].name | select(startswith("build-20250717"))'
micromamba search -c nextstrain "nextstrain-base >20250716,<20250718"
¹ nextstrain/docker-base@0d9577d
² nextstrain/conda-base@0d7a87f
d445976 to
6724e91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains 4 prep commits, 1 main commit that closes #467, and 1 follow-up commit.
Checklist
Checks pass
Locally tested both
buildandrunwith measlesLocally tested compatibility with Snakemake v7
Update changelog