From b9866407cabe9d9716826177eeaeef3727f6a315 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sun, 8 Nov 2026 21:55:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(notification):=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EB=AC=B8=EC=84=9C=EC=99=80=20NOTIF-ADR=EC=9D=84=20test?= =?UTF-8?q?=EC=9D=98=20=EC=9E=85=EB=A0=A5=EC=9C=BC=EB=A1=9C=20=EC=84=A0?= =?UTF-8?q?=EC=96=B8=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NotificationReleaseGateTest(알림 leaf의 `test`)는 docs/notification의 문서와 docs/adr의 NOTIF-ADR 넷이 있는지 본다. 그 파일들이 test 태스크의 입력이 아니어서, ADR을 옮기거나 지워도 Gradle이 태스크를 up-to-date나 캐시로 끝내고 시험이 다시 돌지 않았다. 지운 notification-platform.yml의 경로 필터가 docs/adr/로 옮긴 ADR을 못 보던 것과 같은 빈틈이다. 두 경로를 test의 입력으로 선언한다. 이 시험은 `ci` → `prCheck` 안에서 경로 필터 없이 매 PR 돈다(--dry-run 계획으로 확인). 검증: desktop PR 단계. --- src/adapter/outbound/notification/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/adapter/outbound/notification/build.gradle b/src/adapter/outbound/notification/build.gradle index b252150f..5c06ddfd 100644 --- a/src/adapter/outbound/notification/build.gradle +++ b/src/adapter/outbound/notification/build.gradle @@ -108,6 +108,18 @@ apiSurface { ] } +// NotificationReleaseGateTest (pull-request `test`) requires the notification documents and the +// NOTIF-ADR records to exist. They are inputs of `test`, or a moved or deleted ADR would leave the +// task up to date and its absence unseen — the path filter of the workflow that used to run the +// notification tests had the same blind spot once the ADRs moved to docs/adr/. +tasks.named('test') { + inputs.dir(rootProject.file('../docs/notification')).withPropertyName('notificationDocuments') + .withPathSensitivity(PathSensitivity.RELATIVE) + inputs.files(fileTree(rootProject.file('../docs/adr')) { include 'NOTIF-ADR-*' }) + .withPropertyName('notificationAdrs') + .withPathSensitivity(PathSensitivity.RELATIVE) +} + // NotificationEvidenceVerifierTest's repository case holds docs/notification/evidence-manifest.json, // the support matrix it grades and the evidence files it names to each other. A comparison with // repository documents, so it runs in this leaf's `mainCheck`, not in the pull-request `test`