Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
4188722a
Commit
4188722a
authored
Nov 07, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5/test/benchmarks: record number of deadlocks.
parent
16901c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
software/erp5/test/test/benchmarks.py
software/erp5/test/test/benchmarks.py
+12
-0
No files found.
software/erp5/test/test/benchmarks.py
View file @
4188722a
...
@@ -179,6 +179,17 @@ class TestOrderBuildPackingListSimulation(
...
@@ -179,6 +179,17 @@ class TestOrderBuildPackingListSimulation(
zeo_root_stats
=
zeo_stats
.
pop
(
'root'
)
zeo_root_stats
=
zeo_stats
.
pop
(
'root'
)
assert
not
zeo_stats
assert
not
zeo_stats
# Deadlocks
deadlock_total_count
=
0
grep
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'zope-activities'
))
/
'bin'
/
'grep'
log_directory
=
pathlib
.
Path
(
self
.
getComputerPartitionPath
(
'zope-activities'
))
/
'var'
/
'log'
for
path
in
log_directory
.
glob
(
'zope-*-event.log'
):
deadlock_total_count
+=
int
(
subprocess
.
run
(
(
grep
,
'-ac'
,
'Deadlock found when trying to get lock; try restarting transaction'
,
path
),
capture_output
=
True
,
text
=
True
).
stdout
)
self
.
logger
.
info
(
self
.
logger
.
info
(
"Measurements for %s (after %s): "
"Measurements for %s (after %s): "
"elapsed=%s zope_total_rss=%s / %s root_fs_size=%s"
,
"elapsed=%s zope_total_rss=%s / %s root_fs_size=%s"
,
...
@@ -198,6 +209,7 @@ class TestOrderBuildPackingListSimulation(
...
@@ -198,6 +209,7 @@ class TestOrderBuildPackingListSimulation(
'zope_count'
:
zope_count
,
'zope_count'
:
zope_count
,
'root_fs_size'
:
root_fs_size
,
'root_fs_size'
:
root_fs_size
,
'zeo_stats'
:
zeo_root_stats
,
'zeo_stats'
:
zeo_root_stats
,
'deadlock_total_count'
:
deadlock_total_count
,
'now'
:
str
(
now
),
'now'
:
str
(
now
),
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment