mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
ci: size the Gradle heap for the self-hosted containers
Upstream's -Xmx8g/4g is sized for hosted VMs; here the daemon is SIGKILLed and Gradle reports "the daemon has disappeared".
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user