From 278287208c584af72c36694b899c7b2105161b62 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Thu, 13 Nov 2025 14:56:55 -0800 Subject: [PATCH] chore: remove test invoking in workflow - Remove the test invoking as we have already invoked them in the integration tests --- .github/workflows/deploy-examples.yml | 74 --------------------------- 1 file changed, 74 deletions(-) diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml index 383d874..c4199b6 100644 --- a/.github/workflows/deploy-examples.yml +++ b/.github/workflows/deploy-examples.yml @@ -132,80 +132,6 @@ jobs: echo "Waiting for function to be active..." aws lambda wait function-active --function-name "$QUALIFIED_FUNCTION_NAME" --endpoint-url "$LAMBDA_ENDPOINT" --region "$AWS_REGION" - - name: Invoke Lambda function - ${{ matrix.example.name }} - env: - LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }} - run: | - echo "Testing qualified function: $QUALIFIED_FUNCTION_NAME" - aws lambda invoke \ - --function-name "$QUALIFIED_FUNCTION_NAME" \ - --cli-binary-format raw-in-base64-out \ - --payload '{"name": "World"}' \ - --region "${{ env.AWS_REGION }}" \ - --endpoint-url "$LAMBDA_ENDPOINT" \ - /tmp/response.json \ - > /tmp/invoke_response.json - - echo "Response:" - cat /tmp/response.json - - echo "Full Invoke Response:" - cat /tmp/invoke_response.json - - echo "All Response Headers:" - jq -r '.ResponseMetadata.HTTPHeaders' /tmp/invoke_response.json || echo "No HTTPHeaders found" - - # Check for function errors - FUNCTION_ERROR=$(jq -r '.FunctionError // empty' /tmp/invoke_response.json) - if [ -n "$FUNCTION_ERROR" ]; then - echo "Warning: Lambda function failed with error: $FUNCTION_ERROR" - echo "Function response:" - cat /tmp/response.json - fi - - # Extract invocation ID from response headers - INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json) - if [ -n "$INVOCATION_ID" ]; then - echo "INVOCATION_ID=$INVOCATION_ID" >> $GITHUB_ENV - echo "Captured Invocation ID: $INVOCATION_ID" - else - echo "Warning: Could not capture invocation ID from response" - fi - - - name: Find Durable Execution - ${{ matrix.example.name }} - env: - LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }} - run: | - echo "Listing durable executions for qualified function: $QUALIFIED_FUNCTION_NAME" - aws lambda list-durable-executions-by-function \ - --function-name "$QUALIFIED_FUNCTION_NAME" \ - --statuses SUCCEEDED \ - --region "${{ env.AWS_REGION }}" \ - --endpoint-url "$LAMBDA_ENDPOINT" \ - --cli-binary-format raw-in-base64-out \ - > /tmp/executions.json - echo "Durable Executions:" - cat /tmp/executions.json - - # Extract the first execution ARN for history retrieval - EXECUTION_ARN=$(jq -r '.DurableExecutions[0].DurableExecutionArn // empty' /tmp/executions.json) - echo "EXECUTION_ARN=$EXECUTION_ARN" >> $GITHUB_ENV - - - name: Get Durable Execution History - ${{ matrix.example.name }} - if: env.EXECUTION_ARN != '' - env: - LAMBDA_ENDPOINT: ${{ secrets.LAMBDA_ENDPOINT_BETA }} - run: | - echo "Getting execution history for: $EXECUTION_ARN" - aws lambda get-durable-execution-history \ - --durable-execution-arn "$EXECUTION_ARN" \ - --region "${{ env.AWS_REGION }}" \ - --endpoint-url "$LAMBDA_ENDPOINT" \ - --cli-binary-format raw-in-base64-out \ - > /tmp/history.json - echo "Execution History:" - cat /tmp/history.json - # - name: Cleanup Lambda function # if: always() # env: