Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
TFS
controller
Commits
fb89be3b
Commit
fb89be3b
authored
1 year ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
GitLab CI/CD pipeline - ECOC'22 & Service component:
- Testing failure condition
parent
12a16398
No related branches found
No related tags found
2 merge requests
!235
Release TeraFlowSDN 3.0
,
!216
Resolve "Automate end-to-end tests and integrate them in CI/CD pipeline"
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/service/service/ServiceServiceServicerImpl.py
+11
-11
11 additions, 11 deletions
src/service/service/ServiceServiceServicerImpl.py
src/tests/ecoc22/.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
src/tests/ecoc22/.gitlab-ci.yml
with
12 additions
and
12 deletions
src/service/service/ServiceServiceServicerImpl.py
+
11
−
11
View file @
fb89be3b
...
...
@@ -312,19 +312,19 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
pathcomp_request
=
PathCompRequest
()
pathcomp_request
.
services
.
append
(
service_with_uuids
)
# pylint: disable=no-member
if
num_disjoint_paths
is
None
or
num_disjoint_paths
in
{
0
,
1
}
:
pathcomp_request
.
shortest_path
.
Clear
()
# pylint: disable=no-member
else
:
pathcomp_request
.
k_disjoint_path
.
num_disjoint
=
num_disjoint_paths
# pylint: disable=no-member
if
num_disjoint_paths
is
None
or
num_disjoint_paths
in
{
0
,
1
}
:
pathcomp_request
.
shortest_path
.
Clear
()
# pylint: disable=no-member
else
:
pathcomp_request
.
k_disjoint_path
.
num_disjoint
=
num_disjoint_paths
# pylint: disable=no-member
pathcomp
=
PathCompClient
()
pathcomp_reply
=
pathcomp
.
Compute
(
pathcomp_request
)
pathcomp
.
close
()
pathcomp
=
PathCompClient
()
pathcomp_reply
=
pathcomp
.
Compute
(
pathcomp_request
)
pathcomp
.
close
()
# Feed TaskScheduler with this path computation reply. TaskScheduler identifies inter-dependencies among
# the services and connections retrieved and produces a schedule of tasks (an ordered list of tasks to be
# executed) to implement the requested create/update operation.
tasks_scheduler
.
compose_from_pathcompreply
(
pathcomp_reply
,
is_delete
=
False
)
# Feed TaskScheduler with this path computation reply. TaskScheduler identifies inter-dependencies among
# the services and connections retrieved and produces a schedule of tasks (an ordered list of tasks to be
# executed) to implement the requested create/update operation.
tasks_scheduler
.
compose_from_pathcompreply
(
pathcomp_reply
,
is_delete
=
False
)
tasks_scheduler
.
execute_all
()
return
service_with_uuids
.
service_id
...
...
This diff is collapsed.
Click to expand it.
src/tests/ecoc22/.gitlab-ci.yml
+
1
−
1
View file @
fb89be3b
...
...
@@ -54,6 +54,7 @@ end2end_test ecoc22:
-
kubectl get pods --all-namespaces
# Configure TeraFlowSDN deployment
# Uncomment if DEBUG log level is needed for the components
#- yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/contextservice.yaml
#- yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/deviceservice.yaml
#- yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="frontend").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/pathcompservice.yaml
...
...
@@ -85,7 +86,6 @@ end2end_test ecoc22:
--volume "$PWD/tfs_runtime_env_vars.sh:/var/teraflow/tfs_runtime_env_vars.sh"
--volume "$PWD/src/tests/${TEST_NAME}:/opt/results"
$CI_REGISTRY_IMAGE/${TEST_NAME}:latest
-
docker logs ${TEST_NAME}
-
kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server
-
kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/deviceservice -c server
-
kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/pathcompservice -c frontend
...
...
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