Add all plugin build directories to LD_LIBRARY_PATH and GAUDI_PLUGIN_PATH for tests - #89
Merged
Merged
Conversation
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
enabled auto-merge (squash)
July 30, 2026 14:58
This file contains hidden or 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
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.
Only the
DCHdigibuild directory was listed inLD_LIBRARY_PATHandGAUDI_PLUGIN_PATHinset_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:BEGINRELEASENOTES
LD_LIBRARY_PATHandGAUDI_PLUGIN_PATHwhen 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 ak4RecTrackerfrom the stack.ENDRELEASENOTES
Should make #87 pass.