Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
87492a24
Commit
87492a24
authored
Apr 15, 2019
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task distribution: allow to affect test suites up to 10 test nodes
parent
f0270cb6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
...eItem/portal_components/test.erp5.testTaskDistribution.py
+5
-5
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
+9
-9
No files found.
bt5/erp5_test_result/TestTemplateItem/portal_components/test.erp5.testTaskDistribution.py
View file @
87492a24
...
...
@@ -769,7 +769,7 @@ class TestTaskDistribution(ERP5TypeTestCase):
# Now let's create a test suite needing between 1 to 2 test nodes
# Make sure additional work is added without moving other test suites
self
.
_createTestSuite
(
reference_correction
=+
3
,
priority
=
4
,
title
=
'four'
)[
0
].
getRelativeUrl
()
priority
=
2
,
title
=
'four'
)[
0
].
getRelativeUrl
()
check
([
test_node_zero
,
[
"three"
,
"four"
]],
[
test_node_one
,
[
"two"
,
"four"
]],
[
test_node_two
,
[
"one"
]])
...
...
@@ -782,23 +782,23 @@ class TestTaskDistribution(ERP5TypeTestCase):
[
test_node_two
,
[
"one"
,
"five"
]])
# Now let's create another test suite needing between 2 to 3 test nodes
# and increase priority of one suite to make all test nodes almost satured
test_suite_five
.
setIntIndex
(
7
)
test_suite_five
.
setIntIndex
(
3
)
self
.
_createTestSuite
(
reference_correction
=+
5
,
priority
=
7
,
title
=
'six'
)
priority
=
3
,
title
=
'six'
)
check
([
test_node_zero
,
[
"three"
,
"four"
,
"five"
,
"six"
]],
[
test_node_one
,
[
"two"
,
"four"
,
"five"
,
"six"
]],
[
test_node_two
,
[
"one"
,
"five"
,
"six"
]])
# Then, check what happens if all nodes are more than saturated
# with a test suite needing between 3 to 5 test nodes
self
.
_createTestSuite
(
reference_correction
=+
6
,
priority
=
9
,
title
=
'seven'
)
priority
=
5
,
title
=
'seven'
)
check
([
test_node_zero
,
[
"three"
,
"four"
,
"five"
,
"six"
]],
[
test_node_one
,
[
"two"
,
"four"
,
"five"
,
"six"
]],
[
test_node_two
,
[
"one"
,
"seven"
,
"five"
,
"six"
]])
# No place any more, adding more test suite has no consequence
# we need 5*2 + 3*2 + 2*1 + 1*3 => 21 slots
self
.
_createTestSuite
(
reference_correction
=+
7
,
priority
=
9
,
title
=
'height'
)
priority
=
5
,
title
=
'height'
)
check
([
test_node_zero
,
[
"three"
,
"four"
,
"five"
,
"six"
]],
[
test_node_one
,
[
"two"
,
"four"
,
"five"
,
"six"
]],
[
test_node_two
,
[
"one"
,
"seven"
,
"five"
,
"six"
]])
...
...
product/ERP5/Document/ERP5ProjectUnitTestDistributor.py
View file @
87492a24
...
...
@@ -44,14 +44,14 @@ TEST_SUITE_MAX = 4
PRIORITY_MAPPING
=
{
# int_index: (min cores, max cores)
1
:
(
3
,
3
),
2
:
(
3
,
3
),
3
:
(
3
,
6
),
4
:
(
3
,
6
),
5
:
(
3
,
6
),
6
:
(
6
,
9
),
7
:
(
6
,
9
),
8
:
(
6
,
9
),
9
:
(
9
,
15
),
2
:
(
3
,
6
),
3
:
(
6
,
9
),
4
:
(
6
,
12
),
5
:
(
9
,
15
),
6
:
(
9
,
18
),
7
:
(
12
,
18
),
8
:
(
15
,
24
),
9
:
(
18
,
30
),
}
class
ERP5ProjectUnitTestDistributor
(
XMLObject
):
...
...
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