C.W.K.
Stream
Lesson 07 of 14 · published

Continue on error

~8 min · continue-on-error, soft-fail

Level 0Apprentice
0 XP0/101 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

Step 을 job 깨지 않고 soft-fail 시키기

기본적으로 실패 step 은 job 실패. continue-on-error: true 가 step (또는 job, 또는 matrix cell) 을 soft 로 표시 — 둘러싼 범위 무너뜨리지 않고 실패 가능.

현명하게 사용. 나쁘게 쓰면 regression 숨김.

합당한 용도

  • 실험 matrix cell — PR 안 막는 Python 3.13-dev cell.
  • Lint / 권고 check — 표시는 원하지만 아직 gate 는 아님.
  • 정리 step — best-effort 시도지만 정리할 게 없어도 job 실패시키지 말아야 할 때.
  • Flaky third-party 서비스 coverage 업로드 (Codecov 가 유명).

안티 패턴

  • Flaky test 를 고치는 대신 continue-on-error 로 감싸기.
  • Deploy step 에 사용.
  • 보안 gate (lint, type-check, scan) 에 사용.

Code

실험 matrix cell soft-fail·yaml
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: ['3.11', '3.12']
        include:
          - python: '3.13-dev'
            experimental: true
    continue-on-error: ${{ matrix.experimental == true }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with: { python-version: '${{ matrix.python }}' }
      - run: pytest -q

External links

Exercise

Workflow 의 continue-on-error 찾아. 각각 결정: 졸업 (밑 이슈 고쳐짐) 또는 step 완전 삭제 (더 이상 유용 안 함). Soft-fail 연옥에 두지 마.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.