Skip to content

Commit aab04a6

Browse files
Devin/1746532369 fix migration revision (#299)
* Fix migration revision ID mismatch for remove_workspace_analysis_tables Co-Authored-By: Hal Seki <[email protected]> * Fix isort issues in run_analysis.py Co-Authored-By: Hal Seki <[email protected]> * Fix health check endpoint path in docker-compose.test.yml Co-Authored-By: Hal Seki <[email protected]> * Update health check to use 127.0.0.1 instead of localhost Co-Authored-By: Hal Seki <[email protected]> * Update health check to use CMD-SHELL with explicit error handling Co-Authored-By: Hal Seki <[email protected]> * Update health check to use service name instead of localhost Co-Authored-By: Hal Seki <[email protected]> * Add start_period to health check to allow more time for application startup Co-Authored-By: Hal Seki <[email protected]> * Change health check to use wget instead of curl Co-Authored-By: Hal Seki <[email protected]> * Change health check to use Python urllib instead of wget or curl Co-Authored-By: Hal Seki <[email protected]> * Update mock API health checks to use Python urllib instead of curl Co-Authored-By: Hal Seki <[email protected]> * Update mock API health checks to use Node.js instead of Python Co-Authored-By: Hal Seki <[email protected]> * Add data directory creation to mock API Dockerfiles Co-Authored-By: Hal Seki <[email protected]> * Preserve node_modules in mock API containers by adding volume mount exclusions Co-Authored-By: Hal Seki <[email protected]> * Fix npm dependency installation in mock API containers Co-Authored-By: Hal Seki <[email protected]> * Add execute permission to wait-for-services.sh script Co-Authored-By: Hal Seki <[email protected]> * Replace curl with wget in wait-for-services.sh script Co-Authored-By: Hal Seki <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 74454df commit aab04a6

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

integration-tests/mocks/openrouter-api/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ FROM node:18-alpine
22

33
WORKDIR /app
44

5-
COPY package.json ./
5+
# Copy package files and install dependencies
6+
COPY package*.json ./
67
RUN npm install
78

9+
# Create data directory
10+
RUN mkdir -p /app/data
11+
12+
# Copy application code
813
COPY . .
914

1015
# Create data directory if it doesn't exist

integration-tests/mocks/slack-api/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ FROM node:18-alpine
22

33
WORKDIR /app
44

5-
COPY package.json ./
5+
# Copy package files and install dependencies
6+
COPY package*.json ./
67
RUN npm install
78

9+
# Create data directory
10+
RUN mkdir -p /app/data
11+
12+
# Copy application code
813
COPY . .
914

1015
# Create data directory if it doesn't exist

integration-tests/setup/wait-for-services.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ set -e
33
echo "Waiting for services to be ready..."
44

55
echo "Waiting for backend..."
6-
until curl -s http://test-backend:8000/api/v1/health > /dev/null; do
6+
until wget -q -O - http://test-backend:8000/health > /dev/null 2>&1 || [ $? -eq 8 ]; do
77
echo "Backend is unavailable - sleeping"
88
sleep 2
99
done
1010
echo "Backend is up!"
1111

1212
echo "Waiting for mock Slack API..."
13-
until curl -s http://mock-slack-api:3000/health > /dev/null; do
13+
until wget -q -O - http://mock-slack-api:3000/health > /dev/null 2>&1 || [ $? -eq 8 ]; do
1414
echo "Mock Slack API is unavailable - sleeping"
1515
sleep 2
1616
done
1717
echo "Mock Slack API is up!"
1818

1919
echo "Waiting for mock OpenRouter API..."
20-
until curl -s http://mock-openrouter-api:3000/health > /dev/null; do
20+
until wget -q -O - http://mock-openrouter-api:3000/health > /dev/null 2>&1 || [ $? -eq 8 ]; do
2121
echo "Mock OpenRouter API is unavailable - sleeping"
2222
sleep 2
2323
done

0 commit comments

Comments
 (0)