Skip to content

Conversation

@carole-lavillonniere
Copy link

@carole-lavillonniere carole-lavillonniere commented Nov 21, 2025

  1. Fixed the failing unit tests and type check:
--- FAIL: TestResponseTooLarge (0.01s)
    invocationresponse_test.go:67:
        	Error Trace:	/home/carolavillo/Workspaces/localstack/lambda-runtime-init/lambda/rapi/handler/invocationresponse_test.go:67
        	Error:      	Not equal:
        	            	expected: "Response payload size (6291557 bytes) exceeded maximum allowed payload size (6291556 bytes)."
        	            	actual  : "Response payload size exceeded maximum allowed payload size (6291556 bytes)."
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-Response payload size (6291557 bytes) exceeded maximum allowed payload size (6291556 bytes).
        	            	+Response payload size exceeded maximum allowed payload size (6291556 bytes).
        	Test:       	TestResponseTooLarge
lambda/core/directinvoke/customerheaders.go:1: : # go.amzn.com/lambda/core/directinvoke [go.amzn.com/lambda/core/directinvoke.test]
lambda/core/directinvoke/directinvoke_test.go:122:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment
lambda/core/directinvoke/directinvoke_test.go:141:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment
lambda/core/directinvoke/directinvoke_test.go:166:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment
lambda/core/directinvoke/directinvoke_test.go:186:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment
lambda/core/directinvoke/directinvoke_test.go:278:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment
lambda/core/directinvoke/directinvoke_test.go:313:26: cannot use interop.MaxPayloadSize (variable of type int) as int64 value in assignment (typecheck)
  1. Added Github job to run unit tests

@carole-lavillonniere carole-lavillonniere changed the title Fix test and run tests on ci Fix tests and run tests on ci Nov 21, 2025
@carole-lavillonniere carole-lavillonniere marked this pull request as ready for review November 21, 2025 14:54
Comment on lines 12 to 23
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'

- name: Run tests
run: make tests

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not rather add (or perhaps even replace) the localstack branch inside the Run Integration Tests job?

on:
pull_request:
branches:
- develop

Seems there is a job there that will ensure the Go tests are run prior to running the int. tests:

jobs:
go-tests:
runs-on: ubuntu-latest
environment:
name: integ-tests
steps:
- uses: actions/checkout@v4
- name: run go tests
run: make tests-with-docker

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out, I had missed this integ-tests.yml file!
What I did is delete it, since:

  • most jobs it contains are failing at the moment
  • the job I added is about unit tests, whereas this workflow is called integ-tests
  • I think it makes sense to always run the unit tests before attempting to build

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. Can we keep the integration tests yaml, and just ensure it's skipped/never runs? I think in future, we should be running integration tests with upstream LocalStack IMO.

For example, we can build the go binary, upload it as a workflow artifact, and trigger some upstream LocalStack workflow that ensures we run the Lambda suite with this binary.

Copy link

@gregfurman gregfurman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The CI on this repo needs some tlc, so thanks for taking the first step 🙂

I think we should invest some time in better integrating the RIE's CI with upstream LocalStack, but we can tackle this at some other point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants