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
fix: fix string resource definition in CLI and profile #2627
Merged
Conversation
This file contains 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
@johanneskoester does this make sense? Any progress on this side? |
johanneskoester
changed the title
Fix/default arg propagation
fix: fix string resource definition in CLI and profile
Feb 2, 2024
johanneskoester
approved these changes
Feb 2, 2024
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
johanneskoester
pushed a commit
that referenced
this pull request
Feb 2, 2024
🤖 I have created a release *beep* *boop* --- ## [8.4.3](v8.4.2...v8.4.3) (2024-02-02) ### Bug Fixes * Do not scheduler execution message if no jobs are ready ([b1c4f47](b1c4f47)) * fix string resource definition in CLI and profile ([#2627](#2627)) ([bbd76ae](bbd76ae)) * if report files are within storage, retrieve them from storage before loading into report ([60041bd](60041bd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8 tasks
Thank you for the fix! Alas, case no. 1 is not covered, yet - as it seems. |
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.
Description
The PR is related to the issue described for the slurm submit executor plugin to not correctly hand over arguments.
The test folder is named
test_slurm_resource_propagation meesters
and may not be complete, as it covers multiple related scenarios to provoke the error.Note, that the tests were carried out when using a cluster:
$ snakemake --executor slurm -j2 --workflow-profile ./profiles/ --default-resources slurm_account=<account>
yields
``Error:
WorkflowError:
Failed to evaluate default resources value '<function eval_resource_expression..callable at 0x7f5c19ed0e00>'.```
when the patition is defined at the rule level in a profile. (see the directory of the test case)
likewise
$ snakemake --executor slurm -j2 --workflow-profile ./profiles/ --default-resources slurm_account=<account> --set-resources slurm_extra="--nice=150"
yields
ValueError: Invalid resource definition: entries have to be defined as RULE:RESOURCE=VALUE, with VALUE being a positive integer a quoted string, or a Python expression (e.g. min(max(2*input.size_mb, 1000), 8000)).
These errors can both be triggered on the command line and in the config file, of course.
QC
docs/
) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).