diff --git a/backend/alembic/versions/remove_workspace_analysis_tables.py b/backend/alembic/versions/remove_workspace_analysis_tables.py index 113df78..ca7a5bc 100644 --- a/backend/alembic/versions/remove_workspace_analysis_tables.py +++ b/backend/alembic/versions/remove_workspace_analysis_tables.py @@ -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 @@ -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 diff --git a/backend/scripts/run_analysis.py b/backend/scripts/run_analysis.py index 5a7c176..86090e4 100644 --- a/backend/scripts/run_analysis.py +++ b/backend/scripts/run_analysis.py @@ -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 diff --git a/integration-tests/docker-compose.test.yml b/integration-tests/docker-compose.test.yml index 9b2a931..ff6d070 100644 --- a/integration-tests/docker-compose.test.yml +++ b/integration-tests/docker-compose.test.yml @@ -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: @@ -80,10 +81,11 @@ services: 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: @@ -97,10 +99,11 @@ services: 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: