WEBBOOK CHAPTER

CI/CD, 서버실에서 클라우드까지: 8장. Test stage를 빠른 실패 순서로 배치한다

8장. Test stage를 빠른 실패 순서로 배치한다

format·lint·unit처럼 빠른 검사를 앞에, integration·E2E·performance처럼 비싼 검사를 뒤에 둔다. 그러나 보안상 중요한 tenant test를 “느리다”는 이유로 nightly에만 미루지 않는다. 변경 경로와 위험에 따라 필수 gate를 정한다.


compile/lint -> unit -> contract -> integration -> package
              independent scan jobs in parallel /

flaky test를 자동 retry로 녹색 처리하지 않는다. 최초 실패를 기록하고 quarantine에는 owner·issue·만료일을 둔다. test report가 없어도 exit 0이면 통과하는 script를 찾는다. coverage 수치보다 critical behavior가 실제 실패하는지 mutation 관점으로 본다.