Skip to content

Commit

Permalink
chore(gradle): Fix gradle test memory allocation (#4748)
Browse files Browse the repository at this point in the history
* chore(gradle):  Update gradle test memory 

fixes test usage memory.

* chore(gradle): Change gradle memory to be a bit lower vs. test memory

* chore(gradle): Reduce GHA runner memory for gradle

* chore(gradle): Reduce memory on releases as well since increased on tests

* chore(gradle): Reduce memory on releases as well since increased on tests

* chore(gradle): Reduce memory on releases as well since increased on tests

* chore(gradle): Reduce memory on releases as well since increased on tests

* chore(gradle): Spotless
  • Loading branch information
jasonmcintosh authored Jun 13, 2024
1 parent 3ec4fb1 commit dae26e4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- release-*

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx4g -Xms4g
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR Build
on: [ pull_request ]

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx4g -Xms4g
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.remote.repository.deploy.max.attempts=6
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx4g -Xms4g -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.remote.repository.deploy.max.attempts=6
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ subprojects {
}

test {
minHeapSize = "512m"
maxHeapSize = "2g"
maxParallelForks = 4

testLogging {
exceptionFormat = "full"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fiatVersion=1.48.0
korkVersion=7.230.0
kotlinVersion=1.6.21
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx6g
org.gradle.jvmargs=-Xmx4g
spinnakerGradleVersion=8.32.1
targetJava11=true

Expand Down

0 comments on commit dae26e4

Please sign in to comment.