Skip to content

Fix failing unit tests with clean build#7264

Merged
bentsherman merged 1 commit into
masterfrom
fix-cmd-log-test
Jun 26, 2026
Merged

Fix failing unit tests with clean build#7264
bentsherman merged 1 commit into
masterfrom
fix-cmd-log-test

Conversation

@bentsherman

Copy link
Copy Markdown
Member

Certain unit tests fail when run individually from a clean build. For example:

make clean
./gradlew :nextflow:test --tests CmdLogTest

A unit test fails with "org.pf4j.PluginRuntimeException: Cannot find the manifest path"

This happens because CmdLog calls Plugins.init(), which uses the DevPluginManager, which tries to load every core plugin regardless of whether it has been built

You don't hit this error with make test because it happens to build all of the plugins before running any tests

The solution is for the DevPluginManager to only load plugins that have been built

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman requested a review from jorgee June 26, 2026 05:02
@netlify

netlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs canceled.

Name Link
🔨 Latest commit 8bb0ae6
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs/deploys/6a3e07dd3df26e00087f48c5

@bentsherman bentsherman merged commit e3a44ba into master Jun 26, 2026
24 of 25 checks passed
@bentsherman bentsherman deleted the fix-cmd-log-test branch June 26, 2026 14:10
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.

2 participants