Skip to content

Commit

Permalink
Bug fix in ROSA HCP filter
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu Challa <[email protected]>
  • Loading branch information
Vishnu Challa committed Jan 8, 2025
1 parent a1e8c44 commit 9048034
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/poetry-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: Gr1N/setup-poetry@v8
- uses: Gr1N/setup-poetry@v9
- name: verify poetry instalation
run: poetry --version
working-directory: ./backend
Expand Down
4 changes: 3 additions & 1 deletion backend/app/api/v1/commons/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def isRehearse(job):


def clasifyAWSJobs(job):
if job["upstreamJob"].__contains__("rosa-hcp"):
if ("rosa-hcp" in job["clusterType"]) or ("rosa" in job["clusterType"]
and job["masterNodesCount"] == 0
and job["infraNodesCount"] == 0):
return "AWS ROSA-HCP"
if job["clusterType"].__contains__("rosa"):
return "AWS ROSA"
Expand Down
1 change: 1 addition & 0 deletions backend/backend.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ EXPOSE 8000
RUN dnf install -y pip gcc python3-devel gcc-c++

RUN pip install --user poetry && \
poetry self add poetry-plugin-export && \
poetry export -f requirements.txt -o requirements.txt && \
pip install -U typing-extensions && \
pip install --user dash && \
Expand Down

0 comments on commit 9048034

Please sign in to comment.