[refactor] 순위 공정성 문제 해결#215
Open
Conversation
2 tasks
📊 테스트 커버리지 리포트Overall: 🟡 Line
|
| 패키지 | Line | Branch |
|---|---|---|
🟢 problem/enums |
100% | N/A |
🟢 global/judge |
100% | 100% |
🟢 testcase/entity |
100% | N/A |
🟢 tag/entity |
100% | N/A |
🟢 global/jwt |
100% | 75% |
🟢 tag/service |
100% | 50% |
🟢 tag/controller |
100% | N/A |
🟢 global/security |
100% | N/A |
🟢 queue/service |
100% | 66.7% |
🟢 global/aspect |
100% | 50% |
🟢 problemtagconnect/entity |
100% | N/A |
🟢 languageprofile/entity |
100% | N/A |
🟢 reviewschedule/controller |
100% | 100% |
🟢 global/globalExceptionHandler |
100% | 0% |
🟢 jpa/entity |
100% | N/A |
🟢 profile/service |
100% | 62.5% |
🟢 dashboard/repository |
100% | 50% |
🟢 member/entity |
100% | 50% |
🟢 queue/model |
100% | 50% |
🟢 pick/service |
100% | 87.5% |
🟢 member/service |
100% | 50% |
🟢 global/init |
100% | N/A |
🟢 profile/entity |
100% | 50% |
🟢 websocket/pubsub |
100% | 66.7% |
🟢 battleroom/entity |
100% | 0% |
🟢 global/enums |
100% | N/A |
🟢 global/rq |
100% | 0% |
🟢 submission/entity |
100% | N/A |
🟢 queue/store |
100% | 50% |
🟢 store/redis |
100% | 66.7% |
🟢 result/event |
100% | N/A |
🟢 battleparticipant/entity |
100% | N/A |
🟢 reviewschedule/entity |
100% | N/A |
🟢 reviewschedule/service |
100% | 60% |
🟢 result/service |
100% | 100% |
🟢 problem/controller |
100% | 50% |
🟢 member/controller |
100% | 50% |
🟢 global/exception |
100% | 0% |
🟢 battleroom/service |
100% | 0% |
🟢 problem/entity |
100% | 50% |
🟢 global/websocket |
100% | 75% |
🟢 global/async |
100% | N/A |
🟢 submission/entity |
100% | 50% |
🟢 problem/util |
100% | 100% |
🟢 global/rsData |
100% | 50% |
🟢 solve/entity |
100% | N/A |
🟢 dashboard/service |
96.4% | 50% |
🟢 problem/service |
91.7% | 50% |
🟢 global/redis |
87.5% | 50% |
🟢 pick/repository |
85.7% | 50% |
🟢 rating/policy |
85.7% | 83.3% |
🟡 dashboard/controller |
75% | 50% |
🔴 global/scheduler |
33.3% | 50% |
🔴 submission/controller |
0% | N/A |
🔴 run/controller |
0% | N/A |
🔴 submission/service |
0% | 0% |
🔴 submission/controller |
0% | N/A |
🔴 queue/controller |
0% | 0% |
🔴 battleroom/controller |
0% | N/A |
🔴 submission/service |
0% | N/A |
🔴 judge/event |
0% | N/A |
🔴 run/service |
0% | N/A |
🔴 run/controller |
0% | N/A |
🔴 auth/controller |
0% | 0% |
🔴 result/controller |
0% | N/A |
🔴 run/service |
0% | 0% |
🔴 solve/repository |
N/A | N/A |
🔴 profile/repository |
N/A | N/A |
🔴 tag/repository |
N/A | N/A |
🔴 translation/repository |
N/A | N/A |
🔴 languageprofile/repository |
N/A | N/A |
🔴 problem/repository |
N/A | N/A |
🔴 member/repository |
N/A | N/A |
🔴 battleparticipant/repository |
N/A | N/A |
🔴 submission/repository |
N/A | N/A |
🔴 reviewschedule/repository |
N/A | N/A |
🔴 submission/repository |
N/A | N/A |
🔴 translation/entity |
N/A | N/A |
🔴 battleroom/repository |
N/A | N/A |
🔴 testcase/repository |
N/A | N/A |
🔴 problemtagconnect/repository |
N/A | N/A |
🟢 80% 이상 🟡 50~79% 🔴 50% 미만
suyeonTech
approved these changes
Apr 26, 2026
dforce103
approved these changes
Apr 29, 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.
현재
BattleAcService.handleAc()에서 finishTime을LocalDateTime.now()로 기록한다.이 시각은 Judge0 결과를 polling으로 감지한 시각이므로, 아래 두 가지 노이즈가 포함된다:
결과적으로 "더 빨리 맞는 코드를 제출한 사람"이 아닌 "Judge0가 더 빨리 처리해준 사람"이 유리해질 수 있다.
목표: finishTime 기준을 Judge0 결과 감지 시각 → AC 제출 요청 시각(Submission.createdAt)으로 변경
변경 파일 목록
src/main/java/com/back/global/judge/BattleAcService.javaLocalDateTime.now()제거src/main/java/com/back/global/judge/JudgeService.javahandleAc()호출 시submission.getCreatedAt()전달src/test/java/com/back/global/judge/BattleAcServiceTest.javahandleAc()호출부 파라미터 추가src/test/java/com/back/global/judge/JudgeServiceTest.java상세 변경 계획
submission은 라인 78에서 이미 조회된 상태 → 추가 DB 쿼리 없음
테스트에서는 JPA Auditing이 동작하지 않으므로 LocalDateTime.now()를 직접 생성해서 전달
검증 방법