Fix: PyJobTransform misses logfile errors containing substep names [ATLASJT-370]
trfValidation.py, trfUtils.py, trfExe.py: Provide an option in trfUtils such that callers can request substep names to be removed from log lines, before parsing. The presence of substep name 'in some log files', caused log scanner to skip those lines since the log scaner simply looks for standard log pattern SERVICE-LEVEL-MESSAGE. With this update, scan behavior becomes independent of presence (or absence) of substep names in log files. test_trfValidation.py: Add unit tests for log scan with Serial and MP use cases. Former-commit-id: 9cf03f23a9801288a695764ab7e407d2bbf51319
Showing
- Tools/PyJobTransforms/python/trfExe.py 3 additions, 2 deletionsTools/PyJobTransforms/python/trfExe.py
- Tools/PyJobTransforms/python/trfUtils.py 7 additions, 2 deletionsTools/PyJobTransforms/python/trfUtils.py
- Tools/PyJobTransforms/python/trfValidation.py 5 additions, 3 deletionsTools/PyJobTransforms/python/trfValidation.py
- Tools/PyJobTransforms/test/test_trfValidation.py 41 additions, 2 deletionsTools/PyJobTransforms/test/test_trfValidation.py
Loading
Please register or sign in to comment