diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ece6d4b005..6e0ee5bf68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g CI_GRADLE_ARG_PROPERTIES: --stacktrace -Dsonar.gradle.skipCompile=true --no-configuration-cache jobs: diff --git a/.github/workflows/build_enterprise.yml b/.github/workflows/build_enterprise.yml index 3e22cee30e..ce2f444cb9 100644 --- a/.github/workflows/build_enterprise.yml +++ b/.github/workflows/build_enterprise.yml @@ -15,7 +15,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g CI_GRADLE_ARG_PROPERTIES: --stacktrace -Dsonar.gradle.skipCompile=true --no-configuration-cache jobs: diff --git a/.github/workflows/maestro-local.yml b/.github/workflows/maestro-local.yml index ec48715155..c15d12e617 100644 --- a/.github/workflows/maestro-local.yml +++ b/.github/workflows/maestro-local.yml @@ -13,7 +13,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true --no-configuration-cache ARCH: x86_64 DEVICE: pixel_7_pro diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index d8ba6e252e..4a4eba2829 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -15,7 +15,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true --no-configuration-cache jobs: diff --git a/.github/workflows/recordScreenshots.yml b/.github/workflows/recordScreenshots.yml index f1426fb279..14e6e6cb39 100644 --- a/.github/workflows/recordScreenshots.yml +++ b/.github/workflows/recordScreenshots.yml @@ -13,7 +13,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g -Dsonar.gradle.skipCompile=true + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g -Dsonar.gradle.skipCompile=true CI_GRADLE_ARG_PROPERTIES: --no-configuration-cache jobs: diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index fc575ed5de..3c7d0cde8b 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -15,7 +15,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx2g CI_GRADLE_ARG_PROPERTIES: --stacktrace --warn -Dsonar.gradle.skipCompile=true --no-configuration-cache GROUP: ${{ format('sonar-{0}', github.ref) }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fca7e8b63f..7a3b006c9a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,11 @@ permissions: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx7g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options=-Xmx2g -XX:+UseG1GC + # Sized for the self-hosted incus containers, matching + # healthchat-release-playstore.yml. Upstream's -Xmx8g with a 4 GB Kotlin daemon is + # sized for GitHub's hosted VMs; here the daemon gets SIGKILLed mid-build and Gradle + # reports "the daemon has disappeared" with no OutOfMemoryError and no heap dump. + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx6g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options=-Xmx2g -XX:+UseG1GC CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon -Dsonar.gradle.skipCompile=true --no-configuration-cache jobs: