Skip to content

Commit 19eb043

Browse files
author
Bob Strahan
committed
Merge branch 'develop' v0.4.2
2 parents bf9983f + 1cd5b06 commit 19eb043

File tree

129 files changed

+19823
-8186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+19823
-8186
lines changed

.github/workflows/developer-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
name: Lint, Type Check, and Test
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 120 # 2 hours
18+
19+
permissions:
20+
contents: read
21+
issues: read
22+
checks: write
23+
# pull-requests: write - Not needed: PR comments are disabled (see line 115)
1824

1925
# Use Python 3.13 to match GitLab configuration
2026
container:

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ package-lock.json
3131

3232
# Type checking
3333
pyrightconfig.temp.json
34-
.pyright/
34+
.pyright/
35+
36+
# Python virtual environments
37+
.venv/
38+
.venv-*/
39+
venv/

.gitlab-ci.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ deployment_validation:
9595
integration_tests:
9696
stage: integration_tests
9797
timeout: 2h
98+
variables:
99+
IDP_ADMIN_EMAIL: ${GITLAB_USER_EMAIL}
98100
# variables:
99101
# # In order to run tests in another account, add a AWS_CREDS_TARGET_ROLE variable to the Gitlab pipeline variables.
100102
# AWS_CREDS_TARGET_ROLE: ${AWS_CREDS_TARGET_ROLE}
@@ -123,7 +125,7 @@ integration_tests:
123125
- unzip awscliv2.zip
124126
- ./aws/install
125127
# Install boto3 for Python script
126-
- pip install boto3
128+
- pip install boto3 rich
127129

128130
script:
129131
- aws --version
@@ -132,7 +134,57 @@ integration_tests:
132134
# Set environment variables for Python script
133135
- export IDP_ACCOUNT_ID=${IDP_ACCOUNT_ID:-020432867916}
134136
- export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-east-1}
135-
- export IDP_PIPELINE_NAME=idp-sdlc-deploy-pipeline
137+
- export IDP_PIPELINE_NAME=genaiic-sdlc-deploy-pipeline
136138

137139
# Run integration test deployment
138140
- python3 scripts/integration_test_deployment.py
141+
142+
after_script:
143+
# Display CodeBuild logs directly in GitLab runner console
144+
- |
145+
if [ -f "pipeline_execution_id.txt" ]; then
146+
EXECUTION_ID=$(cat pipeline_execution_id.txt)
147+
echo "Pipeline Execution: $EXECUTION_ID"
148+
149+
# Get CodeBuild ID from the pipeline execution
150+
BUILD_ID=$(aws codepipeline list-action-executions --pipeline-name ${IDP_PIPELINE_NAME:-genaiic-sdlc-deploy-pipeline} --filter pipelineExecutionId=$EXECUTION_ID --query 'actionExecutionDetails[?actionName==`BuildAction`].output.executionResult.externalExecutionId' --output text 2>/dev/null || echo "")
151+
152+
if [ "$BUILD_ID" != "" ] && [ "$BUILD_ID" != "None" ]; then
153+
echo "CodeBuild ID: $BUILD_ID"
154+
# Extract just the build ID part (after the colon)
155+
LOG_STREAM_NAME="${BUILD_ID#*:}"
156+
echo "Log Stream: $LOG_STREAM_NAME"
157+
echo ""
158+
echo "=== DEPLOYMENT SUMMARY ==="
159+
# Wait for CloudWatch Logs to flush all events
160+
echo "Waiting 30 seconds for logs to flush..."
161+
sleep 30
162+
FULL_LOGS=$(aws logs get-log-events --log-group-name "/aws/codebuild/app-sdlc" --log-stream-name "$LOG_STREAM_NAME" --start-from-head --query 'events[].message' --output text 2>/dev/null || echo "Could not retrieve CodeBuild logs")
163+
164+
# Save full logs to artifact
165+
echo "$FULL_LOGS" > codebuild_logs.txt
166+
echo "📁 Full deployment logs saved to: codebuild_logs.txt"
167+
168+
# Extract and show deployment summary (AI or manual)
169+
echo ""
170+
SUMMARY=$(echo "$FULL_LOGS" | grep -A 100 "🤖 Generating deployment summary with Bedrock..." | head -100)
171+
172+
if [ -n "$SUMMARY" ]; then
173+
echo "🤖 Deployment Analysis:"
174+
echo "$SUMMARY"
175+
else
176+
echo "⚠️ No deployment summary found - check codebuild_logs.txt for details"
177+
fi
178+
else
179+
echo "Could not find CodeBuild execution"
180+
fi
181+
else
182+
echo "No pipeline execution ID found"
183+
fi
184+
185+
artifacts:
186+
when: always
187+
paths:
188+
- pipeline_execution_id.txt
189+
- codebuild_logs.txt
190+
expire_in: 1 week

ANALYSIS_JSON_SCHEMA_LIBRARIES.md

Lines changed: 0 additions & 236 deletions
This file was deleted.

0 commit comments

Comments
 (0)