Model/.github/workflows
Jun-te Kim 409934a730 Fix fastapi lambda exceeding AWS's 250MB unzipped size limit
dev deploys have failed since PR #1231 (2026-06-15) with
InvalidParameterValueException: Unzipped size must be smaller than
262144000 bytes. The lambda zip is built from the whole repo root
(deployment/terraform/modules/lambda_with_api_gateway) and only
excluded tests/deployment/pycache — so .git (206MB packed), the
per-schema corpus.jsonl fixtures under backend/epc_api/json_samples/
(~50MB), and the sap10_calculator PDF specs (~13MB) were all being
zipped up even though none of them are read at runtime.

Also add scripts/check_lambda_zip_size.py, which mirrors the
terraform module's pip install + zip-with-excludes behaviour to
report the projected unzipped size without mutating the repo, and
wire it into deploy_terraform.yml as a fast_api_lambda_zip_size_check
job that gates the real deploy so this fails fast with a clear
message instead of surfacing as an opaque Terraform/AWS error.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 12:54:03 +00:00
..
_build_image.yml epc token added 2026-05-20 15:43:41 +00:00
_deploy_lambda.yml actually deploy lambda 2026-06-23 08:46:23 +00:00
_smoke_test_lambda.yml smoke tests 2026-05-14 16:49:45 +00:00
cml.yml Update cml.yml 2023-09-05 00:08:53 +01:00
ddd_tests.yml ddd tests 2026-06-02 15:31:42 +00:00
deploy_fastapi_backend.yml ci: disable integration/deploy/protect workflows (Actions minutes) 2026-06-24 07:56:42 +00:00
deploy_terraform.yml Fix fastapi lambda exceeding AWS's 250MB unzipped size limit 2026-07-06 12:54:03 +00:00
integration_tests.yml ci: disable integration/deploy/protect workflows (Actions minutes) 2026-06-24 07:56:42 +00:00
lambda_smoke_tests.yml remove smoke tests from gh workflows 2026-06-24 11:35:30 +00:00
protect_releases.yml ci: disable integration/deploy/protect workflows (Actions minutes) 2026-06-24 07:56:42 +00:00
unit_tests.yml ci: disable unit_tests.yml workflow (Actions minutes) 2026-06-24 07:54:07 +00:00