From 0cf762433aca0b8ac6d1f8b088e720db4c6bd4ed Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:21:00 +0200 Subject: [PATCH 1/2] [Fix #2070] Synchronizing TestEventPublisher (#2071) --- .../java/org/kie/kogito/jobs/embedded/TestEventPublisher.java | 4 +++- .../src/test/resources/application.properties | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java index f077205d54..bdf42f1719 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/java/org/kie/kogito/jobs/embedded/TestEventPublisher.java @@ -20,6 +20,7 @@ import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.List; import java.util.concurrent.CountDownLatch; @@ -35,7 +36,7 @@ public class TestEventPublisher implements EventPublisher { private CountDownLatch latch; public List> getEvents() { - return events; + return Collections.unmodifiableList(events); } public TestEventPublisher() { @@ -56,6 +57,7 @@ public void publish(Collection> events) { public void setLatch(CountDownLatch latch) { this.latch = latch; + events = new ArrayList<>(); } } diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties new file mode 100644 index 0000000000..b6eb3afa2b --- /dev/null +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties @@ -0,0 +1 @@ +quarkus.devservices.enabled=false \ No newline at end of file From afa373662d90786bf7873cf581e769df82acfefc Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Mon, 8 Jul 2024 07:48:45 -0400 Subject: [PATCH 2/2] [incubator-kie-issues#1349] Enforce reproducible build (#2075) Co-authored-by: Gabriele-Cardosi # Conflicts: # .github/workflows/pr-kogito-apps.yml --- pom.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/pom.xml b/pom.xml index f7c7f2d327..554fc18758 100644 --- a/pom.xml +++ b/pom.xml @@ -155,5 +155,41 @@ jitexecutor-native + + reproducible-build + + + reproducible + + + + + + org.apache.maven.plugins + maven-artifact-plugin + + + check-buildplan + + check-buildplan + + + validate + + + compare + + compare + + + install + + + + + +