From 5d7d4f964893f20308292c10076c70c970a975ed Mon Sep 17 00:00:00 2001 From: piexel Date: Tue, 10 Nov 2026 01:36:48 +0100 Subject: [PATCH] Fix what the combined gate found in the upstream ports The NMS adapter compiles against GenerationSessionException, which now carries the API's EngineFailure marker, so it needs the API on its compile path. moddedTest reads sources the NMS convert task rewrites and has to be ordered after it. The lifecycle contract test follows the generateNoise body into generateNoiseChunk. --- .../core/runtime/BukkitEngineLifecycleContractTest.java | 2 +- build.gradle | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/adapters/bukkit/plugin/src/test/java/art/arcane/iris/core/runtime/BukkitEngineLifecycleContractTest.java b/adapters/bukkit/plugin/src/test/java/art/arcane/iris/core/runtime/BukkitEngineLifecycleContractTest.java index 357fb2b15..1dc61056b 100644 --- a/adapters/bukkit/plugin/src/test/java/art/arcane/iris/core/runtime/BukkitEngineLifecycleContractTest.java +++ b/adapters/bukkit/plugin/src/test/java/art/arcane/iris/core/runtime/BukkitEngineLifecycleContractTest.java @@ -32,7 +32,7 @@ public class BukkitEngineLifecycleContractTest { assertTrue(baseHeight.contains("IrisContext.open(currentEngine, lease.sessionId(), null)")); assertTrue(baseHeight.contains("catch (GenerationSessionException e)")); - String generation = method(source, "public void generateNoise("); + String generation = method(source, "private void generateNoiseChunk("); assertTrue(generation.contains("throw new IllegalStateException")); assertTrue(generation.contains("engine.acquireGenerationLease(\"bukkit_terrain_stage\")")); assertTrue(generation.contains("IrisContext.open(engine, lease.sessionId(), null)")); diff --git a/build.gradle b/build.gradle index 7159dd626..a2559ebb0 100644 --- a/build.gradle +++ b/build.gradle @@ -109,6 +109,9 @@ nmsBindings.each { key, value -> dependencies { compileOnly(project(':core')) + // GenerationSessionException carries the API's EngineFailure marker; core shades the API. + compileOnly('com.volmit:iris-api') + testCompileOnly('com.volmit:iris-api') compileOnly(volmLibCoordinate) { transitive = false } @@ -550,6 +553,9 @@ tasks.register('moddedTest', Exec) { mustRunAfter(tasks.named('jar')) mustRunAfter(project(':core').tasks.named('check')) mustRunAfter(project(':spi').tasks.named('jar')) + // The NMS convert tasks rewrite adapters/minecraft-common/src, which is one of the shared inputs; + // under `check` the jar task that otherwise orders them first is not in the graph. + mustRunAfter(subprojects.collect { Project nmsCandidate -> nmsCandidate.tasks.matching { it.name == 'convert' } }) } tasks.named('fabricJar').configure {