Summary#
Replace shell-string scripting with typed runtime APIs and edge-case regression tests
Problem#
Many script bugs come from process invocation details and boundary inputs rather than core logic, such as malformed shell commands, wrong spawn argument shapes, trailing format tokens, abort behavior, or dimension rounding mismatches.
Solution#
Use typed runtime APIs instead of shelling out when possible, pass executables and argv as separate values, check process results explicitly, and add regression tests for malformed, aborted, or boundary-size inputs.
Failure Modes#
- Cleanup silently fails because an invalid shell option or ignored return status leaves stale artifacts behind.
- A command like xvfb start is passed as one executable string and never launches correctly.
- Formatting code turns a trailing percent sign into a bogus token such as %undefined.
- Rounding differences on non-multiple dimensions cause tensor shape mismatches.
Sources#
- https://github.com/Comfy-Org/ComfyUI/pull/14616
- https://github.com/Comfy-Org/ComfyUI/pull/14298
- https://github.com/Comfy-Org/ComfyUI/pull/14136
- https://github.com/Comfy-Org/ComfyUI/pull/14614
- https://github.com/Comfy-Org/ComfyUI/pull/14612
- https://github.com/Comfy-Org/ComfyUI/pull/14613
- https://github.com/Comfy-Org/ComfyUI/pull/14611
- https://github.com/Comfy-Org/ComfyUI/pull/14589
- https://github.com/Comfy-Org/ComfyUI/pull/14597
- https://github.com/Comfy-Org/ComfyUI/pull/14588
- https://github.com/GitHubDaily/GitHubDaily/pull/267
- https://github.com/GitHubDaily/GitHubDaily/pull/52
- https://github.com/fastapi/full-stack-fastapi-template/pull/2349
- https://github.com/fastapi/full-stack-fastapi-template/pull/2348
- https://github.com/fastapi/full-stack-fastapi-template/pull/2347
- https://github.com/fastapi/full-stack-fastapi-template/pull/2345
- https://github.com/fastapi/full-stack-fastapi-template/pull/2317
- https://github.com/fastapi/full-stack-fastapi-template/pull/2337
- https://github.com/fastapi/full-stack-fastapi-template/pull/2338
- https://github.com/fastapi/full-stack-fastapi-template/pull/2340
- https://github.com/fastapi/full-stack-fastapi-template/pull/2332
- https://github.com/fastapi/full-stack-fastapi-template/pull/2336
- https://github.com/react/react/pull/36871
- https://github.com/react/react/pull/36859
- https://github.com/react/react/pull/36860
- https://github.com/react/react/pull/36862
- https://github.com/react/react/pull/36873
- https://github.com/react/react/pull/36835
- https://github.com/react/react/pull/36852
- https://github.com/thedaviddias/Front-End-Checklist/pull/664
- https://github.com/thedaviddias/Front-End-Checklist/pull/680
- mined_at: 2026-06-25T12:47:08Z
Sagwan Revalidation 2026-06-25T12:59:59Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 현재 실무에도 유효해 변경 불필요
Sagwan Revalidation 2026-06-26T14:51:49Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 여전히 최신 practice와 부합함
Sagwan Revalidation 2026-06-27T18:04:30Z#
- verdict:
ok - note: typed API와 argv 분리, 경계 회귀 테스트 권장은 여전히 유효함
Sagwan Revalidation 2026-06-28T18:10:47Z#
- verdict:
ok - note: 일반적 권장안과 사례가 최신 practice와 충돌하지 않아 재사용 가능
Sagwan Revalidation 2026-06-29T19:05:06Z#
- verdict:
ok - note: typed API·argv 분리·회귀테스트 권장은 여전히 최신 관행이다.
Sagwan Revalidation 2026-07-01T00:42:23Z#
- verdict:
ok - note: 일반 원칙과 예시가 최신 practice와 맞고 재사용에 문제 없음
Sagwan Revalidation 2026-07-02T09:19:11Z#
- verdict:
ok - note: 권장안과 실패 사례가 여전히 일반적 모범 사례와 부합한다.
Sagwan Revalidation 2026-07-03T22:57:39Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 최신 관행과 맞아 재사용 가능함
Sagwan Revalidation 2026-07-05T01:43:35Z#
- verdict:
ok - note: typed API·argv 분리·회귀테스트 권장은 여전히 최신 관행임
Sagwan Revalidation 2026-07-06T08:58:24Z#
- verdict:
ok - note: 전날 검증 이후 변동 가능성 낮고 권장안은 현재 practice와 부합함
Sagwan Revalidation 2026-07-07T14:43:32Z#
- verdict:
ok - note: 일반적 권장안과 사례가 여전히 최신 practice와 부합함
Sagwan Revalidation 2026-07-08T21:40:06Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 여전히 유효하며 갱신 필요가 낮음
Sagwan Revalidation 2026-07-11T02:21:24Z#
- verdict:
ok - note: 최근 검증 이후 변동 여지 작고 권장안은 여전히 표준 practice다.
Sagwan Revalidation 2026-07-12T20:25:49Z#
- verdict:
ok - note: typed API·argv 분리·경계 회귀테스트 권장은 여전히 유효함
Sagwan Revalidation 2026-07-14T17:36:40Z#
- verdict:
ok - note: 일반적 권장안과 사례 중심 내용이라 최근 관행과 충돌 없음
Sagwan Revalidation 2026-07-16T17:51:32Z#
- verdict:
ok - note: typed API와 argv 분리, 경계 회귀 테스트 권장은 여전히 유효함
Sagwan Revalidation 2026-07-18T19:17:40Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 현재 practice와도 일치해 변경 불필요
Sagwan Revalidation 2026-07-20T20:28:11Z#
- verdict:
ok - note: 일반적 권장안과 실패 사례가 최신 관행과 충돌하지 않아 재사용 가능