Fix resources isues 34

This commit is contained in:
2026-01-23 06:08:12 +01:00
parent d2a98b90da
commit 0ee81b9522
3 changed files with 17 additions and 8 deletions

View File

@@ -102,9 +102,12 @@ spec:
add_service "frontend" add_service "frontend"
fi fi
# Check for changes in shared/ directory (might affect multiple services) # Check for changes in shared/ directory
# shared/ contains code used by services and gateway (NOT frontend), so rebuild them
if echo "$CHANGED_FILES" | grep -q '^shared/'; then if echo "$CHANGED_FILES" | grep -q '^shared/'; then
add_service "shared" echo "Detected changes in shared/ - triggering rebuild of all services and gateway"
echo "services-and-gateway" > $(results.changed-services.path)
exit 0
fi fi
if [ -z "$CHANGED_SERVICES" ]; then if [ -z "$CHANGED_SERVICES" ]; then

View File

@@ -86,9 +86,15 @@ spec:
echo "Trimmed services param: '$SERVICES_PARAM'" echo "Trimmed services param: '$SERVICES_PARAM'"
# Handle "all" case by discovering services from workspace # Handle special cases for service discovery
# "all" = all services + gateway + frontend
# "services-and-gateway" = all services + gateway (no frontend) - used when shared/ changes
if [ "$SERVICES_PARAM" = "all" ] || [ "$SERVICES_PARAM" = "services-and-gateway" ]; then
if [ "$SERVICES_PARAM" = "all" ]; then if [ "$SERVICES_PARAM" = "all" ]; then
echo "Building all services - discovering from workspace..." echo "Building all services (including frontend) - discovering from workspace..."
else
echo "Building services and gateway (shared/ changed) - discovering from workspace..."
fi
echo "Workspace contents:" echo "Workspace contents:"
ls -la "$WORKSPACE/" ls -la "$WORKSPACE/"
echo "Services directory contents:" echo "Services directory contents:"
@@ -115,8 +121,8 @@ spec:
SERVICES="$SERVICES,gateway" SERVICES="$SERVICES,gateway"
fi fi
fi fi
# Add frontend if it has Dockerfile.kubernetes # Add frontend ONLY for "all" (not for "services-and-gateway")
if [ -f "$WORKSPACE/frontend/Dockerfile.kubernetes" ]; then if [ "$SERVICES_PARAM" = "all" ] && [ -f "$WORKSPACE/frontend/Dockerfile.kubernetes" ]; then
if [ -z "$SERVICES" ]; then if [ -z "$SERVICES" ]; then
SERVICES="frontend" SERVICES="frontend"
else else

View File

@@ -1,5 +1,5 @@
""" """
Test - Enhanced Base Database Configuration for All Microservices Enhanced Base Database Configuration for All Microservices
Provides DatabaseManager with connection pooling, health checks, and multi-database support Provides DatabaseManager with connection pooling, health checks, and multi-database support
Fixed: SSL configuration now uses connect_args instead of URL parameters to avoid asyncpg parameter parsing issues Fixed: SSL configuration now uses connect_args instead of URL parameters to avoid asyncpg parameter parsing issues