Repository navigation
feat: Lambda packaging for the remaining 11 Python services + gate deploy.yml (#170) - #174
Conversation
Verbatim port from demo/e2e-aligned (the exact bytes running live on AWS at image tag db6952e): [lambda] mangum extra + Mangum lambda_handler (lifespan=off) + Dockerfile.lambda per service, closing infra/README items 4-5 for the Python fleet. Also gates .github/workflows/deploy.yml to workflow_dispatch: it was inert only because these Dockerfiles were missing — with them on main, its push trigger would deploy main's stale starter templates/params over the live demo stacks. Re-enable push once main's infra catches up (see #170 thread).
mgwozdz-unicon
left a comment
There was a problem hiding this comment.
Approving. Claude checked this against origin/main (verified with git grep that all 11 target modules define create_app(...) with every parameter defaulted, so the zero-arg create_app() call in each new lambda_handler.py works) and confirmed the learncard-wallet-adapter Dockerfile correctly installs libs/learncard-api before the service itself, matching the ordering fix from demo/e2e-aligned's dd5176be1. The uv.lock diff is extras-only, and no new mypy override was needed since PR #166 already added the mangum.* override this reuses.
The deploy.yml gate (push → workflow_dispatch) is well-justified and matches the option you picked in the #170 thread, so no issue there. One thing worth fixing in this PR though: the matrix's "stubbed" comment still only names profile-resolver / delivery-router / issuer-adapter, but this PR also Lambda-packages learncard-wallet-adapter, which is excluded from the matrix too and now goes unmentioned. Could you either add it to that comment's list, or note why it's deliberately left out? Filed the actual re-enable-the-trigger work as #178 (which also covers deciding whether learncard-wallet-adapter belongs in the matrix once main's infra templates/params catch up), so this is just about keeping the comment accurate in the meantime.
No new tests for the 11 lambda_handler.py files, but that's consistent with the existing convention across the fleet (SmartResume's from #166, the Node issuer-adapter's from #173) — not a gap introduced here.
What
Closes #170 — verbatim port of the Mangum packaging pattern from
demo/e2e-alignedfor the 11 remaining Python services ([lambda]extra +lambda_handler.py+Dockerfile.lambdaeach), exactly what PR #166 established for the SmartResume pair. These are the same bytes running live on AWS at image tagdb6952e; onlyuv.lock(per-member extras) is regenerated.The workflow gate (per the #170 thread)
.github/workflows/deploy.ymltriggered on every push to main and was inert only because these Dockerfiles didn't exist — its build step failed before its deploy steps could runcloudformation deploywith main's stalelambda-service.yml/infra/paramsagainst the liveskills-mobility-dev-*stacks. This PR arms the builds, so in the same change it gates the workflow toworkflow_dispatch(option (a) from the issue thread — smallest, reversible). The inline comment documents the re-enable condition: main's templates/params catching up to the demo branch's.Verification
Companion: #173 (Node issuer adapter, serverless-http). Remaining fleet gap after both:
learncard-profile-resolver(#172 — blocked on a DynamoMappingStore, PR coming).