Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/alembic/versions/remove_workspace_analysis_tables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""remove_workspace_analysis_tables

Revision ID: remove_workspace_analysis
Revision ID: remove_workspace_analysis_tables
Revises: ea5ebf7c670a
Create Date: 2025-04-24 12:00:00.000000

Expand All @@ -12,7 +12,7 @@
from alembic import op

# revision identifiers, used by Alembic.
revision = "remove_workspace_analysis"
revision = "remove_workspace_analysis_tables"
down_revision = "ea5ebf7c670a" # Make sure this matches your latest migration
branch_labels = None
depends_on = None
Expand Down
2 changes: 1 addition & 1 deletion backend/scripts/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
os.environ["OPENROUTER_API_KEY"] = "debug_openrouter_key"

from app.models.integration import Integration
from app.models.reports.cross_resource_report import CrossResourceReport, ResourceAnalysis
from app.models.reports import AnalysisType
from app.models.reports.cross_resource_report import CrossResourceReport, ResourceAnalysis
from app.models.slack import SlackChannel, SlackMessage, SlackUser, SlackWorkspace
from app.services.analysis.slack_channel import SlackChannelAnalysisService
from app.services.llm.openrouter import OpenRouterService
Expand Down
11 changes: 8 additions & 3 deletions integration-tests/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ services:
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\" || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

# Frontend service for testing
test-frontend:
Expand Down Expand Up @@ -77,13 +78,15 @@ services:
- "3001:3000"
volumes:
- ./mocks/slack-api:/app
- /app/node_modules
environment:
- PORT=3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1))\" || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s

# Mock OpenRouter API service
mock-openrouter-api:
Expand All @@ -94,13 +97,15 @@ services:
- "3002:3000"
volumes:
- ./mocks/openrouter-api:/app
- /app/node_modules
environment:
- PORT=3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1))\" || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s

# Test runner container
test-runner:
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/mocks/openrouter-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN npm install

COPY . .

# Create data directory if it doesn't exist
RUN mkdir -p /app/data

EXPOSE 3000

CMD ["node", "server.js"]
3 changes: 3 additions & 0 deletions integration-tests/mocks/slack-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN npm install

COPY . .

# Create data directory if it doesn't exist
RUN mkdir -p /app/data

EXPOSE 3000

CMD ["node", "server.js"]