Skip to content

Phase 4 — deploy/CI/deps hardening (clean pass)#93

Closed
chrisbc wants to merge 1 commit into
migrate/strawberry-p3from
migrate/strawberry-p4
Closed

Phase 4 — deploy/CI/deps hardening (clean pass)#93
chrisbc wants to merge 1 commit into
migrate/strawberry-p3from
migrate/strawberry-p4

Conversation

@chrisbc

@chrisbc chrisbc commented Jun 24, 2026

Copy link
Copy Markdown
Member

Stacked migration — PR 6 of N. Base = migrate/strawberry-p3 (Phase 3, #92).
Epic: GNS-Science/nshm-toshi-api#359 · Tracking: #86 · Log: docs/MIGRATION_LOG.md

The deploy-layer validation. Came back clean — the migration's deps/container/CI are healthy.

Findings

  • Container: amd64 docker build green with the migrated deps (strawberry/fastapi/mangum in, pynamodb out). Image 360 MB (geo stack) — under the §A3 500 MB aim, so single-stage stays. docker run … import solvis_graphql_api.app → Mangum handler + full Strawberry schema load in-image. Dep path: the shared deploy-to-aws-uv.yml exports requirements.txt from uv.lock before the build (local build mirrors it).
  • Plugins (§4.7): s3rver + serverless-dynamodb load fine; no resolutions block needed — solvis doesn't hit the fast-xml-parser/s3rver clash toshi-api did.
  • Vulns: pip-audit on runtime deps → none. No pyup bump.
  • Memory: stays 2096 MB (no evidence to change).

Changes

  • Removed the dead serverless-wsgi npm plugin (no longer in serverless.yml) + stale requirements_1/2 scripts from package.json; yarn install --mode update-lockfile then --immutable clean (§4.6).

Verification

  • amd64 build + in-image handler/schema import
  • pip-audit clean; plugin chain loads; yarn install --immutable clean
  • CI already on the -uv test + deploy workflows

- container: amd64 build green with migrated deps; 360MB (< 500MB aim, no
  multi-stage); Mangum handler + full schema import in-image
- pip-audit runtime deps: no known vulnerabilities
- plugin chain (s3rver + serverless-dynamodb) loads; no resolutions needed
- drop dead serverless-wsgi npm plugin + stale requirements_* scripts;
  yarn lockfile updated, --immutable clean (§4.6)
- memory stays 2096; CI already on -uv test+deploy workflows

Refs #86
@chrisbc

chrisbc commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

Landed via the combined PR #95 (one merge → one test-stage deploy, per runbook G7). Per-phase detail preserved here.

@chrisbc chrisbc closed this Jun 24, 2026
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.

1 participant