Skip to content

Commit

Permalink
change boot partition to main
Browse files Browse the repository at this point in the history
  • Loading branch information
cseptimo committed Jun 6, 2024
1 parent 0be776f commit 3acfbee
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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 <owner_folder> or cd <owner_folder>
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 <env_folder_name>
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


10 changes: 5 additions & 5 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ def board_api(board_name, param=None):
@server_bp.route("api/sc/<param>")
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 = (
filters["jenkins_project"][0]
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,
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3acfbee

Please sign in to comment.