From 2b032d5728200eae835126915e41b5a8aff0c15e Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 17 Nov 2026 10:44:13 +0900 Subject: [PATCH] =?UTF-8?q?fix(tools):=20=EA=B4=80=EB=A0=A8=20=EC=8B=9C?= =?UTF-8?q?=ED=97=98=20=EC=B0=BE=EA=B8=B0=20=E2=80=94=20=EB=8F=84=EC=9A=B0?= =?UTF-8?q?=EB=AF=B8(helper=5F*)=EB=A5=BC=20=EA=B1=B0=EC=B9=9C=20=EA=B1=B0?= =?UTF-8?q?=EC=9A=B8=20=EC=8B=9C=ED=97=98=20=C2=B7=20=EB=A7=88=EC=8A=A4?= =?UTF-8?q?=ED=84=B0=20=EC=9E=90=EB=A3=8C=20json=20=EC=9D=80=20=ED=95=B5?= =?UTF-8?q?=EC=8B=AC=20=EC=8B=9C=ED=97=98=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TS 를 고치면 helper_*.cjs 를 거쳐 도는 거울 시험(test_802_1 등)이 안 걸리던 구멍 메움 - resources/master_data 의 json 을 고치면 0 개가 나오던 것 → 싱크 관문 핵심 시험 Co-Authored-By: Claude --- tools/related_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/related_tests.py b/tools/related_tests.py index 2e1783d18..eccd9167f 100644 --- a/tools/related_tests.py +++ b/tools/related_tests.py @@ -35,7 +35,15 @@ def related(files: list[str]) -> list[str]: own.add(p.name) elif len(p.stem) >= 6: # 짧은 이름(main · index)은 어디에나 나와 뺌 stems.add(p.stem) + # 도우미(helper_*.cjs 등)가 고친 파일을 부르면 그 도우미를 쓰는 시험도 — TS 거울 시험이 이 길로만 걸림 + for h in TESTS.glob("helper_*"): + if h.is_file() and any(s in h.read_text(encoding="utf-8", errors="replace") for s in stems): + stems.add(h.stem) hit = set(own) + # 마스터 자료(json)는 이름이 시험 글에 안 나옴 → 싱크 관문 핵심 시험으로 + if any(f.replace("\\", "/").startswith("resources/master_data/") and f.endswith(".json") for f in files): + core = (ROOT / "tools" / "sync_core_tests.txt").read_text(encoding="utf-8").split() + hit |= {pathlib.PurePosixPath(c).name for c in core if c.endswith(".py")} for t in sorted(TESTS.glob("test_*.py")): if t.name in hit: continue