This repository contains the proof of concept implementation of the case study presented in the workshop paper for DevOps@MODELS21.
-
Install JDK11. One possible repository to download a JDK11 distribution from is https://jdk.java.net/archive/.
-
Download the Eclipse from https://drive.google.com/file/d/1n3WR15GD6lj2iz-gCkqQbOkWLy0phFo7/view?usp=sharing (Windows only).
-
Unzip the downloaded archive and run
eclipse.exe
. -
Set the character encoding to
UTF-8
: Window menu -> Preferences -> General -> Workspace -> Text file encoding: Other, select UTF-8 from the dropdown menu. -
Clone the
main
branch of this repository: https://github.com/lowcomote/keptn-consistency-maintenance.git -
Import every project except
examples
into the Eclipse. EnableSearch for nested projects
in the Import Wizard. -
Enable automatic build and trigger a rebuild:
- Project menu -> Build Automatically.
- Project menu -> Clean -> Clean all projects.
-
Right click on project
eu.lowcomote.kept.fixes
-> Run as -> Eclipse application. SelectLaunch Runtime Eclipse
. -
In the runtime eclipse, import the
examples
project from themain
branch of the repository. -
Open
example.sli
in theSli Editor
: right click on the file -> Open With ->Sli Editor
. If the Editor is not visible then browse it inOther...
. -
In the opened editor you will see two
SLI indicators
:response_time_p95
andresponse_time_p90
. -
Open the
example.slo
in theSlo Editor
: right click on the file -> Open With ->Slo Editor
. If the Editor is not visible then browse it inOther...
. -
In the opened editor you will see two
objectives
that refer to the aforementioned SLI indicators in theirsli
fields. -
Open the
example.sli2slo
with theSample Reflective Ecore Model Editor
: right click on the file -> Open With ->Sample Reflective Ecore Model Editor
. If the Editor is not visible then browse it inOther...
. -
In the opened editor, navigate to
platform:/resource/examples/example.sli2slo
-> Sli2 Slo Links -> Sli2 Slo Link. -
Click on
Sli2 Slo Link
. -
Enable VIATRA validation: right click in the editor -> VIATRA Validation -> Initialize VIATRA Validators on Editor.
-
Enable automatic model repairs: right click in the editor -> Enable model repairs.
-
Trigger concistency check:
- In the editor, navigate to
platform:/resource/examples/example.sli
-> Sli Root -> Service Level Indicators -> Service Level Indicators Indicators. - Click on Service Level Indicators Indicators Pattern Properties0 response_time_p95.
- Open Properties view: Window menu -> Show View -> Properties.
- In the Properties view, change
response_time_p95
toresponse_time_p94
.
- In the editor, navigate to
-
As soon as the consistency check is completed, it will ask for confirmation before applying an automatic model repair action. Click on yes to accept the proposed model repair action.
-
Save the opened file in the editor.
-
Open the
example.sli
and theexample.slo
files with their respective editors and find the update SLI indicator name (response_time_p94
) there.
In this way, the consistency of the SLI indicator names were checked and fixed between the SLI and SLO models of Keptn.
- Alessandro Colantoni
- Benedek Horváth
This research is supported by the Lowcomote Training Network, which has received funding from the European Union’s Horizon 2020 Research and Innovation Programme under the Marie Skłodowska-Curie grant agreement n° 813884.