From ca5f1cc2e3e7d96d205b43262e3512d987832ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Mon, 20 Nov 2023 17:16:37 +0100 Subject: [PATCH] Move cache extensions from root modules to lighten native build load --- .github/workflows/ci.yml | 2 +- .github/workflows/daily.yaml | 4 ++-- .github/workflows/quarkus-snapshot.yaml | 2 +- README.md | 1 + pom.xml | 18 ++++++++++++++---- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41b0d65a0..ec0e0aab5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: echo "Running modules: ${MODULES_ARG}" echo "MODULES_MAVEN_PARAM=[\" -pl ${MODULES_ARG} -Dall-modules\"]" >> $GITHUB_OUTPUT else - echo "MODULES_MAVEN_PARAM=[' -P root-modules,spring-modules,http-modules,test-tooling-modules', ' -P security-modules,sql-db-modules,messaging-modules,websockets-modules,monitoring-modules']" >> $GITHUB_OUTPUT + echo "MODULES_MAVEN_PARAM=[' -P root-modules,cache-modules,spring-modules,http-modules,test-tooling-modules', ' -P security-modules,sql-db-modules,messaging-modules,websockets-modules,monitoring-modules']" >> $GITHUB_OUTPUT fi outputs: MODULES_MAVEN_PARAM: ${{ steps.prepare-modules-mvn-param.outputs.MODULES_MAVEN_PARAM }} diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index 4071c1cb0..d09139faf 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -43,7 +43,7 @@ jobs: java: [ 11, 17 ] profiles: [ "root-modules,http-modules,security-modules,spring-modules", "sql-db-modules", - "messaging-modules,websockets-modules,monitoring-modules,test-tooling-modules"] + "messaging-modules,websockets-modules,monitoring-modules,cache-modules,test-tooling-modules"] steps: - uses: actions/checkout@v4 - name: Reclaim Disk Space @@ -93,7 +93,7 @@ jobs: java: [ 11 ] image: [ "ubi-quarkus-graalvmce-builder-image:jdk-17", "ubi-quarkus-mandrel-builder-image:23.0-java17" ] profiles: [ "root-modules", - "http-modules", + "http-modules,cache-modules", "security-modules,spring-modules", "sql-db-modules -pl env-info,sql-db/hibernate,sql-db/sql-app,sql-db/sql-app-compatibility,sql-db/multiple-pus,sql-db/panache-flyway,sql-db/hibernate-reactive", "sql-db-modules -pl env-info,sql-db/reactive-rest-data-panache,sql-db/vertx-sql,sql-db/reactive-vanilla,sql-db/hibernate-fulltext-search,sql-db/narayana-transactions", diff --git a/.github/workflows/quarkus-snapshot.yaml b/.github/workflows/quarkus-snapshot.yaml index 7e98430d6..f68385893 100644 --- a/.github/workflows/quarkus-snapshot.yaml +++ b/.github/workflows/quarkus-snapshot.yaml @@ -27,7 +27,7 @@ jobs: matrix: profiles: [ "root-modules-no-qute,monitoring-modules,spring-modules,test-tooling-modules", "http-modules", - "security-modules", + "security-modules,cache-modules", "sql-db-modules", "messaging-modules-no-kafka,websockets-modules"] diff --git a/README.md b/README.md index f02978071..d7d594899 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ The following subsections will introduce how to deploy and run the test suite in If you have a look the main `pom.xml` you will notice that there are several profiles or in other words the test suite is a maven monorepo that you can compile and verify at once or by topics. Let's review the main profiles: * root-modules: talk about Quarkus "core stuff" as configuration or properties. Is a basic stuff that should work as a pre-requisite to other modules. +* cache-modules: cover Quarkus application data caching * http-modules: talk about HTTP extensions and no-application endpoints like `/q/health` * security-modules: cover all security stuff like OAuth, JWT, OpenId, Keycloak etc * messaging-modules: is focus on brokers as Kafka or Artemis-AMQP diff --git a/pom.xml b/pom.xml index 251b9c658..6fb9fde66 100644 --- a/pom.xml +++ b/pom.xml @@ -410,11 +410,9 @@ lifecycle-application external-applications scheduling/quartz - infinispan-client super-size/many-extensions quarkus-cli logging/jboss - cache/caffeine qute/multimodule qute/synchronous qute/reactive @@ -436,14 +434,26 @@ lifecycle-application external-applications scheduling/quartz - infinispan-client super-size/many-extensions quarkus-cli logging/jboss - cache/caffeine build-time-analytics + + cache-modules + + true + + all-modules + + + + env-info + cache/caffeine + infinispan-client + + http-modules