Skip to content

Commit

Permalink
Fix Kemit EE dependencies
Browse files Browse the repository at this point in the history
Lower Gradle memory usage on test runners
  • Loading branch information
jeffdgr8 committed Sep 30, 2023
1 parent 6380058 commit 49f4da3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
distribution: zulu
java-version: 17
- name: Run tests
run: ./gradlew check --no-parallel
run: ./gradlew check --no-parallel "-Dorg.gradle.jvmargs=-Xmx3g"
- name: Upload test results
uses: actions/upload-artifact@v3
if: failure()
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
sudo dpkg -i libicu71_71.1-2_amd64.deb
rm libicu71_71.1-2_amd64.deb
- name: Run tests
run: ./gradlew check --no-parallel
run: ./gradlew check --no-parallel "-Dorg.gradle.jvmargs=-Xmx3g"
- name: Upload test results
uses: actions/upload-artifact@v3
if: failure()
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
arch: x86_64
ram-size: 4096M
cores: 3
script: ./gradlew connectedCheck --no-parallel
script: ./gradlew connectedCheck --no-parallel "-Dorg.gradle.jvmargs=-Xmx3g"
- name: Upload test results
uses: actions/upload-artifact@v3
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions couchbase-lite-ee-kermit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ kotlin {
}
}

linkLibcblite(projects.couchbaseLite)
linkLibcblite(projects.couchbaseLiteEe)

sourceSets {
commonMain {
dependencies {
api(projects.couchbaseLiteKtx)
api(projects.couchbaseLiteEeKtx)
api(libs.kermit)
}
}
Expand Down
2 changes: 1 addition & 1 deletion couchbase-lite/src/commonTest/kotlin/kotbase/LoadTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class LoadTest : BaseDbTest() {
Report.log("Test $testName time: $elapsedTime")
assertTrue(
elapsedTime < maxTimeMs.milliseconds,
"Load test $testName over time: $elapsedTime > $maxTimeMs"
"Load test $testName over time: $elapsedTime > ${maxTimeMs.milliseconds}"
)
}
}

0 comments on commit 49f4da3

Please sign in to comment.