codedang icon indicating copy to clipboard operation
codedang copied to clipboard

fix(iris): handle testcase exec errors

Open jspark2000 opened this issue 1 year ago • 5 comments

Description

Close #1939

Additional context

sandbox testcase 실행 결과가 success가 아닐 경우 발생한 오류 코드와 내용을 포함하도록 수정합니다


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.

jspark2000 avatar Aug 09 '24 13:08 jspark2000

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
codedang ✅ Ready (Inspect) Visit Preview Aug 18, 2024 7:49am

vercel[bot] avatar Aug 09 '24 13:08 vercel[bot]

컴파일 과정에서 input 없이 실행만 시켜보기 때문에 파이썬의 경우 문법 오류가 있어도 그냥 통과되는 걸로 확인됬습니다

jspark2000 avatar Aug 09 '24 14:08 jspark2000

컴파일 과정에서 input 없이 실행만 시켜보기 때문에

파이썬의 경우 문법 오류가 있어도 그냥 통과되는 걸로 확인됬습니다

컴파일 과정에서 실행 해볼때, 문법 오류로 인한 exit code 등이 조회되지 않는 건가요? input 여부와 상관없는 오류 말입니다. 가령, Undefined Variable NameError 같은 에러처럼요.

lshtar13 avatar Aug 09 '24 14:08 lshtar13

컴파일 과정에서 input 없이 실행만 시켜보기 때문에

파이썬의 경우 문법 오류가 있어도 그냥 통과되는 걸로 확인됬습니다

컴파일 과정에서 실행 해볼때, 문법 오류로 인한 exit code 등이 조회되지 않는 건가요? input 여부와 상관없는 오류 말입니다. 가령, Undefined Variable NameError 같은 에러처럼요.

아예 실행조차할 수 없는 코드…

lshtar13 avatar Aug 09 '24 14:08 lshtar13

컴파일 과정에서 input 없이 실행만 시켜보기 때문에 파이썬의 경우 문법 오류가 있어도 그냥 통과되는 걸로 확인됬습니다

컴파일 과정에서 실행 해볼때, 문법 오류로 인한 exit code 등이 조회되지 않는 건가요? input 여부와 상관없는 오류 말입니다. 가령, Undefined Variable NameError 같은 에러처럼요.

아예 실행조차할 수 없는 코드…

sandbox 로그 찍어봤을 때 C나 Cpp는 컴파일 오류로 나오는데 파이썬의 경우는 왠지는 모르겠지만 정상 실행된걸로 나옵니다

jspark2000 avatar Aug 11 '24 04:08 jspark2000