From d12dd179c2d1b3de08a5775e5472250160f739a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Thu, 30 Jan 2025 15:24:23 +0100 Subject: [PATCH] fix(core): subflow labels must not be overriden by parent flow ones --- .../io/kestra/core/runners/ExecutableUtils.java | 13 ++++++++++++- .../io/kestra/plugin/core/flow/FlowCaseTest.java | 11 +++++++---- core/src/test/resources/flows/valids/switch.yaml | 1 + core/src/test/resources/flows/valids/task-flow.yaml | 1 + 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/io/kestra/core/runners/ExecutableUtils.java b/core/src/main/java/io/kestra/core/runners/ExecutableUtils.java index f7f8d329cfb..054c038699a 100644 --- a/core/src/main/java/io/kestra/core/runners/ExecutableUtils.java +++ b/core/src/main/java/io/kestra/core/runners/ExecutableUtils.java @@ -15,6 +15,7 @@ import io.kestra.core.services.ExecutionService; import io.kestra.core.storages.Storage; import io.kestra.core.trace.TracerFactory; +import io.kestra.core.utils.ListUtils; import io.kestra.core.utils.MapUtils; import io.kestra.core.trace.propagation.ExecutionTextMapSetter; import io.opentelemetry.api.OpenTelemetry; @@ -153,7 +154,7 @@ public static > Optional> throw new IllegalStateException("Cannot execute an invalid flow: " + fwe.getException()); } - List