You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by sn...@apache.org on 2026/03/23 16:28:09 UTC

(polaris) branch main updated: Set Quarkus config profile `it` explicitly (#4039)

This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 2bf8dbb792 Set Quarkus config profile `it` explicitly (#4039)
2bf8dbb792 is described below

commit 2bf8dbb792067113f5dad0d5202b3c1e63958f17
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Mon Mar 23 17:28:05 2026 +0100

    Set Quarkus config profile `it` explicitly (#4039)
    
    Integration tests using Quarkus versions before 3.32.4 somehow implicitly got the `quarkus.profile=it` setting. This seemed to be changed in 3.32.4, so that integration tests start with the `prod` (= default) profile, cauting integration tests to fail, because the necessary configurations are just not there.
    
    Looking at the [Quarkus config reference](https://quarkus.io/guides/config-reference#default-profiles), it seems that there is no `it` profile.
    
    Explicitly setting the config profile to `it`, although not sure why that changed in 3.32.4, seems safer anyways.
---
 build-logic/src/main/kotlin/polaris-runtime.gradle.kts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/build-logic/src/main/kotlin/polaris-runtime.gradle.kts b/build-logic/src/main/kotlin/polaris-runtime.gradle.kts
index 71c2c3cdc5..741c4ebfa9 100644
--- a/build-logic/src/main/kotlin/polaris-runtime.gradle.kts
+++ b/build-logic/src/main/kotlin/polaris-runtime.gradle.kts
@@ -43,6 +43,8 @@ testing {
             // is not smart enough :(
             systemProperty("build.output.directory", layout.buildDirectory.asFile.get())
             dependsOn(tasks.named("quarkusBuild"))
+            // Set the 'it' profile explicitly
+            jvmArgumentProviders.add(CommandLineArgumentProvider { listOf("-Dquarkus.profile=it") })
           }
         }
         tasks.named(sources.compileJavaTaskName).configure {