Closed InsertPikachuFace closed 9 months ago
Thanks for reporting. Going to mark this as a bug.
@InsertPikachuFace Is this something you would want to contribute a fix for? We understand if not, just will be some lead time before we can patch. We do prioritize bugs highly regardless just might be faster if you submitted a patch is all.
@jfuss I'm not too familiar/comfortable with Python or encoding in general and just disabling the unit-tests with a Makefile is a simple enough workaround, so I'd be fine with waiting for your team to get around to it. I just wanted to report it here in case anybody else runs into this error.
My Makefile (add Metadata: BuildMethod: makefile
to the template.yaml
):
build-LocalLambda:
mvn clean package -DskipTests
mkdir -p $(ARTIFACTS_DIR)\lib
copy .\target\...*.jar $(ARTIFACTS_DIR)\lib\
@InsertPikachuFace No worries at all. We appreciate you taking the time to report.
The fix has been released in Lambda Builders version 1.40.0 and in AWS SAM CLI version 1.99.0.
Description:
Because the log output from the Maven build is decoded with UTF-8 (see line), an "ü" in our unit-test logs causes the SAM local Lambda build to fail. If I add -DskipTests with a Makefile it completes as expected.
Steps to reproduce the issue:
maven package
sam build
with default template configurationObserved result:
Expected result:
SAM build completes despite an encoding error in a debug-log or it logs out any Maven output correctly.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)