Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed name of function so it works with Amazon Lambda #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

fixed name of function so it works with Amazon Lambda

d11b291
Select commit
Loading
Failed to load commit list.
Open

fixed name of function so it works with Amazon Lambda #1

fixed name of function so it works with Amazon Lambda
d11b291
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
jenkins.ci2.aws.base2.services / Jenkins failed Nov 25, 2023 in 3m 8s

Run lambda tests: error in 'sh' step

Run lambda tests / Shell Script

Error in sh step, with arguments make lambda-test COMMIT=${GIT_COMMIT}.

script returned exit code 2
Build log
+ make lambda-test 'COMMIT=bbd9349806a46ce7dfc671ab0d6c6e03cc0c83dc'
aws lambda invoke --function-name port-check --payload file://./test/google.json lambda-test-1.json --log-type Tail --query 'LogResult' --output text | base64 -d
START RequestId: bb041a8d-81a7-4ac6-adf0-0faa850fa80a Version: $LATEST
[ERROR] Runtime.HandlerNotFound: Handler 'port_check' missing on module 'handler'
Traceback (most recent call last):END RequestId: bb041a8d-81a7-4ac6-adf0-0faa850fa80a
REPORT RequestId: bb041a8d-81a7-4ac6-adf0-0faa850fa80a	Duration: 1.74 ms	Billed Duration: 2 ms	Memory Size: 128 MB	Max Memory Used: 59 MB	Init Duration: 295.07 ms	
aws lambda invoke --function-name port-check --payload file://./test/example.json lambda-test-2.json --log-type Tail --query 'LogResult' --output text | base64 -d
START RequestId: 5c2e4784-06fe-45f1-9f9d-bbb6eeef9fe5 Version: $LATEST
[ERROR] Runtime.HandlerNotFound: Handler 'port_check' missing on module 'handler'
Traceback (most recent call last):END RequestId: 5c2e4784-06fe-45f1-9f9d-bbb6eeef9fe5
REPORT RequestId: 5c2e4784-06fe-45f1-9f9d-bbb6eeef9fe5	Duration: 19.87 ms	Billed Duration: 20 ms	Memory Size: 128 MB	Max Memory Used: 59 MB	
if grep -q "errorMessage" lambda-test-*.json; then echo "\nLambda tests failed"; exit 1; else echo "\nLambda tests passed";	fi
\nLambda tests failed
make: *** [Makefile:24: lambda-test] Error 1

Details

  • Declarative: Checkout SCM (32 sec)
    • Build Docker image (3.7 sec)
    • Run unit tests (3 sec)
    • Build binary (3 sec)
    • Run lambda tests (1 min 41 sec)
      Error: script returned exit code 2
    • Publish package (2.5 sec)
    • Declarative: Post Actions (2.5 sec)