This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch fix-tests
in repository https://gitbox.apache.org/repos/asf/grails-spring-security.git
The following commit(s) were added to refs/heads/fix-tests by this push:
new 667c9255 build: make tests more resilient in ci
667c9255 is described below
commit 667c92551eaa9b558edb24ada71e3d0a9d2f9eae
Author: Mattias Reichel <[email protected]>
AuthorDate: Tue Oct 21 15:14:07 2025 +0200
build: make tests more resilient in ci
---
.github/workflows/gradle.yml | 13 +++++++++++--
gradle/test-config.gradle | 5 +++++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 3b6b6d26..b417b4cb 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -44,7 +44,12 @@ jobs:
with:
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "🏃♂️ Run Tests"
- run: ./gradlew check --max-workers=2 --refresh-dependencies --continue
+ run: >
+ ./gradlew
+ check
+ --max-workers=2
+ --refresh-dependencies
+ --continue
functionalTests:
if: ${{ !contains(github.event.head_commit.message, '[skip tests]') }}
runs-on: ubuntu-24.04
@@ -65,7 +70,11 @@ jobs:
with:
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- name: "🏃♂️ Run Different Config Functional Tests"
- run: ./gradlew core-examples-functional-test-app:check
-DTESTCONFIG=${{ matrix.test-config }}
+ run: >
+ ./gradlew
+ core-examples-functional-test-app:check
+ -DTESTCONFIG=${{ matrix.test-config }}
+ -PgebAtCheckWaiting
publish:
needs: [ coreTests, functionalTests ]
if: ${{ always() && github.repository_owner == 'apache' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
(needs.coreTests.result == 'success' || needs.coreTests.result == 'skipped') &&
(needs.functionalTests.result == 'success' || needs.functionalTests.result ==
'skipped') }}
diff --git a/gradle/test-config.gradle b/gradle/test-config.gradle
index 854c13c8..47067d7b 100644
--- a/gradle/test-config.gradle
+++ b/gradle/test-config.gradle
@@ -48,6 +48,11 @@ tasks.named('integrationTest', Test) {
// systemProperty('grails.geb.recording.mode', 'RECORD_ALL')
systemProperty('TESTCONFIG', System.getProperty('TESTCONFIG'))
+ // Make Geb tests more resilient in slow CI environments
+ if (project.hasProperty('gebAtCheckWaiting')) {
+ systemProperty('grails.geb.atCheckWaiting.enabled', 'true')
+ }
+
doFirst {
logger.quiet(
'\n - Running tests for configuration: {} and Grails: {}',