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 72bfff21fcc5ea49f4f15c51890e9d32154c4e18 Merge: 144f6bbacd 7f2c45a767 Author: James Daugherty <[email protected]> AuthorDate: Mon Oct 12 11:27:45 2026 +0100 Merge branch '8.1.x' into 9.0.x .../groovy-snapshot-canary-build.init.gradle | 3 +- .github/workflows/benchmark.yml | 10 +- .github/workflows/build-health.yml | 15 +- .github/workflows/codeanalysis.yml | 10 +- .github/workflows/codestyle.yml | 15 +- .github/workflows/coverage.yml | 10 +- .github/workflows/end-to-end.yml | 17 +- .github/workflows/forge-deploy-aws.yml | 4 +- .github/workflows/gradle.yml | 385 +++---------------- .github/workflows/groovy-snapshot-canary.yml | 37 +- .github/workflows/rat.yml | 5 +- .github/workflows/release-publish-docs.yml | 5 +- .github/workflows/release.yml | 12 +- .github/workflows/sitemesh2.yml | 10 +- .github/workflows/validate-actions.yml | 5 +- .github/workflows/vulnerability-scan.yml | 8 +- build-logic/settings.gradle | 4 +- .../legacy-g7-command-plugin/settings.gradle | 4 +- end-to-end/settings.gradle | 4 +- .../CompositeIdentifierToManyToOneBinder.java | 95 ++++- .../cfg/domainbinding/binder/EnumTypeBinder.java | 20 + .../domainbinding/binder/GrailsDomainBinder.java | 1 + .../domainbinding/binder/GrailsPropertyBinder.java | 5 +- .../hibernate/GrailsHibernatePersistentEntity.java | 59 ++- .../hibernate/HibernateToManyProperty.java | 15 + .../secondpass/BidirectionalOneToManyLinker.java | 11 +- .../secondpass/CompositeForeignKeySecondPass.java | 67 ++++ .../cfg/domainbinding/util/CreateKeyForProps.java | 8 + .../util/PropertyFromValueCreator.java | 18 +- .../tests/UniqueGroupEnumAndCollectionSpec.groovy | 302 +++++++++++++++ .../cfg/domainbinding/CollectionBinderSpec.groovy | 2 +- ...CompositeIdentifierToManyToOneBinderSpec.groovy | 86 ++++- .../cfg/domainbinding/CreateKeyForPropsSpec.groovy | 77 ++++ .../cfg/domainbinding/EnumTypeBinderSpec.groovy | 20 + .../domainbinding/GrailsPropertyBinderSpec.groovy | 1 + .../PropertyFromValueCreatorSpec.groovy | 32 ++ .../CompositeForeignKeyColumnTypesSpec.groovy | 422 +++++++++++++++++++++ ...CompositeForeignKeyRegistrationOrderSpec.groovy | 225 +++++++++++ .../domainbinding/binder/ForeignKeyPairs.groovy | 55 +++ ...verseHasManyCompositeIdentifierOrderSpec.groovy | 109 ++++++ .../BidirectionalOneToManyLinkerSpec.groovy | 4 + .../secondpass/CollectionKeyBinderSpec.groovy | 2 +- .../secondpass/ListSecondPassBinderSpec.groovy | 2 +- .../secondpass/MapSecondPassBinderSpec.groovy | 2 +- grails-forge/settings.gradle | 4 +- grails-gradle/settings.gradle | 4 +- settings.gradle | 4 +- 47 files changed, 1784 insertions(+), 431 deletions(-) diff --cc .github/workflows/gradle.yml index 0414c9109b,43b545505e..c25c17a1f0 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@@ -568,70 -441,21 +445,62 @@@ jobs - name: "🔍 Setup TestLens" uses: testlens-app/setup-testlens@d29a2be31512b3aeda3adcef09fbe0d55af90c51 # v1.9.4 - name: "🏃 Run Functional Tests" - run: > - ./gradlew ${{ matrix.gradle_task }} - --continue - --rerun-tasks - --stacktrace - -PgrailsIndy=${{ matrix.indy }} - -PonlyFunctionalTests - -PskipCodeStyle - -PskipHibernate5Tests - -PskipHibernate7Tests - -PskipMongodbTests - -PskipNeo4jTests - -PskipSpringSecurityTests - -PskipRedisTests - ${{ matrix.shard_arguments }} + # 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 + hanging=1 + limit=45m + else + limit=70m + fi + rm -f build/ci-build-finished.txt build/ci-build-finished.txt.tmp + 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 \ + --stacktrace \ + -PgrailsIndy=${{ matrix.indy }} \ + -PonlyFunctionalTests \ + -PskipCodeStyle \ + -PskipHibernate5Tests \ + -PskipHibernate7Tests \ + -PskipMongodbTests \ + -PskipNeo4jTests \ + -PskipSpringSecurityTests \ + -PskipRedisTests \ + ${{ matrix.shard_arguments }} \ + 2>&1 | tee gradle-functional.log + code=${PIPESTATUS[0]} + set -e + if [ "$code" -eq 0 ]; then + exit 0 + fi + marker="build/ci-build-finished.txt" + if [ "$hanging" -eq 1 ] && { [ "$code" -eq 124 ] || [ "$code" -eq 137 ]; }; then + if [ -f "$marker" ] && [ "$(cat "$marker")" = "SUCCESS" ]; then + echo "Known hanging cell: SUCCESS sentinel after teardown hang." + exit 0 + fi + if grep -qE '> Task .+ FAILED' gradle-functional.log; then + echo "A Gradle task FAILED; not recovering from teardown hang." + exit 1 + fi + if grep -q '> Task :grails-wrapper:test' gradle-functional.log \ + && grep -q 'Markdown aggregate test report:' gradle-functional.log \ + && python3 .github/ci-check-functional-reports.py; then + echo "Known hanging cell: suite walked to grails-wrapper:test with green XML; teardown hang treated as success." + exit 0 + fi + fi + exit "$code" - - name: "🗄️ Save dependency jar cache" - if: ${{ success() && matrix.cache_writer && steps.dependency-cache.outputs.cache-hit != 'true' }} - uses: actions/cache/[email protected] - with: - path: | - ~/.gradle/caches/modules-2 - ~/.gradle/wrapper - key: gradle-deps-${{ runner.os }}-${{ github.base_ref || github.ref_name }}-${{ hashFiles('dependencies.gradle', 'gradle/wrapper/gradle-wrapper.properties', '*/gradle/wrapper/gradle-wrapper.properties') }} - name: "📤 Upload Geb Reports" if: failure() uses: actions/[email protected]
