feat: lifebit related changes for 25.04 version#32
feat: lifebit related changes for 25.04 version#32mageshwaran-lifebit merged 4 commits into25.04.8from
Conversation
tiagofilipe12
left a comment
There was a problem hiding this comment.
We need to add branch protection rules for this branch @mageshwaran-lifebit . Are you able to do it?
There was a problem hiding this comment.
Pull request overview
Adds support for pre-loading Lifebit plugins in the Nextflow run command, based on an environment variable, so specified plugins are loaded before pipeline execution.
Changes:
- Invoke a new preloading hook during
CmdRun.run()initialization (afterPlugins.init()). - Add
preloadLifebitPlugins()to readNXF_LIFEBIT_PRELOAD_PLUGINSand load the listed plugins via the plugin subsystem.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| void preloadLifebitPlugins() { | ||
| def plugins = sysEnv.get('NXF_LIFEBIT_PRELOAD_PLUGINS') | ||
| if( plugins ) { | ||
| log.debug("Pre-loading Lifebit's plugins '${plugins}'...") | ||
| Plugins.load([plugins: plugins.tokenize(',').collect { it.trim() }]) | ||
| log.debug("Preloaded Lifebit's plugins '${plugins}'.") | ||
| } else { | ||
| log.debug("No Lifebit's plugins to pre-load") | ||
| } |
There was a problem hiding this comment.
There are existing unit tests for CmdRun (e.g. modules/nextflow/src/test/groovy/nextflow/cli/CmdRunTest.groovy). The new env-driven plugin preloading behavior isn’t covered; adding a test that verifies parsing/normalization of NXF_LIFEBIT_PRELOAD_PLUGINS and that the plugin loader is invoked with the expected ids (including edge-cases like whitespace/trailing commas) would help prevent regressions.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request adds support for pre-loading Lifebit plugins in the Nextflow CLI. The main change is the introduction of a method that checks for a specific environment variable and loads the specified plugins before pipeline execution.
Lifebit plugin pre-loading:
preloadLifebitPluginsmethod toCmdRun, which checks theNXF_LIFEBIT_PRELOAD_PLUGINSenvironment variable and loads the listed plugins if present.preloadLifebitPluginsmethod during command initialization, ensuring Lifebit plugins are loaded before pipeline execution.