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 536da2b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/poetry-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,30 @@ on: [ pull_request ]

jobs:
build:
name: Check poetry lockfile
name: Check Poetry Lockfile
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: Gr1N/setup-poetry@v8
- name: verify poetry instalation
run: poetry --version
working-directory: ./backend
- name: verify poetry lockfile
run: poetry check --lock
working-directory: ./backend
# Step 1: Check out the repository
- uses: actions/checkout@v3

# Step 2: Set up Python
- uses: actions/setup-python@v4
with:
python-version: "3.11"

# Step 3: Install Poetry
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "::add-path::${HOME}/.local/bin"
# Step 4: Verify Poetry installation
- name: Verify Poetry installation
run: poetry --version
working-directory: ./backend

# Step 5: Verify Poetry lockfile
- name: Verify Poetry lockfile
run: poetry lock --check
working-directory: ./backend
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 536da2b

Please sign in to comment.