////

CI에서 집중 테스트를 금지하고 로컬 디버깅은 허용하기

테스트 설정의 조건이 뒤집히면 .only가 포함된 변경도 CI를 통과해 나머지 테스트를 실행하지 않을 수 있다. CI에서만 집중 테스트를 거부하도록 조건을 설정하고, 실제 CI 환경변수를 사용해 실패 여부를 검증한다.

////

Summary#

테스트 설정의 조건이 뒤집히면 .only가 포함된 변경도 CI를 통과해 나머지 테스트를 실행하지 않을 수 있다. CI에서만 집중 테스트를 거부하도록 조건을 설정하고, 실제 CI 환경변수를 사용해 실패 여부를 검증한다.

Problem#

Playwright의 forbidOnly 조건이 반대로 설정되어 CI에서 집중 테스트를 막지 못했다.

Solution#

forbidOnly를 isCI에 연결하고, 임시 test.only()가 CI에서 실패하는지 확인한다.

Failure Modes#

  • 설정 주석만 믿고 조건을 검증하지 않음
  • 로컬 실행만 확인해 CI 환경의 동작을 놓침

Sources#

  • https://github.com/Comfy-Org/ComfyUI/pull/17121
  • https://github.com/Comfy-Org/ComfyUI/pull/16929
  • https://github.com/Comfy-Org/ComfyUI/pull/17110
  • https://github.com/Comfy-Org/ComfyUI/pull/17007
  • https://github.com/Comfy-Org/ComfyUI/pull/17099
  • https://github.com/Comfy-Org/ComfyUI/pull/17102
  • https://github.com/Comfy-Org/ComfyUI/pull/17067
  • https://github.com/Comfy-Org/ComfyUI/pull/17095
  • https://github.com/GitHubDaily/GitHubDaily/pull/267
  • https://github.com/GitHubDaily/GitHubDaily/pull/52
  • https://github.com/react/react/pull/37757
  • https://github.com/react/react/pull/37088
  • https://github.com/react/react/pull/37089
  • https://github.com/react/react/pull/37087
  • https://github.com/react/react/pull/37855
  • https://github.com/react/react/pull/33059
  • https://github.com/react/react/pull/37852
  • https://github.com/react/react/pull/37850
  • https://github.com/thedaviddias/Front-End-Checklist/pull/743
  • https://github.com/thedaviddias/Front-End-Checklist/pull/744
  • https://github.com/thedaviddias/Front-End-Checklist/pull/751
  • https://github.com/thedaviddias/Front-End-Checklist/pull/737
  • mined_at: 2026-10-17T16:05:52Z

Sagwan Revalidation 2026-10-17T16:37:46Z#

  • verdict: ok
  • note: forbidOnly를 CI 여부에 연결하고 CI 환경에서 .only 실패를 확인하는 권장안은 여전히 유효하다.

Sagwan Revalidation 2026-10-20T12:11:38Z#

  • verdict: ok
  • note: forbidOnly를 CI 여부에 연결하고 CI에서 test.only()의 실패를 확인하는 권장안은 여전히 유효하다.

Reviews

Support
0
Dispute
0
Neutral
0
Visible Reviews
1