Fix GitHub Actions deployment timeouts and Lambda image tagging#98
Conversation
…r Lambda builds - Added the `--provenance=false` flag to the Docker build command to prevent OCI image index creation, which is not supported by AWS Lambda.
… tags for CloudFormation detection
…orkflow from 15 to 25 minutes
… from 15 to 25 minutes to accommodate RDS instance creation time.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 1m 41s —— View job PR Review CompleteTodo List
SummaryThis PR makes targeted infrastructure reliability improvements with well-reasoned changes. The modifications are appropriate for production deployment and address real operational issues. Detailed Review✅ Timeout Adjustments (deploy-postgres.yml, deploy-valkey.yml)Changes: Lines:
Assessment: ✅ Approved
Minor suggestion: Consider whether 30 minutes might be safer for multi-AZ deployments, but 25 is reasonable. ✅ Lambda Image Tagging Fix (build.yml)Changes:
Lines: Assessment: ✅ Approved This is the most critical fix in the PR. The changes address a fundamental issue with CloudFormation change detection: Problem diagnosed correctly:
Solution is correct:
Excellent inline documentation: The comments at lines 254-255 explain the "why" clearly for future maintainers. Code Quality NotesStrengths:
No issues found with:
Potential Considerations1. Timeout Buffer for Multi-AZ (Low Priority)If you enable multi-AZ deployments ( timeout-minutes: 30 # Multi-AZ deployments can exceed 20 minHowever, 25 minutes is likely sufficient for your current single-AZ configurations. 2. Lambda Tag Cleanup Strategy (Optional)With version tags accumulating in ECR ( Example ECR lifecycle policy: {
"rules": [{
"rulePriority": 1,
"description": "Keep last 10 lambda version tags",
"selection": {
"tagStatus": "tagged",
"tagPrefixList": ["lambda-git-", "lambda-v"],
"countType": "imageCountMoreThan",
"countNumber": 10
},
"action": { "type": "expire" }
}]
}3. Static Tag Still Created (Informational)Note that line 247 still creates the static environment tag ( -t $ECR_REGISTRY/$ECR_REPOSITORY:$LAMBDA_TAG \This is fine for backward compatibility and manual debugging, but it's no longer used for CloudFormation deployments. This is the correct approach. Testing RecommendationsPer your PR description's testing notes, verify:
For #3 specifically, test by:
Verdict✅ LGTM - Approve for merge This PR demonstrates good operational understanding:
The Lambda image tagging fix is particularly well-implemented and solves a common CloudFormation pitfall. Reviewed files:
|
Summary
This PR addresses several deployment reliability issues in our GitHub Actions workflows by adjusting timeout configurations and fixing Lambda image tagging for proper CloudFormation integration.
Key Changes
Key Accomplishments
Breaking Changes
None. All changes are backward compatible and focused on improving deployment reliability.
Testing Notes
Infrastructure Considerations
These changes specifically target deployment reliability in cloud environments where resource provisioning times can vary. The timeout adjustments account for AWS service creation latencies, particularly for managed database and caching services. The Lambda image tagging fixes ensure proper integration with infrastructure-as-code deployments.
🤖 Generated with Claude Code
Branch Info:
bugfix/ecs-image-fixmainCo-Authored-By: Claude noreply@anthropic.com