Skip to content

Commit beda345

Browse files
Alex Wangwangyb-A
authored andcommitted
chore: remove test invoking in workflow
- Remove the test invoking as we have already invoked them in the integration tests
1 parent 1e327b8 commit beda345

File tree

1 file changed

+0
-74
lines changed

1 file changed

+0
-74
lines changed

.github/workflows/deploy-examples.yml

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -132,80 +132,6 @@ jobs:
132132
echo "Waiting for function to be active..."
133133
aws lambda wait function-active --function-name "$QUALIFIED_FUNCTION_NAME" --endpoint-url "$LAMBDA_ENDPOINT" --region "$AWS_REGION"
134134
135-
- name: Invoke Lambda function - ${{ matrix.example.name }}
136-
env:
137-
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }}
138-
run: |
139-
echo "Testing qualified function: $QUALIFIED_FUNCTION_NAME"
140-
aws lambda invoke \
141-
--function-name "$QUALIFIED_FUNCTION_NAME" \
142-
--cli-binary-format raw-in-base64-out \
143-
--payload '{"name": "World"}' \
144-
--region "${{ env.AWS_REGION }}" \
145-
--endpoint-url "$LAMBDA_ENDPOINT" \
146-
/tmp/response.json \
147-
> /tmp/invoke_response.json
148-
149-
echo "Response:"
150-
cat /tmp/response.json
151-
152-
echo "Full Invoke Response:"
153-
cat /tmp/invoke_response.json
154-
155-
echo "All Response Headers:"
156-
jq -r '.ResponseMetadata.HTTPHeaders' /tmp/invoke_response.json || echo "No HTTPHeaders found"
157-
158-
# Check for function errors
159-
FUNCTION_ERROR=$(jq -r '.FunctionError // empty' /tmp/invoke_response.json)
160-
if [ -n "$FUNCTION_ERROR" ]; then
161-
echo "Warning: Lambda function failed with error: $FUNCTION_ERROR"
162-
echo "Function response:"
163-
cat /tmp/response.json
164-
fi
165-
166-
# Extract invocation ID from response headers
167-
INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json)
168-
if [ -n "$INVOCATION_ID" ]; then
169-
echo "INVOCATION_ID=$INVOCATION_ID" >> $GITHUB_ENV
170-
echo "Captured Invocation ID: $INVOCATION_ID"
171-
else
172-
echo "Warning: Could not capture invocation ID from response"
173-
fi
174-
175-
- name: Find Durable Execution - ${{ matrix.example.name }}
176-
env:
177-
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }}
178-
run: |
179-
echo "Listing durable executions for qualified function: $QUALIFIED_FUNCTION_NAME"
180-
aws lambda list-durable-executions-by-function \
181-
--function-name "$QUALIFIED_FUNCTION_NAME" \
182-
--statuses SUCCEEDED \
183-
--region "${{ env.AWS_REGION }}" \
184-
--endpoint-url "$LAMBDA_ENDPOINT" \
185-
--cli-binary-format raw-in-base64-out \
186-
> /tmp/executions.json
187-
echo "Durable Executions:"
188-
cat /tmp/executions.json
189-
190-
# Extract the first execution ARN for history retrieval
191-
EXECUTION_ARN=$(jq -r '.DurableExecutions[0].DurableExecutionArn // empty' /tmp/executions.json)
192-
echo "EXECUTION_ARN=$EXECUTION_ARN" >> $GITHUB_ENV
193-
194-
- name: Get Durable Execution History - ${{ matrix.example.name }}
195-
if: env.EXECUTION_ARN != ''
196-
env:
197-
LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }}
198-
run: |
199-
echo "Getting execution history for: $EXECUTION_ARN"
200-
aws lambda get-durable-execution-history \
201-
--durable-execution-arn "$EXECUTION_ARN" \
202-
--region "${{ env.AWS_REGION }}" \
203-
--endpoint-url "$LAMBDA_ENDPOINT" \
204-
--cli-binary-format raw-in-base64-out \
205-
> /tmp/history.json
206-
echo "Execution History:"
207-
cat /tmp/history.json
208-
209135
# - name: Cleanup Lambda function
210136
# if: always()
211137
# env:

0 commit comments

Comments
 (0)