Repository navigation
chore : 테스트 CI 추가와 배치 실패 시 종료 코드 전달 - #17
Merged
Merged
Conversation
수집기 엔티티는 #16에서 V8 컬럼을 쓰는데 포인터가 #32에 머물러 테스트 스키마 검증이 깨졌다
- ci.yml: PR마다 서브모듈 포함 ./gradlew test. 수집 워크플로가 workflow_call로 재사용한다 - main: SpringApplication.exit로 JobExecutionExitCodeGenerator의 종료 코드를 내보낸다(지금은 FAILED여도 0)
2 of 4 tasks
|
수고하셨습니다! |
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.
변경점 👍
이 레포에는 CI가 없어서 테스트 CI를 추가했습니다. 이어서 올릴 수집 워크플로(Actions에서 2주 간격으로 dev DB 수집)의 준비 단계입니다.
ci.yml(신규): PR마다fin-be서브모듈을 포함해 체크아웃하고./gradlew test를 실행합니다.workflow_call로도 호출할 수 있게 했습니다. 수집 워크플로가 수집 전에 같은 브랜치로 이 CI를 돌리고, 통과해야만 DB에 씁니다.ApiCollectorApplication.main:System.exit(SpringApplication.exit(...))로 바꿨습니다.FAILED로 끝나도 프로세스 종료 코드가 0이라 Actions에서 실패로 잡히지 않습니다.JobExecutionExitCodeGenerator가 FAILED면 0이 아닌 코드를 돌려줍니다.fin-be서브모듈 포인터 갱신 (9e13118 → e30a018, Fin-BE #35)./gradlew test를 돌리면 스키마 검증(ddl-auto: validate)이 깨집니다.테스트 💻
./gradlew test: 갱신 전 포인터에서는 스키마 검증 실패, 갱신 후 전체 통과status: [FAILED], 종료 코드 0status: [FAILED], 종료 코드 5ci.yml이 처음 실행됩니다.비고
머지해도 서버나 DB에는 영향이 없습니다.