Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ewoksppf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
workflow
ewoks
ewoksppf
Merge requests
!101
Draft: Add test of execution of workflow with self-triggering task
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Add test of execution of workflow with self-triggering task
self-trigger-test
into
main
Overview
1
Commits
1
Pipelines
3
Changes
1
Open
Loic Huder
requested to merge
self-trigger-test
into
main
6 months ago
Overview
1
Commits
1
Pipelines
3
Changes
1
Expand
For
#16
Needs
ewokscore!236 (merged)
0
0
Merge request reports
Compare
version 2
version 2
cef244e4
6 months ago
version 1
348770d6
6 months ago
main (HEAD)
and
latest version
latest version
f31f5b4b
1 commit,
6 months ago
version 2
cef244e4
2 commits,
6 months ago
version 1
348770d6
1 commit,
6 months ago
Show latest version
1 file
+
5
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/ewoksppf/tests/test_examples.py
+
5
−
7
Options
@@ -9,19 +9,17 @@ from ewokscore.tests.utils.results import assert_execute_graph_default_result
@pytest.mark.parametrize
(
"
graph_name
"
,
graph_names
())
@pytest.mark.parametrize
(
"
scheme
"
,
(
None
,
"
json
"
))
def
test_execute_graph
(
graph_name
,
scheme
,
ppf_log_config
,
tmpdir
):
if
graph_name
==
"
self_trigger
"
:
pytest
.
skip
(
"
Self-triggering workflow execution is inconsistent: https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/-/issues/16
"
)
graph
,
expected
=
get_graph
(
graph_name
)
if
scheme
:
varinfo
=
{
"
root_uri
"
:
str
(
tmpdir
),
"
scheme
"
:
scheme
}
else
:
varinfo
=
None
# Temporary fix until https://gitlab.esrf.fr/workflow/ewoks/ewokscore/-/merge_requests/237 is release
if
graph_name
==
"
self_trigger
"
:
graph
[
"
nodes
"
][
1
][
"
default_inputs
"
]
=
[{
"
name
"
:
"
a
"
,
"
value
"
:
1
}]
expected
=
{
"
task3
"
:
{
"
too_small
"
:
False
,
"
result
"
:
11
},
}
ewoksgraph
=
load_graph
(
graph
)
result
=
execute_graph
(
graph
,
varinfo
=
varinfo
,
timeout
=
10
)
assert_execute_graph_default_result
(
ewoksgraph
,
result
,
expected
,
varinfo
)
Loading