Skip to content

Commit cc8ed5a

Browse files
committed
개선: CI Full 취소 정책 분리와 per-test 타임아웃으로 완주 보장
실측 2건이 근거다. ① 연속 push·머지가 35분짜리 full run 을 반복 취소해 완주 그린이 한 번도 안 나오는 구간이 생겼다(최근 push 45% 취소). CI Full 은 cancel-in-progress: false 로 완주시키고 대기열만 최신 교체, 빠른 신호용 ci-fast 는 취소 유지. ② analysis 통합 테스트 하나가 러너 네트워크 지연으로 42분을 서서 job 전체가 60분 타임아웃났다. test-full 에 pytest-timeout --timeout=300 을 걸어 스톨을 테스트 단위 5분 실패로 국소화(정상 최장 수십 초라 검출 약화 없음). audit-self 30 gates 무결성 통과. 후속 설계는 이슈로 분리: #103 그래프 선택 실행, #104 부분 오토머지, #105 스톨 근본 원인.
1 parent 530acf6 commit cc8ed5a

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎.github/workflows/ci-full.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
workflow_dispatch: {}
1010
workflow_call: {}
1111

12+
# cancel-in-progress: false = 진행 중 run 은 완주하고, 대기열의 낡은 run 만 최신으로
13+
# 교체된다(GitHub concurrency 기본 동작). 실측(2026-08-03~04): 연속 push·머지가 35분짜리
14+
# full run 을 반복 취소해 "완주 그린" 이 한 번도 안 나오는 구간이 생겼다. 취소는 빠른
15+
# 신호용 ci-fast 만 유지한다(그쪽은 최신 head 신호가 목적이라 취소가 맞다).
1216
concurrency:
1317
group: ci-full-${{ github.ref }}
14-
cancel-in-progress: true
18+
cancel-in-progress: false
1519

1620
jobs:
1721
gate:

‎tests/run.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,19 @@ class Gate:
376376
matrix_param="python",
377377
# networkx: tests/architecture/test_cycleScan.py 와 test_no_cycles.py 가
378378
# cycleScan._findCycles 를 통해 요구한다.
379-
deps=(*PYTEST_PARALLEL, *DEV_SCHEMA_SNAPSHOT, *MCP_PIN, "networkx"),
379+
deps=(*PYTEST_PARALLEL, *DEV_SCHEMA_SNAPSHOT, *MCP_PIN, "networkx", "pytest-timeout"),
380380
install_pkg="non-editable",
381381
env={
382382
"DARTLAB_DATA_DIR": "${{ github.workspace }}/tests/fixtures",
383383
"PYTEST_MEMORY_LIMIT_MB": "1900",
384384
"DARTLAB_TEST_LOCKED": "1",
385385
},
386+
# --timeout=300: 테스트 하나가 서면 job 전체(60분)가 아니라 그 테스트만 5분에
387+
# 죽는다. 실측(2026-08-04): analysis 통합 테스트 하나가 러너 네트워크 지연으로
388+
# 42분을 서서 job 이 타임아웃 취소됐다. test-full 정상 테스트 최장은 수십 초라
389+
# 300초는 검출 약화 없는 상한이다.
386390
cmd=(
387-
"pytest tests/ -n 2 --dist loadfile --tb=short "
391+
"pytest tests/ -n 2 --dist loadfile --tb=short --timeout=300 "
388392
"-m 'not requires_data and not heavy and not realData and not freshInstall' "
389393
"--ignore=tests/_attempts "
390394
"--ignore=tests/_fixtures/test_analysis_real.py "

0 commit comments

Comments
 (0)