Bug #2473
No error when services present in two places in .fcl
100%
Description
The following fhicl fragment without error.
services : {
RandomNumberGenerator : { }
user : {
RandomNumberGenerator : { }
}
}
I would like this to be an error that stops the program. The present example is not a big deal but this could be a problem if the two instances were configured differently; in such a case it could be very perplexing if a user modifies the parameter set and nothing changes ( because art decided to use the other, unchanged, parameer set).
Associated revisions
History
#1 Updated by Marc Paterno over 8 years ago
- Status changed from New to Accepted
We need to determine the current behavior of art when confronted by this configuration.
Making this configuration be illegal would mean that it is no longer possible for an experiment to define a service with the same name as one supplied with art. This makes the 'user' block in the configuration file be less useful; it becomes only documentation to the experimenter that a specific service has been supplied by the experiment, rather than by art.
#2 Updated by Christopher Green over 7 years ago
- Status changed from Accepted to Feedback
- Target version set to 1.09.00
- Scope set to Internal
- Experiment Mu2e added
- SSI Package art added
It is already the case that the flexibility supposed to be enabled by having two different areas for service, "ours" vs "yours", is already not available because we cannot resolve two services of the same name but defined in different directories in the same way as we can for modules (the service library name is taken from the parameter name here, and parameter names cannot contain slashes).
We propose to eliminate the user
clause of services
by combining the two spaces. We will continue to honor user
for a while, but it will be an error to specify the same service in both places (as of right now, I'm not sure which configuration would, "win."
#3 Updated by Christopher Green almost 7 years ago
- Target version changed from 1.09.00 to 521
#4 Updated by Christopher Green almost 7 years ago
- Target version changed from 521 to 1.10.00
#5 Updated by Christopher Green over 6 years ago
- Target version changed from 1.10.00 to 1.14.00
#6 Updated by Christopher Green over 6 years ago
- Target version changed from 1.14.00 to 1.13.00
#7 Updated by Christopher Green almost 6 years ago
- Category set to Infrastructure
- Status changed from Feedback to Resolved
- Assignee set to Christopher Green
- % Done changed from 0 to 100
Implemented with art:fd9f10577f4b0e02aafbb061a2c7e9d2a1907482, 2014/12/15.
#8 Updated by Christopher Green almost 6 years ago
- Status changed from Resolved to Closed
Implement issue #2473.