Skip to content

Commit bb63d24

Browse files
committed
Improve CI error handling and debugging
- Add detailed error handling for each build step - Replace failing grep with conditional checks for Docker images - Add build status messages for better debugging - Should provide clearer failure information
1 parent fd95f4c commit bb63d24

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

.github/workflows/core-build-checks.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,46 @@ jobs:
5353
run: |
5454
cd core
5555
chmod +x agent-api-build.sh
56-
# Build without pushing - modify the script to skip interactive parts
57-
./agent-api-build.sh
56+
echo "🚀 Starting CortexFlow Agent build..."
57+
./agent-api-build.sh || { echo "❌ Agent build failed"; exit 1; }
58+
echo "✅ Agent build completed"
5859
5960
- name: Build CortexFlow Identity
6061
run: |
6162
cd core/src/components/identity
6263
chmod +x build-identity.sh
63-
./build-identity.sh
64+
echo "🚀 Starting CortexFlow Identity build..."
65+
./build-identity.sh || { echo "❌ Identity build failed"; exit 1; }
66+
echo "✅ Identity build completed"
6467
6568
- name: Build CortexFlow Metrics
6669
run: |
6770
cd core/src/components/metrics
6871
chmod +x build-metrics.sh
69-
./build-metrics.sh
72+
echo "🚀 Starting CortexFlow Metrics build..."
73+
./build-metrics.sh || { echo "❌ Metrics build failed"; exit 1; }
74+
echo "✅ Metrics build completed"
7075
7176
- name: Verify Docker images were built
7277
run: |
73-
docker images | grep -E "(cortexflow-agent|identity|metrics)"
74-
echo "✅ All core components built successfully"
78+
echo "Listing all Docker images:"
79+
docker images
80+
echo "Checking for core component images..."
81+
if docker images | grep -q "cortexflow-agent"; then
82+
echo "✅ cortexflow-agent image found"
83+
else
84+
echo "❌ cortexflow-agent image not found"
85+
fi
86+
if docker images | grep -q "identity"; then
87+
echo "✅ identity image found"
88+
else
89+
echo "❌ identity image not found"
90+
fi
91+
if docker images | grep -q "metrics"; then
92+
echo "✅ metrics image found"
93+
else
94+
echo "❌ metrics image not found"
95+
fi
7596
7697
- name: Run basic tests if available
7798
run: |

0 commit comments

Comments
 (0)