-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DPL: trigger runtime error in case of duplicate processor names #13963
base: dev
Are you sure you want to change the base?
Conversation
REQUEST FOR PRODUCTION RELEASES:
This will add The following labels are available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thx, though didn't verify that it actually works.
I checked it with two workflows and one of the dummy workflows where I changed the name of one processor to match one of the other workflows. I got the error whenever I included the dummy workflow, and never without it. |
@@ -2959,7 +2959,11 @@ int doMain(int argc, char** argv, o2::framework::WorkflowSpec const& workflow, | |||
for (auto& dp : importedWorkflow) { | |||
auto found = std::find_if(physicalWorkflow.begin(), physicalWorkflow.end(), | |||
[&name = dp.name](DataProcessorSpec const& spec) { return spec.name == name; }); | |||
if (found == physicalWorkflow.end()) { | |||
// also checking the workflow for processors with the same name but from a different executable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why two find_if statements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point :)
Error while checking build/O2/fullCI for 419b9db at 2025-02-17 14:54:
Full log here. |
Error while checking build/O2/fullCI_slc9 for 419b9db at 2025-02-14 21:42:
Full log here. |
419b9db
to
841b74a
Compare
Error while checking build/O2/fullCI_slc9 for 841b74a at 2025-02-18 19:31:
Full log here. |
Error while checking build/O2/fullCI for 841b74a at 2025-02-18 21:48:
Full log here. |
…g its metadata to store executable
Adding processors to the workflow if they have the same name as an already added processor but come from a different executable. This will trigger a runtime error in the
MATERIALISE_WORKFLOW
state inAliceO2/Framework/Core/src/WorkflowHelpers.cxx
Line 935 in 28d9c76