Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Ivan Tyagov
wendelin
Commits
fd8126b5
Commit
fd8126b5
authored
Aug 03, 2015
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test parallel execution
parent
bc21eda3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+26
-0
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
...TemplateItem/portal_components/test.erp5.testWendelin.xml
+3
-0
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
fd8126b5
...
@@ -240,7 +240,33 @@ context.activate().DataStream_readChunkListAndTransform( \
...
@@ -240,7 +240,33 @@ context.activate().DataStream_readChunkListAndTransform( \
# final reduce job to a number
# final reduce job to a number
sum
(
result_list
)
sum
(
result_list
)
def
test_01_02_ParallelTransformation
(
self
):
"""
test parallel execution.
Note: determining row length is important in this case
"""
portal
=
self
.
portal
reference
=
getRandomString
()
row
=
','
.
join
([
'%s'
%
x
for
x
in
range
(
1000
)])
number_string_list
=
[
row
]
*
20
real_data
=
'
\
n
'
.
join
(
number_string_list
)
portal
.
log
(
real_data
)
ingestion_policy
,
data_supply
,
data_stream
,
data_array
=
self
.
stepSetupIngestion
(
reference
)
data_stream
.
appendData
(
real_data
)
self
.
tic
()
data_stream
.
DataStream_transform
(
\
chunk_length
=
len
(
row
),
\
transform_script_id
=
'DataStream_copyCSVToDataArray'
,
data_array_reference
=
reference
,
parallelize
=
1
)
self
.
tic
()
def
test_02_Examples
(
self
):
def
test_02_Examples
(
self
):
"""
"""
Test we can use python scientific libraries by using directly created
Test we can use python scientific libraries by using directly created
...
...
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
View file @
fd8126b5
...
@@ -54,6 +54,9 @@
...
@@ -54,6 +54,9 @@
<string>
W:176, 22: Unused variable \'data_supply\' (unused-variable)
</string>
<string>
W:176, 22: Unused variable \'data_supply\' (unused-variable)
</string>
<string>
W:227, 8: Unused variable \'i\' (unused-variable)
</string>
<string>
W:227, 8: Unused variable \'i\' (unused-variable)
</string>
<string>
W:176, 4: Unused variable \'ingestion_policy\' (unused-variable)
</string>
<string>
W:176, 4: Unused variable \'ingestion_policy\' (unused-variable)
</string>
<string>
W:257, 4: Unused variable \'ingestion_policy\' (unused-variable)
</string>
<string>
W:257, 22: Unused variable \'data_supply\' (unused-variable)
</string>
<string>
W:257, 48: Unused variable \'data_array\' (unused-variable)
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
...
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