Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
24cd5c8c
Commit
24cd5c8c
authored
4 years ago
by
Rafal Bielski
Browse files
Options
Downloads
Patches
Plain Diff
MessageCountStep: skip tail files and print name of the analysed file
parent
6b20368e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TrigValidation/TrigValTools/python/TrigValSteering/CheckSteps.py
+4
-4
4 additions, 4 deletions
...idation/TrigValTools/python/TrigValSteering/CheckSteps.py
with
4 additions
and
4 deletions
Trigger/TrigValidation/TrigValTools/python/TrigValSteering/CheckSteps.py
+
4
−
4
View file @
24cd5c8c
...
...
@@ -624,7 +624,7 @@ class MessageCountStep(Step):
def
__init__
(
self
,
name
=
'
MessageCount
'
):
super
(
MessageCountStep
,
self
).
__init__
(
name
)
self
.
executable
=
'
messageCounter.py
'
self
.
log_regex
=
r
'
(athena\..*log$|athenaHLT:.*\.out$|^log\..*to.*)
'
self
.
log_regex
=
r
'
(athena\.
(?!.*tail)
.*log$|athenaHLT:.*\.out$|^log\..*to.*)
'
self
.
skip_logs
=
[]
self
.
start_pattern
=
r
'
(HltEventLoopMgr|AthenaHiveEventLoopMgr).*INFO Starting loop on events
'
self
.
end_pattern
=
r
'
(HltEventLoopMgr.*INFO All events processed|AthenaHiveEventLoopMgr.*INFO.*Loop Finished)
'
...
...
@@ -679,10 +679,10 @@ class MessageCountStep(Step):
if
summary
[
level
]
>
threshold
:
self
.
result
+=
1
self
.
log
.
info
(
'
%s Number of %s messages %s is higher than threshold %s
'
,
self
.
name
,
level
,
summary
[
level
],
threshold
)
'
%s Number of %s messages %s
in %s
is higher than threshold %s
'
,
self
.
name
,
level
,
summary
[
level
],
log_file
,
threshold
)
if
self
.
print_on_fail
:
self
.
log
.
info
(
'
%s Printing all %s messages
'
,
self
.
name
,
level
)
self
.
log
.
info
(
'
%s Printing all %s messages
from %s
'
,
self
.
name
,
level
,
log_file
)
with
open
(
all_json_file
)
as
af
:
all_msg
=
json
.
load
(
af
)
for
msg
in
all_msg
[
level
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment