fix: post-monorepo-migration cleanup (compose + script)#1
Open
chase2955 wants to merge 2 commits intoEVNSolution:mainfrom
Open
fix: post-monorepo-migration cleanup (compose + script)#1chase2955 wants to merge 2 commits intoEVNSolution:mainfrom
chase2955 wants to merge 2 commits intoEVNSolution:mainfrom
Conversation
`development/service-attendance-registry/` exists in clever-msa-platform and is whitelisted in WORKSPACE.md, but attendance-registry-api is absent from docker-compose.account-driver-settlement.yml and there is no attendance-registry.env.example. The gateway nginx.conf already declares `upstream attendance-registry-api`, so on a fresh clone the gateway container fails with: [emerg] host not found in upstream "attendance-registry-api" in /etc/nginx/nginx.conf:290 Mirrors the dispatch-registry-api stanza (closest sibling) and adds: - attendance-registry-api service (build context ../service-attendance-registry, depends on attendance-registry-db and dispatch-registry-api per service README phase-1 source rule) - attendance-registry-db postgres stanza - attendance-registry.env.example with Django + Postgres + JWT defaults and DISPATCH_REGISTRY_BASE_URL + DRIVER_PROFILE_BASE_URL. Verified locally: `docker compose up -d attendance-registry-db attendance-registry-api gateway` reaches healthy and `curl /healthz` returns 200. Trace: required by EVNSolution/clever-change-control#23. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
build_unified_openapi.py:172 parses clever-msa-platform/docs/mappings/current-runtime-inventory.md looking for `## Active Runtime Repos`, but on main the canonical heading is `## Active Runtime Source Slices`. refresh_api_docs.py therefore fails: ValueError: Heading not found: ## Active Runtime Repos in /home/.../current-runtime-inventory.md This blocks generating edge-api-gateway/public-api-docs/openapi.yaml, revision.json, and service-export-manifest.json, which the gateway Dockerfile requires via `RUN test -f`. Fresh-clone gateway image builds fail until the lookup is aligned. Single-line fix: align the heading with the canonical inventory. Trace: required by EVNSolution/clever-change-control#23. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two regressions discovered while validating a fresh clone of
EVNSolution/clever-msa-platformend-to-end through this repo. Bothoriginate from the
1cc4008 refactoring: convert msa platform to monorepo umbrellacommit onclever-msa-platform, are bundled herebecause they share a root cause and the same review axis: a fresh
clone must boot through
seed-runner completed successfullyandreach
gateway healthyathttp://127.0.0.1:8080/healthz.Commit 1 —
compose: add attendance-registry-api + db + envdevelopment/service-attendance-registry/exists inclever-msa-platform(whitelisted inWORKSPACE.md, listed indocs/mappings/current-runtime-inventory.mdasactive runtime), butattendance-registry-apiis absent fromdocker-compose.account-driver-settlement.ymland there is noinfra/env/local/attendance-registry.env.example. Yetdevelopment/edge-api-gateway/nginx.confdeclaresupstream attendance-registry-api. On a fresh clone the gatewaycontainer therefore fails to start with:
Mirroring the closest sibling stanza (
dispatch-registry-api), thiscommit adds:
attendance-registry-apiservice (build context../service-attendance-registry, depends onattendance-registry-dbanddispatch-registry-api— phase-1attendance source per the service README)
attendance-registry-dbpostgres stanzainfra/env/local/attendance-registry.env.examplematching siblingshape (Django + Postgres + JWT + DISPATCH_REGISTRY_BASE_URL +
DRIVER_PROFILE_BASE_URL)
Commit 2 —
scripts: inventory heading drift in build_unified_openapi.pyscripts/build_unified_openapi.py:172parsesdocs/mappings/current-runtime-inventory.mdlooking for a heading## Active Runtime Repos, but onmainofclever-msa-platformthecanonical heading reads
## Active Runtime Source Slices. As a resultscripts/refresh_api_docs.pyfails at theenabled_servicesstep:This blocks generating
development/edge-api-gateway/public-api-docs/openapi.yaml,revision.json, andservice-export-manifest.json, which thegateway Dockerfile requires via
RUN test -f. Fresh-clone gatewayimage builds therefore fail until the heading lookup is aligned.
Single-line fix: align the lookup with the canonical heading in
inventory.
Verified locally
After both commits applied:
docker compose -f docker-compose.account-driver-settlement.yml build attendance-registry-apisucceeds.docker compose ... up -d attendance-registry-db attendance-registry-apireachesUp healthywith Django migrations applied and gunicorn workers booting.gatewaycontainer transitions from unhealthy/exit toUp healthy.curl -i http://127.0.0.1:8080/healthz→200 OK.curl -i http://127.0.0.1:8080/api/auth/health/→200 OK.seed-runnerreachesSeed runner completed successfully.Trace
Discovered during fresh-clone validation for
EVNSolution/clever-change-control#23(체이스운수 운영현황·정산·전자계산서역발행 시스템). A consolidated audit covering all four monorepo-migration
regressions (two more in
clever-msa-platformitself, addressed inEVNSolution/clever-msa-platform#3) is being filed onclever-change-controlwith cross-links to this PR.🤖 Generated with Claude Code