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

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 42de10591e NO-JIRA: improve cache effectiveness during CI runs
42de10591e is described below

commit 42de10591e1c1f72fd2d76aed11c1f152184c477
Author: Robbie Gemmell <[email protected]>
AuthorDate: Fri Nov 14 11:21:00 2025 +0000

    NO-JIRA: improve cache effectiveness during CI runs
    
    - Helps avoid downloads, reduces log verbosity and saves time/bw
      without actually disabling the useful transfer logs.
    - Stop the test jobs trying to save caches, they rarely can, just
      explicitly restore checks jobs caches as usually happens already,
      can then remove the cache cleanup from tests job.
    - Expand lower/non-release JDK checks to more fully mimmick the
      release profile steps, add some extra cache priming, so the checks
      job caches fully caters to both its own and the test jobs needs.
---
 .github/workflows/build.yml | 32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0368faaa4a..69d1a1d34f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -35,9 +35,10 @@ jobs:
         with:
           path: activemq-artemis
 
-      - name: Cache Maven Local Repo
+      # Cache is prepared by the 'checks' jobs below
+      - name: Restore Maven Local Repo Cache
         if: ${{ !startsWith(github.ref, 'refs/tags/') }}
-        uses: actions/cache@v4
+        uses: actions/cache/restore@v4
         with:
           path: |
             ~/.m2/repository/
@@ -58,12 +59,6 @@ jobs:
           cd activemq-artemis
           mvn -s .github/maven-settings.xml 
-Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull
 -Pfast-tests -Pcompatibility-tests install
 
-      - name: Clean Up Before Caching
-        run: |
-          rm -rf ~/.m2/repository/org/apache/activemq/tests
-          rm -rf ~/.m2/repository/org/apache/activemq/examples
-          if [ -d ~/.m2/repository/org/apache/activemq ]; then find 
~/.m2/repository/org/apache/activemq -name "*-SNAPSHOT" -type d -prune -exec rm 
-r '{}' \; ; fi
-
       - name: Archive Test Logs
         if: failure()
         uses: actions/upload-artifact@v4
@@ -78,7 +73,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        java: [ 17, 21, 25]
+        java: [ 17, 21, 25 ]
 
     steps:
       - uses: actions/checkout@v4
@@ -112,13 +107,13 @@ jobs:
         if: matrix.java == '25'
         run: |
           cd activemq-artemis
-          mvn -s .github/maven-settings.xml -DskipTests -Derrorprone -Pdev 
-Prelease -Dgpg.skip install
+          mvn -s .github/maven-settings.xml -DskipTests -Derrorprone -Pdev 
-Prelease -Dgpg.skip -Pcompatibility-tests -DskipCompatibilityTests install
 
       - name: Build Main (JDK <25)
         if: matrix.java != '25'
         run: |
           cd activemq-artemis
-          mvn -s .github/maven-settings.xml -DskipTests -Derrorprone -Pdev 
-Pjmh -Popenwire-tests -DskipActiveMQ5Tests install
+          mvn -s .github/maven-settings.xml -DskipTests -Derrorprone -Pdev 
-Pjmh -Popenwire-tests -DskipActiveMQ5Tests -Pcompatibility-tests 
-DskipCompatibilityTests -Dshade-plugin-create-sources=true install
 
       - name: Set Examples Version to Artemis Version
         run: |
@@ -139,6 +134,8 @@ jobs:
         run: |
           cd activemq-artemis-examples
           mvn -s ../activemq-artemis/.github/maven-settings.xml install 
-Pexamples,noRun
+          mvn -s ../activemq-artemis/.github/maven-settings.xml -f 
examples/features/standard/security-keycloak/pom.xml install -PnoRun
+          mvn -s ../activemq-artemis/.github/maven-settings.xml -f 
examples/features/sub-modules/pom.xml install -Prelease -Denforcer.skip
 
       - name: Javadoc Check (JDK25 / -Prelease)
         if: matrix.java == '25'
@@ -152,12 +149,23 @@ jobs:
           cd activemq-artemis
           mvn -s .github/maven-settings.xml javadoc:javadoc
 
-      - name: Website Content Check (JDK25 only / -Prelease)
+      - name: Website Content Check (JDK25 / -Prelease)
         if: matrix.java == '25'
         run: |
           cd activemq-artemis
           mvn -s .github/maven-settings.xml clean install -DskipTests 
-Prelease -am -pl "artemis-website"
 
+      - name: Website Content Check (JDK <25)
+        if: matrix.java != '25'
+        run: |
+          cd activemq-artemis
+          mvn -s .github/maven-settings.xml clean install -DskipTests 
-Prelease -Denforcer.skip -am -pl "artemis-website"
+
+      - name: Additional Cache Priming
+        run: |
+          cd activemq-artemis
+          mvn -s .github/maven-settings.xml clean verify -Prelease 
-Denforcer.skip -pl 
"artemis-unit-test-support,org.apache.activemq:artemis-junit-5"
+
       - name: Clean Up Before Caching
         run: |
           rm -rf ~/.m2/repository/org/apache/activemq/tests


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to