fix(iris): handle contain-hidden-testcases property on judge request …
Description
"Evaluate with sample testcases included" 옵션이 비활성화된 contest에 submission 요청 시
채점되지 않아야할 public testcase 가 같이 채점되어 간헐적으로 ServerError로 처리되는 문제를 해결합니다.
testcase 패키지내 GetTestcase 메서드에서 새로 정의한 TestcaseFilterCode enum 값에 따라 테스트케이스를 필터링한 후 리턴하도록 수정합니다.
| Value | Symbol | Description |
|---|---|---|
| 0 | ALL | 모든 테스트케이스 채점 |
| 1 | PUBLIC_ONLY | 공개 테스트케이스에 대해서만 채점 |
| 2 | HIDDEN_ONLY | 히든 테스트케이스에 대해서만 채점 |
type TestcaseFilterCode int8
const (
ALL TestcaseFilterCode = 0 + iota
PUBLIC_ONLY
HIDDEN_ONLY
)
Before submitting the PR, please make sure you do the following
- [x] Read the Contributing Guidelines
- [x] Read the Contributing Guidelines and follow the Commit Convention
- [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g.
fixes #123). - [x] Ideally, include relevant tests that fail without this PR but pass with it.
The preview deployment is ready. 🟢
Open Preview | Open Build Logs
Last updated at: 2025-08-26 09:17:53 CET
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 81b2c96dd9640321fea6ac08321b52639ec8867d
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: eb4d795401672912404ac4e4ebb8b57edb854db5
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 531f1ca63c76e45bee95b80f81f798e81d364f2a
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 531f1ca63c76e45bee95b80f81f798e81d364f2a
Health Status: Healthy
❗ Syncing Preview App Failed
Application: frontend
Revision: <no value>
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 299933cbce5c1007155e6ac09b937097098008f7
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 8e8ba493d90a37c99d8dfac15c9d800155d6fc16
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: f55e139b1619100938941cd51bef0292660ae4e0
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 448fd86011c3672dbbfeb887233940c5d7f7b1cf
Health Status: Healthy
✅ Syncing Preview App Succeeded
Application: frontend
Revision: 9b3480a84f4145408ad8801a6545531cf3ef220b
Health Status: Healthy