Skip to content

Narjes-b/radon-defect-prediction-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Receptor documentation

Modern software relies massively on the use of automation at both development and operations levels, and engineering strategy known as DevOps. The software code driving such automations is collectively known as Infrastructure-as-Code (IaC).

While IaC represents an ever increasing widely-adopted practice nowadays,little is known how to best mantain, speedily evolve, and continuously improve the code behing the IaC strategy.

As any other source code artifact, IaC blueprints can be defect-prone!

Receptor represents a step forward towards closing the gap for the implementation of software quality instruments to support DevOps engineers when developing and maintaining infrastructure code. It provides functionality for quantifying the characteristic of a IaC blueprint and predicting its defect proneness. Although it currently supports only Ansible, it is supposed to be soon extended to the OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) ecosystem.

Effective prediction of defect-prone IaC blueprints may enable DevOps to focus on such critical scripts duging Quality Assurance activities, and allocate effort and resources more efficiently!

Ultimately, this enables continuous deloyment and accelerates the expected Return on Investment.

How to use

Clone

git clone https://github.com/radon-h2020/radon-defect-prediction-api.git
cd radon-defect-prediction-api

Install requirements

pip install -r requirements.txt

Create migrations

python manage.py makemigrations apis
python manage.py migrate apis

Export Github and Gitlab access tokens to mine repositories

export GITHUB_ACCESS_TOKEN=*************************
export GITLAB_ACCESS_TOKEN=***************

Run server

python manage.py runserver

Open your browser and go to http:https://127.0.0.1:8000/web/repositories/ to start using the web-app.

Note: a MongoDB must be installed. A db called testing_iac_miner will be created automatically.

A DETAILED DOCUMENTATION WILL BE AVAILABLE SOON

Packages

No packages published

Languages

  • Python 55.7%
  • HTML 40.2%
  • JavaScript 3.4%
  • CSS 0.7%