diff --git a/README.md b/README.md index 084b86b..f570c37 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,37 @@ # constellation -Web UI for testing +Constellation is a landing page to display all of the results of Kuiper Linux testing on hardware. + +Requirements on running: + +cloned constellation +cloned telemetry +virtual environment of constellation + + +--> Constellation setup <-- +(Recommended: Run to vm) +1. Create owner folder or go to your preferred folder in your linux server. + mkrdir or cd +2. Clone Constellation and Telemetry + git clone https://github.com/sdgtt/constellation.git + git clone https://github.com/sdgtt/telemetry.git +3. Create virtual environment, to create type this to your terminal: + python3 -m virtualenv +4. Go to Telemetry cloned folder and install requirements + cd telemetry/ + pip install -r requirements.txt + pip install -r requirements_dev.txt + cd .. +5. Run or activate your virtualenv + source envConstellation/bin/activate + +6. Go to Constellation cloned folder and install requirements + pip install telemetry + pip install -r requirements.txt + pip install -r requirements_dev.txt +7. Once installed, run the in development mode. + export FLASK_ENV=development + export ES=192.168.10.12 + flask run --host=0.0.0.0 --port=5002 + + diff --git a/app/app.py b/app/app.py index c56f70a..99178f2 100644 --- a/app/app.py +++ b/app/app.py @@ -105,8 +105,8 @@ def board_api(board_name, param=None): @server_bp.route("api/sc/") def score_api(param=None): default_jenkins_project = "HW_tests/HW_test_multiconfig" - default_branch = "boot_partition_master" - default_size = 7 + default_branch = "boot_partition_main" + # default_size = 7 default_offset = 0 filters = filter_gen(urlparse(unquote(request.url)).query) jenkins_project = ( @@ -114,14 +114,14 @@ def score_api(param=None): if "jenkins_project" in filters else default_jenkins_project ) - size = filters["size"][0] if "size" in filters else default_size + # size = filters["size"][0] if "size" in filters else default_size offset = filters["offset"][0] if "offset" in filters else default_offset board = filters["board"][0] if "board" in filters else None branch = filters["branch"][0] if "branch" in filters else default_branch deprecated = [] sc = Score( jenkins_project=jenkins_project, - size=int(size), + # size=int(size), branch=branch, board=board, deprecated=deprecated, @@ -135,7 +135,7 @@ def allboards(): # retrieve boards from elastic server # filter by jenkins_project_name jenkins_project_name = "HW_tests/HW_test_multiconfig" - source_adjacency_matrix = "boot_partition_master" + source_adjacency_matrix = "boot_partition_main" deprecated = [] boards_ref = b.Boards( jenkins_project_name, source_adjacency_matrix, deprecated diff --git a/app/models/score.py b/app/models/score.py index 38da49a..da5879b 100644 --- a/app/models/score.py +++ b/app/models/score.py @@ -27,7 +27,7 @@ def __init__( self, jenkins_project="HW_tests/HW_test_multiconfig", size=2, - branch="boot_partition_master", + branch="boot_partition_main", board=None, deprecated=[], offset=0,