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

jdaugherty pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit d74afb490d9814bd6a524d39a197d1ec98b5b18a
Author: James Daugherty <[email protected]>
AuthorDate: Fri Oct 9 12:02:55 2026 -0400

    Run the CI sentinel init script without the configuration cache
    
    The 8.1.x merge-up turned on org.gradle.configuration-cache. The
    functional and Neo4j jobs pass .github/ci-exit-after-build.init.gradle,
    whose taskGraph.afterTask and gradle.buildFinished listeners the
    configuration cache rejects, so every such job finished its tests and
    then failed with "registration of listener ... is unsupported".
    
    Those jobs run with --rerun-tasks on fresh runners, where the cache saves
    nothing, so pass --no-configuration-cache wherever the script is used.
---
 .github/ci-exit-after-build.init.gradle | 4 ++++
 .github/ci-run-neo4j-tests.sh           | 3 +++
 .github/tests/test_ci_run_neo4j.py      | 1 +
 .github/workflows/gradle.yml            | 3 +++
 4 files changed, 11 insertions(+)

diff --git a/.github/ci-exit-after-build.init.gradle 
b/.github/ci-exit-after-build.init.gradle
index 74aaa3a928..19ad872a44 100644
--- a/.github/ci-exit-after-build.init.gradle
+++ b/.github/ci-exit-after-build.init.gradle
@@ -23,6 +23,10 @@ import java.nio.file.StandardCopyOption
 import org.gradle.api.execution.TaskExecutionGraph
 import org.gradle.api.tasks.TaskState
 
+// The afterTask and buildFinished listeners below are not supported by the
+// configuration cache, so every invocation that passes this script must also
+// pass --no-configuration-cache.
+
 // Command-line init scripts also apply to included builds. Only the
 // invocation root should write the functional-suite sentinel.
 if (gradle.parent != null) {
diff --git a/.github/ci-run-neo4j-tests.sh b/.github/ci-run-neo4j-tests.sh
index 14ff9c01f0..6f97c904a3 100644
--- a/.github/ci-run-neo4j-tests.sh
+++ b/.github/ci-run-neo4j-tests.sh
@@ -20,10 +20,13 @@ set -euo pipefail
 
 # The marker is written only after every task has completed, with task failures
 # included. Never accept a marker left by an earlier invocation.
+# The init script registers build listeners, which the configuration cache
+# rejects, so this invocation runs without it.
 rm -f build/ci-build-finished.txt build/ci-build-finished.txt.tmp
 set +e
 timeout --kill-after=30s 90m ./gradlew bootJar check \
     --init-script .github/ci-exit-after-build.init.gradle \
+    --no-configuration-cache \
     --no-daemon --continue --rerun-tasks --stacktrace \
     -PonlyNeo4jTests -PskipCodeStyle "$@"
 code=$?
diff --git a/.github/tests/test_ci_run_neo4j.py 
b/.github/tests/test_ci_run_neo4j.py
index 5ffb392452..075a84ef2d 100644
--- a/.github/tests/test_ci_run_neo4j.py
+++ b/.github/tests/test_ci_run_neo4j.py
@@ -83,6 +83,7 @@ class Neo4jExitTests(unittest.TestCase):
                     self.assertEqual(result.returncode, expected, 
result.stderr)
                     args = (root / 'args.txt').read_text().splitlines()
                     self.assertIn('--init-script', args)
+                    self.assertIn('--no-configuration-cache', args)
                     self.assertIn('-PonlyNeo4jTests', args)
                     self.assertIn('-PgrailsIndy=false', args)
 
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index d9df78b3d2..0414c9109b 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -571,6 +571,8 @@ jobs:
         # The known hanging cell finishes tests, prints the wrapper:test /
         # aggregate-report tail, then hangs before buildFinished. Timeout plus
         # that end-of-walk log and green XML is treated as success.
+        # The sentinel init script registers build listeners, which the
+        # configuration cache rejects, so this invocation runs without it.
         run: |
           hanging=0
           if [ "${{ matrix.java }}" = "21" ] && [ "${{ matrix.indy }}" = 
"true" ] && [ "${{ matrix.gradle_task }}" = "testShard" ]; then
@@ -583,6 +585,7 @@ jobs:
           set +e
           timeout --kill-after=30s "$limit" ./gradlew ${{ matrix.gradle_task 
}} \
             --init-script .github/ci-exit-after-build.init.gradle \
+            --no-configuration-cache \
             --no-daemon \
             --continue \
             --rerun-tasks \

Reply via email to