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

paulk-asert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1380ed66bb minor refactor: run jmh tests also daily
1380ed66bb is described below

commit 1380ed66bb8f94dc800d7ffdcbd760aa36dae784
Author: Paul King <[email protected]>
AuthorDate: Wed May 6 10:43:51 2026 +1000

    minor refactor: run jmh tests also daily
---
 .github/workflows/groovy-jmh-classic.yml | 32 +++++++++++++++++++++++++++++---
 .github/workflows/groovy-jmh-daily.yml   | 26 ++++++++++++++------------
 .github/workflows/groovy-jmh.yml         | 32 +++++++++++++++++++++++++++++---
 3 files changed, 72 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/groovy-jmh-classic.yml 
b/.github/workflows/groovy-jmh-classic.yml
index 22230d92f3..ff351593b8 100644
--- a/.github/workflows/groovy-jmh-classic.yml
+++ b/.github/workflows/groovy-jmh-classic.yml
@@ -19,6 +19,8 @@ on: [push, pull_request]
 
 permissions:
   contents: read
+  pull-requests: write
+  issues: write
 
 jobs:
   test:
@@ -47,12 +49,36 @@ jobs:
           check-latest: true
       - uses: 
gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
       - name: JMH (${{ matrix.suite }} classic)
-        run: ./gradlew perf:jmh -PbenchInclude=${{ matrix.pattern }} 
-Pindy=false
+        run: ./gradlew perf:jmh -PbenchInclude=${{ matrix.pattern }} 
-Pindy=false -PjmhResultFormat=JSON
         timeout-minutes: 60
       - name: Rename JMH result file
         run: |
-          mv subprojects/performance/build/results/jmh/results.txt \
-             subprojects/performance/build/results/jmh/results-${{ 
matrix.suite }}.txt
+          mv subprojects/performance/build/results/jmh/results.json \
+             subprojects/performance/build/results/jmh/results-${{ 
matrix.suite }}.json
+
+      # Temporarily disabled pending ASF approval of the 
benchmark-action/github-action-benchmark third-party action.
+      # Re-enable by uncommenting the two steps below once the action is on 
the approved list.
+      # - name: Fetch historical baseline
+      #   run: |
+      #     URL="https://apache.github.io/groovy/dev/bench/jmh/${{ 
matrix.suite }}/classic/data.js"
+      #     if curl -fsSL "$URL" -o data.js; then
+      #       sed -e 's/^window\.BENCHMARK_DATA = //' -e 's/;[[:space:]]*$//' 
data.js > prev.json
+      #     else
+      #       echo '{}' > prev.json
+      #     fi
+      #
+      # - name: Compare against history
+      #   uses: 
benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372
 # v1.22.0
+      #   with:
+      #     tool: 'jmh'
+      #     output-file-path: 
subprojects/performance/build/results/jmh/results-${{ matrix.suite }}.json
+      #     external-data-json-path: ./prev.json
+      #     save-data-file: false
+      #     summary-always: true
+      #     comment-on-alert: true
+      #     alert-threshold: '150%'
+      #     fail-on-alert: false
+      #     github-token: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Upload reports-jmh-classic-${{ matrix.suite }}
         uses: actions/upload-artifact@v7
diff --git a/.github/workflows/groovy-jmh-daily.yml 
b/.github/workflows/groovy-jmh-daily.yml
index 5ca4733f42..eea1214b49 100644
--- a/.github/workflows/groovy-jmh-daily.yml
+++ b/.github/workflows/groovy-jmh-daily.yml
@@ -71,18 +71,20 @@ jobs:
         run: ./gradlew perf:jmh -PbenchInclude=${{ matrix.pattern }} ${{ 
matrix.indyFlag }} -PjmhResultFormat=JSON
         timeout-minutes: 60
 
-      - name: Publish to dashboard
-        uses: benchmark-action/github-action-benchmark@v1
-        with:
-          tool: 'jmh'
-          output-file-path: 
subprojects/performance/build/results/jmh/results.json
-          benchmark-data-dir-path: dev/bench/jmh/${{ matrix.suite }}/${{ 
matrix.indy }}
-          gh-pages-branch: gh-pages
-          auto-push: true
-          comment-always: true
-          alert-threshold: '120%'
-          fail-on-alert: false
-          github-token: ${{ secrets.GITHUB_TOKEN }}
+      # Temporarily disabled pending ASF approval of the 
benchmark-action/github-action-benchmark third-party action.
+      # Re-enable by uncommenting the step below once the action is on the 
approved list.
+      # - name: Publish to dashboard
+      #   uses: 
benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372
 # v1.22.0
+      #   with:
+      #     tool: 'jmh'
+      #     output-file-path: 
subprojects/performance/build/results/jmh/results.json
+      #     benchmark-data-dir-path: dev/bench/jmh/${{ matrix.suite }}/${{ 
matrix.indy }}
+      #     gh-pages-branch: gh-pages
+      #     auto-push: true
+      #     comment-always: true
+      #     alert-threshold: '120%'
+      #     fail-on-alert: false
+      #     github-token: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Upload reports-jmh-${{ matrix.suite }}-${{ matrix.indy }}
         uses: actions/upload-artifact@v7
diff --git a/.github/workflows/groovy-jmh.yml b/.github/workflows/groovy-jmh.yml
index 4dae1975ff..597e9cff26 100644
--- a/.github/workflows/groovy-jmh.yml
+++ b/.github/workflows/groovy-jmh.yml
@@ -19,6 +19,8 @@ on: [push, pull_request]
 
 permissions:
   contents: read
+  pull-requests: write
+  issues: write
 
 jobs:
   test:
@@ -47,12 +49,36 @@ jobs:
           check-latest: true
       - uses: 
gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
       - name: JMH (${{ matrix.suite }})
-        run: ./gradlew perf:jmh -PbenchInclude=${{ matrix.pattern }}
+        run: ./gradlew perf:jmh -PbenchInclude=${{ matrix.pattern }} 
-PjmhResultFormat=JSON
         timeout-minutes: 60
       - name: Rename JMH result file
         run: |
-          mv subprojects/performance/build/results/jmh/results.txt \
-             subprojects/performance/build/results/jmh/results-${{ 
matrix.suite }}.txt
+          mv subprojects/performance/build/results/jmh/results.json \
+             subprojects/performance/build/results/jmh/results-${{ 
matrix.suite }}.json
+
+      # Temporarily disabled pending ASF approval of the 
benchmark-action/github-action-benchmark third-party action.
+      # Re-enable by uncommenting the two steps below once the action is on 
the approved list.
+      # - name: Fetch historical baseline
+      #   run: |
+      #     URL="https://apache.github.io/groovy/dev/bench/jmh/${{ 
matrix.suite }}/indy/data.js"
+      #     if curl -fsSL "$URL" -o data.js; then
+      #       sed -e 's/^window\.BENCHMARK_DATA = //' -e 's/;[[:space:]]*$//' 
data.js > prev.json
+      #     else
+      #       echo '{}' > prev.json
+      #     fi
+      #
+      # - name: Compare against history
+      #   uses: 
benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372
 # v1.22.0
+      #   with:
+      #     tool: 'jmh'
+      #     output-file-path: 
subprojects/performance/build/results/jmh/results-${{ matrix.suite }}.json
+      #     external-data-json-path: ./prev.json
+      #     save-data-file: false
+      #     summary-always: true
+      #     comment-on-alert: true
+      #     alert-threshold: '150%'
+      #     fail-on-alert: false
+      #     github-token: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Upload reports-jmh-${{ matrix.suite }}
         uses: actions/upload-artifact@v7

Reply via email to