-
Notifications
You must be signed in to change notification settings - Fork 21
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
Use logs as part of the validation #1192
Comments
This was discussed in the sw dev meeting today, and we concluded that even storing the logs in the repo just as we do with the "gold" histograms, and running a simple diff as part of the automated validation suite, would suffice (and perhaps be helpful). @tomeichlersmith seemed to have a clear idea of how to set this up -- please Tom, if you prefer for someone else to do it just shout. |
Unfortunately, a textual diff is going to be a bit more complicated since there are some timestamps printed to the terminal.
3c3
< [2023-08-23 15:25:45.065679] [0x00007fbbeb804bc0] [info] ElectronCounter is using parameters:
---
> [2023-08-23 15:26:17.252824] [0x00007f1a83118bc0] [info] ElectronCounter is using parameters:
15,18c15,18
< [2023-08-23 15:25:45.087729] [0x00007fbbeb804bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad1Clusters, pad = pad1, pass =
< [2023-08-23 15:25:45.087737] [0x00007fbbeb804bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad2Clusters, pad = pad2, pass =
< [2023-08-23 15:25:45.087743] [0x00007fbbeb804bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad3Clusters, pad = pad3, pass =
< [2023-08-23 15:25:45.087764] [0x00007fbbeb804bc0] [info] In TrigScintTrackDQM::configure, got parameters TriggerPadTracks and
---
> [2023-08-23 15:26:17.260153] [0x00007f1a83118bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad1Clusters, pad = pad1, pass =
> [2023-08-23 15:26:17.260160] [0x00007f1a83118bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad2Clusters, pad = pad2, pass =
> [2023-08-23 15:26:17.260166] [0x00007f1a83118bc0] [info] In TrigScintClusterDQM::configure, got parameters TriggerPad3Clusters, pad = pad3, pass =
> [2023-08-23 15:26:17.260175] [0x00007f1a83118bc0] [info] In TrigScintTrackDQM::configure, got parameters TriggerPadTracks and Procedure
|
thanks for looking into the options, tom. since I wrote the configure printouts I can say that I'm not invested in having them print out from configure() but I do want them printed somewhere until there is a bullet proof method of making sure that we never end up passing a setting using a non-existing parameter name in python that gets ignored by ldmx-sw down the line. about the character count downside, if storing the "gold" logs per se isn't an issue (no space constraints), we could in principle still keep them, run a character count that accepts differences within some tolerance (if time stamps etc don't have fixed lengths), and both sound an alarm and keep the new log as an artifact (along with failed histograms?) in case there is an actual difference. in case there is agreement then we just happily state that and move on. would that work? |
Is your feature request related to a problem? Please describe.
Connected to #1191, the validation config shows a lot of warnings, which triggered the discussion on what's the best way to notice these kind of changes
Describe the solution you'd like
The logs of the validation could be compared to the output logs before the PR, if the character count is increased significantly that could be a sign of new warning msgs.
The text was updated successfully, but these errors were encountered: