fix: remote pre-command not installing all required storage plugins#3116
fix: remote pre-command not installing all required storage plugins#3116johanneskoester merged 2 commits intosnakemake:mainfrom
Conversation
WalkthroughThe changes in this pull request modify the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SpawnedJobArgsFactory
participant StorageProvider
User->>SpawnedJobArgsFactory: Request to prepare command
SpawnedJobArgsFactory->>StorageProvider: Retrieve package names
StorageProvider-->>SpawnedJobArgsFactory: Return package names
SpawnedJobArgsFactory->>SpawnedJobArgsFactory: Remove duplicates
SpawnedJobArgsFactory->>SpawnedJobArgsFactory: Construct precommand string
SpawnedJobArgsFactory-->>User: Return precommand with packages
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
|
Good catch! Indeed, a testcase is tricky, but the code is pretty clear and minimal. I think we can for now live with not having one. |
🤖 I have created a release *beep* *boop* --- ## [8.20.7](v8.20.6...v8.20.7) (2024-10-09) ### Bug Fixes * install conda in container image ([#3127](#3127)) ([afa7bad](afa7bad)) * remote pre-command not installing all required storage plugins ([#3116](#3116)) ([d829bb7](d829bb7)) --- 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>



Related Issues:
#2501
snakemake/snakemake-executor-plugin-kubernetes#19
When the job spawner prepares the
precommandfor remote execution, it only registers thedefault storage providerwhich fails to acknowledge the presence of a storage provider within the snakefile.This PR should now register all storage providers that
workflowhas recognized.NOTE: unsure how to I could add a test case for this?
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).Summary by CodeRabbit
New Features
Bug Fixes