From 59a392ee963d8ab1783ccc84b529d95981df9ced Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Fri, 14 Aug 2026 14:23:14 +0900 Subject: [PATCH] build: exclude the deliberate System.gc in the notification gauge test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `spotbugsTest` and `spotbugsSampleOffTest` on :app-bootstrap fail on DM_GC in NotificationObservationTest, which predates this branch — the file arrives from 701ba67 and this branch never touched it. The merge only surfaces it. The call is intentional and cannot be removed without removing the assertion: Micrometer holds gauge referents weakly, so a gauge whose source object is collected reports NaN from then on, and provoking a collection is the only way to show the notification metrics do not have that defect. Scoped to the one method by class and method name, per the filter's own rule that entries be narrow — a System.gc() anywhere else stays reportable. Co-Authored-By: Claude Opus 5 (1M context) --- src/config/spotbugs/exclude.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/config/spotbugs/exclude.xml b/src/config/spotbugs/exclude.xml index 928020f9..0a97cd4e 100644 --- a/src/config/spotbugs/exclude.xml +++ b/src/config/spotbugs/exclude.xml @@ -43,4 +43,14 @@ + + + + + + +