Skip to content

Commit

Permalink
21519 - Work on partner disbursements
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Sep 6, 2024
1 parent 922bdeb commit c3fa976
Show file tree
Hide file tree
Showing 263 changed files with 8,620 additions and 5,082 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @seeker25 @jxio @ochiu @rodrigo-barraza @avni-work @sameer0422
* @seeker25 @jxio @ochiu @rodrigo-barraza
1 change: 1 addition & 0 deletions .github/workflows/bcol-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- release/*
paths:
- "bcol-api/**"
workflow_dispatch:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/bcol-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release/*
paths:
- "bcol-api/**"

Expand Down Expand Up @@ -102,6 +102,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install docker-compose
run: |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Install dependencies
run: |
sudo apt update
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ftp-poller-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release/*
paths:
- "jobs/ftp-poller/**"

Expand Down Expand Up @@ -82,6 +82,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install docker-compose
run: |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Install dependencies
run: |
make setup
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/notebook-report-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- main
- release/*
paths:
- "jobs/notebook-report/**"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pay-admin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release/*
paths:
- "pay-admin/**"
- "pay-api/src/pay_api/models/**"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pay-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release/*
paths:
- "pay-api/**"

Expand Down Expand Up @@ -93,6 +93,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install docker-compose
run: |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Install dependencies
run: |
make setup
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pay-queue-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release/*
paths:
- "pay-queue/**"
- "pay-api/src/pay_api/models/**"
Expand Down Expand Up @@ -93,6 +93,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install docker-compose
run: |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Install dependencies
run: |
make setup
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/payment-jobs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
pull_request:
branches:
- main
- feature-queue-python-upgrade
- release*
- release/*
paths:
- "jobs/payment-jobs/**"
- "pay-api/src/pay_api/models/**"
Expand Down Expand Up @@ -85,6 +84,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install docker-compose
run: |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
- name: Install dependencies
run: |
make setup
Expand Down
25 changes: 24 additions & 1 deletion DEVELOPER_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,27 @@ it will work and process on the pod.
21. Where are the reports generated (report-api)?
Here: https://github.com/bcgov/bcros-common/


22. How do I resolve some of the database performance issues? Take a look at some of the longer running queries if they're stuck:

SELECT pid, usename, query, state,
EXTRACT(EPOCH FROM (now() - query_start)) AS duration
FROM pg_stat_activity
WHERE state != 'idle'
ORDER BY duration DESC;

or

SELECT *
FROM pg_stat_activity
WHERE state = 'active';

Terminate long running queries if required, for long running query operations, if it is a parallel worker you should kill the leader_pid as well or it can just spawn more parallel workers:

SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE pid in (146105,
146355,
146394
);


1 change: 1 addition & 0 deletions bcol-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ COPY --chown=web:web ./README.md /code
# Project initialization:
RUN --mount=type=cache,target="$POETRY_CACHE_DIR" \
echo "$APP_ENV" \
&& poetry config installer.max-workers 1 \
&& poetry version \
# Install deps:
&& poetry run pip install -U pip \
Expand Down
1 change: 1 addition & 0 deletions bcol-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ clean-test: ## clean test files
install: clean
unset HOME ## unset HOME because it's in the DEV .env file, will cause permissions issues
pip install poetry ;\
poetry config installer.max-workers 1
poetry install

#################################################################################
Expand Down
Loading

0 comments on commit c3fa976

Please sign in to comment.