From 29288b0370b68a15c97f5d26ece56fbb11dd57a5 Mon Sep 17 00:00:00 2001 From: Incido Developer Date: Mon, 5 Oct 2026 19:48:54 +1300 Subject: [PATCH] =?UTF-8?q?test(m2):=20make=20:core:data-jvm:smoke=20idemp?= =?UTF-8?q?otent=20=E2=80=94=20wipe=20its=20probe=20library=20in=20doFirst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The probe asserts exact note counts; running it twice in a row against the surviving build/data-jvm-smoke directory failed on count assertions (found while verifying m2.5). The task now cleans the directory like backupSmoke does. --- core/data-jvm/build.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/data-jvm/build.gradle.kts b/core/data-jvm/build.gradle.kts index 6c0f6e2..5da54ef 100644 --- a/core/data-jvm/build.gradle.kts +++ b/core/data-jvm/build.gradle.kts @@ -88,7 +88,11 @@ tasks.register("smoke") { description = "Opens a JVM ObjectBox store through the shared data layer." classpath = sourceSets["main"].runtimeClasspath mainClass.set("org.incido.data.jvm.StoreSmokeKt") - args = listOf(layout.buildDirectory.dir("data-jvm-smoke").get().asFile.absolutePath) + val smokeDir = layout.buildDirectory.dir("data-jvm-smoke").get().asFile + args = listOf(smokeDir.absolutePath) + // The probe asserts exact note counts, so it needs a virgin library — + // wipe the directory here to keep `smoke` idempotent across runs. + doFirst { smokeDir.deleteRecursively() } } /**