Skip to content

feat: Lambda packaging for the remaining 11 Python services + gate deploy.yml (#170) - #174

Merged
bjagg merged 1 commit into
mainfrom
feat/fleet-lambda-packaging
Aug 3, 2026
Merged

bjagg merged 1 commit into
mainfrom
feat/fleet-lambda-packaging

Conversation

@bjagg

@bjagg bjagg commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

What

Closes #170 — verbatim port of the Mangum packaging pattern from demo/e2e-aligned for the 11 remaining Python services ([lambda] extra + lambda_handler.py + Dockerfile.lambda each), exactly what PR #166 established for the SmartResume pair. These are the same bytes running live on AWS at image tag db6952e; only uv.lock (per-member extras) is regenerated.

The workflow gate (per the #170 thread)

.github/workflows/deploy.yml triggered on every push to main and was inert only because these Dockerfiles didn't exist — its build step failed before its deploy steps could run cloudformation deploy with main's stale lambda-service.yml/infra/params against the live skills-mobility-dev-* stacks. This PR arms the builds, so in the same change it gates the workflow to workflow_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

  • Pyproject deltas verified extras-only against main (no drift smuggled in from the demo branch).
  • 511 tests pass; ruff clean; mypy strict clean (151 files — includes the 11 new handler modules).
  • Build/runtime proof: this identical content was built and deployed from the demo branch today and is serving the live demo.

Companion: #173 (Node issuer adapter, serverless-http). Remaining fleet gap after both: learncard-profile-resolver (#172 — blocked on a DynamoMappingStore, PR coming).

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 mgwozdz-unicon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

@bjagg
bjagg merged commit e0e185d into main Aug 3, 2026
2 checks passed
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.

Package the remaining 11 services for Lambda (Mangum handler + Dockerfile.lambda), matching demo/e2e-aligned

2 participants