Skip to content

Commit b89a916

Browse files
author
Max Azatian
committed
v2.0:
- Added EDD instead of polling; - Added Kafka with msg topics; - Added gunicorn for better processing capabilities; also Redis for saving data temporarily; - Updated README, added separate .md file about architecture - Updated test suite;
1 parent 9897abc commit b89a916

File tree

481 files changed

+59860
-39385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

481 files changed

+59860
-39385
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.9'
19+
python-version: '3.12'
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.9'
19+
python-version: '3.12'
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.9'
19+
python-version: '3.12'
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip

.github/workflows/tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
yq eval '.services.backend.environment += ["TESTING=true"]' -i docker-compose.ci.yaml
4141
yq eval '.services.backend.environment += ["MONGO_ROOT_USER=testroot"]' -i docker-compose.ci.yaml
4242
yq eval '.services.backend.environment += ["MONGO_ROOT_PASSWORD=testpassword"]' -i docker-compose.ci.yaml
43+
# Disable OpenTelemetry SDK during tests to avoid exporter retries
44+
yq eval '.services.backend.environment += ["OTEL_SDK_DISABLED=true"]' -i docker-compose.ci.yaml
4345
4446
# For the mongo service
4547
yq eval '.services.mongo.environment += ["MONGO_ROOT_USER=testroot"]' -i docker-compose.ci.yaml
@@ -81,15 +83,15 @@ jobs:
8183
8284
- name: Wait for backend to be healthy
8385
run: |
84-
timeout 300 bash -c 'until curl -k https://localhost:443/api/v1/health -o /dev/null; do \
86+
timeout 300 bash -c 'until curl -k https://127.0.0.1:443/api/v1/health -o /dev/null; do \
8587
echo "Retrying backend health check..."; \
8688
sleep 5; \
8789
done'
8890
echo "Backend is healthy!"
8991
9092
- name: Wait for frontend to be ready
9193
run: |
92-
timeout 120 bash -c 'until curl -k https://localhost:5001 -o /dev/null; do \
94+
timeout 120 bash -c 'until curl -k https://127.0.0.1:5001 -o /dev/null; do \
9395
echo "Retrying frontend check..."; \
9496
sleep 5; \
9597
done'
@@ -106,7 +108,7 @@ jobs:
106108
- name: Set up Python for Tests
107109
uses: actions/setup-python@v4
108110
with:
109-
python-version: '3.9'
111+
python-version: '3.12'
110112

111113
- name: Install Python test dependencies
112114
run: |
@@ -117,8 +119,11 @@ jobs:
117119
pip3 install -r requirements-dev.txt
118120
119121
- name: Run backend tests with coverage
122+
env:
123+
BACKEND_BASE_URL: https://127.0.0.1:443
120124
run: |
121125
cd backend
126+
echo "Using BACKEND_BASE_URL=$BACKEND_BASE_URL"
122127
python -m pytest tests/integration tests/unit -v --cov=app --cov-report=xml --cov-report=term
123128
124129
- name: Upload coverage to Codecov
@@ -149,4 +154,4 @@ jobs:
149154
uses: actions/upload-artifact@v4
150155
with:
151156
name: integration-test-logs
152-
path: logs/
157+
path: logs/

0 commit comments

Comments
 (0)