From 8b205871a23fd5cca81a3925c4f61297826ba005 Mon Sep 17 00:00:00 2001 From: donoghuc Date: Tue, 21 Oct 2025 13:43:41 -0700 Subject: [PATCH] Run unit tests with full set of gems Previously unit tests were run with a subset of gems. This masked issues where conflicts (specifically with loading jar-dependencies) with gem load/activation were causing issues. This updates the tests to install the full gem set for unit tests. The added test time is minimal (less than a minute) and should give us a more consistent gem environment for testing. --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 27409b0cb0b..c26703a7011 100644 --- a/build.gradle +++ b/build.gradle @@ -416,6 +416,7 @@ project(":logstash-core") { ["rubyTests", "test"].each { tsk -> tasks.getByPath(":logstash-core:" + tsk).configure { dependsOn copyPluginTestAlias + dependsOn installDefaultGems dependsOn installDevelopmentGems } } @@ -932,6 +933,7 @@ if (System.getenv('OSS') != 'true') { project(":logstash-xpack") { ["rubyTests", "rubyIntegrationTests", "test"].each { tsk -> tasks.getByPath(":logstash-xpack:" + tsk).configure { + dependsOn installDefaultGems dependsOn installDevelopmentGems } }