-
Notifications
You must be signed in to change notification settings - Fork 37
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
Replace current configuration validation with a py3 compatible one #5004
Comments
Since code works, I will live with this thing commented out and see what happens. At some point we should try to pass buggy config to the py2/3 compatible client... once we have one. |
we have the final client now. Time to give a look at this.
instead of
and it "simply worked" !! It is very difficult that users do the other thing of typing an
looking in the log file users will find
but it is hard to spot in the log noise. So something may be worth doing here (even if there's no record of a user having ever made such a mistake !). OTOH since the configuration file is executed, most other errors like missing quotes and similar will result in clear errors anyhow. Let's see if I find some other way to break it. |
I tried a more likely error
in place of
but that is clearly reported as
|
I lean to "leave things as they are" |
for the record, the "skipping of configuration validation" was done via this commit |
let's simply add some comments in the code pointing to this discussion and leave it to future developers to look into making the full config. validation work again in case it is felt important. |
CRABClient has a sophisticated "agnostic client" where all possible parameters in
crabConfig.py
are described in https://github.com/dmwm/CRABClient/blob/master/src/python/CRABClient/ClientMapping.py and then checked at run time. This relies on a little known feature oftypes
module which I could not find in python3. I worked around it by simply commenting out the current configuration validation. I propose to stick to that, and do something much simpler where we e.g. useisinstance
and check all config. params one by one. A bit tedious, but clear and safe and a chance to review old things which we may possibly dropThe text was updated successfully, but these errors were encountered: