fix(observability,ci): SERVER_PORT 바인딩 선언 및 deploy.yml 중복 키 제거 #141 - #152
Merged
Conversation
observability 만 server.port 선언이 빠져 있어, .env 에 SERVER_PORT 가 없으면 조용히
8080 으로 뜬다. Gateway 는 관례대로 8085 를 부르므로 연결이 거부되고 모니터링 경로
전체가 502 가 된다.
다른 서비스와 동일하게 기본값 없이 ${SERVER_PORT} 로 선언해 누락 시 기동 단계에서
드러나게 한다.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
build-push-action 의 with 블록에 tags 와 cache-to 가 두 번씩 선언돼 있어 GitHub 가 워크플로 파일을 파싱하지 못한다. 파싱이 안 되면 on.push.branches 필터도 적용되지 않으므로, 547b349 이후 모든 브랜치의 푸시마다 잡 없는 실패 실행이 생기고 main 푸시에서는 배포가 아예 돌지 않는다. 뒤에 선언된 tags(latest + sha) 를 남기고 앞의 단일 tags 와 중복 cache-to 를 지운다. PR #95 의 c42ba1c 와 같은 변경이라 그 PR 과 충돌하지 않는다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 23 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
kusuri12-09
approved these changes
Sep 13, 2026
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
#142 머지 뒤 남은 배포 문제 두 가지를 고친다.
server.port를 선언하지 않아,SERVER_PORT가 빠지면 조용히 8080 으로 떠 Gateway 의 모니터링 경로 전체가 502 가 되는 문제deploy.yml의 중복 키 때문에 GitHub 가 워크플로를 읽지 못해, 모든 브랜치 푸시마다 실패 실행이 생기고 main 푸시에서 배포가 돌지 않는 문제Related Issue
deploy.yml수정은 observability 모니터링이 배포 구성(gateway 경유, 인스턴스 여러 대)에서 제대로 동작하지 않음 #141 범위 밖이지만 배포를 막고 있어 함께 올린다)Root Cause
observability
SERVER_PORTobservability-bootstrap의application.yaml에만server.port가 없었다. 나머지 6개 서비스는 모두port: ${SERVER_PORT}를 선언한다(admin 은 fix(admin): SERVER_PORT 바인딩 선언 및 .env.example 추가 #135 #136 에서 추가).env.observability에SERVER_PORT가 있으면 relaxed binding 으로 먹어서 드러나지 않는다. 없으면 Spring 기본값 8080 으로 뜨는데, Gateway 는systems/gateway/.env.example관례대로 8085 를 호출하므로 연결이 거부되고GatewayGlobalExceptionHandler가 502 로 응답한다deploy.yml547b349(CI/CD 구축 #79)에서docker/build-push-action의with:블록에tags와cache-to가 두 번씩 들어갔다. GitHub 는 이 파일을 파싱하지 못한다(Line: 73, Col: 11): 'tags' is already defined, (Line: 78, Col: 11): 'cache-to' is already definedon.push.branches: [main]필터도 적용되지 않는다. 브랜치와 상관없이 푸시마다 잡이 없는 실패 실행(이름이.github/workflows/deploy.yml)이 생기고, main 푸시에서는 빌드·배포가 실행되지 않는다Fix Description
application.yaml에port: ${SERVER_PORT}추가. 다른 서비스처럼 기본값 없이 두어 누락 시 기동 단계에서 바로 실패하게 한다.systems/observability/.env.example에는 이미SERVER_PORT=8085가 있다deploy.yml에서:latest만 붙이던 앞쪽tags와 중복cache-to를 지우고,:latest와:<sha>를 함께 붙이는 뒤쪽tags를 남긴다. 결과 파일이 chore(ci): PR 단위 Bazel 빌드/테스트 자동화 #93 #95 의c42ba1c와 같아서 그 PR 과 충돌하지 않는다Testing
deploy.yml수정 전: 푸시마다 위 파싱 오류로 실패한다(예: run 34756866638)deploy.yml수정 후:cf0c0c2푸시에서deploy.yml실행이 생기지 않는다(main 이 아니므로 정상).chore/93-ci-pipeline에서도 같은 변경(c42ba1c) 이후 실패 실행이 사라졌다SERVER_PORT없이 기동하면Could not resolve placeholder 'SERVER_PORT'로 바로 실패한다. 수정 전 8080 기동은 선언 누락을 코드로만 확인했다Risk & Impact
.env.observability에SERVER_PORT가 없으면 이 변경 뒤 observability 가 기동에 실패한다. 조용히 502 가 나는 대신 로그에 드러나게 하려는 의도지만, 배포 전에 넣어 두어야 한다:latest,:<sha>로 GHCR 에 푸시하고,DEPLOY_HOSTS변수가 있으면 EC2 배포까지 실행한다.github/workflows/deploy.yml. 런타임 로직 변경 없음Checklist
🤖 Generated with Claude Code