Skip to content

Add all plugin build directories to LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH for tests - #89

Merged
jmcarcell merged 2 commits into
mainfrom
fix-gaudi-plugin-path-tests
Jul 30, 2026
Merged

Add all plugin build directories to LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH for tests#89
jmcarcell merged 2 commits into
mainfrom
fix-gaudi-plugin-path-tests

Conversation

@jmcarcell

@jmcarcell jmcarcell commented Jul 30, 2026

Copy link
Copy Markdown
Member

Only the DCHdigi build directory was listed in LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH in set_test_env, so from a clean build tree Gaudi could not discover plugins built in any of the other subdirectories. Tests relying on them fail with something like:

AlgorithmManager  ERROR Algorithm of type TrackMerger is unknown (No factory available).

BEGINRELEASENOTES

  • Add all the plugin build directories to LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH when setting up the test environment, so that plugins are found in a clean build tree to avoid issues with the LCG stacks (where there is always a k4RecTracker from the stack.

ENDRELEASENOTES

Should make #87 pass.

Only the DCHdigi build directory was in GAUDI_PLUGIN_PATH, so Gaudi could
not discover plugins built in the other subdirectories from a clean build
tree. Tests using them failed with "Algorithm of type ... is unknown (No
factory available)".

This went unnoticed because incremental builds keep a populated .plugins
directory around, which is also on the path.
The same directories were missing from LD_LIBRARY_PATH, so loading a
plugin that links against a library from another subdirectory would fail
in a clean build tree for the same reason.
@jmcarcell jmcarcell changed the title Add all plugin build directories to GAUDI_PLUGIN_PATH for tests Add all plugin build directories to LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH for tests Jul 30, 2026
@jmcarcell
jmcarcell enabled auto-merge (squash) July 30, 2026 14:58
@jmcarcell
jmcarcell merged commit 30dd4a6 into main Jul 30, 2026
6 of 7 checks passed
@jmcarcell
jmcarcell deleted the fix-gaudi-plugin-path-tests branch July 30, 2026 15:05
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.

1 participant