Skip to content

Commit

Permalink
feat: tweak workflow for reference tests
Browse files Browse the repository at this point in the history
This tweaks the workflow for the reference tests in an effort to prevent
failures due to OOM on the CI machine.
  • Loading branch information
DavePearce committed Dec 3, 2024
1 parent 28f197f commit 45bd8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/reference-blockchain-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
run: ./gradlew :reference-tests:generateBlockchainReferenceTests -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
CORSET_FLAGS: fields,expand,expand,expand

- name: Download artifact
uses: dawidd6/action-download-artifact@v6
Expand All @@ -66,10 +65,10 @@ jobs:
run: ./gradlew referenceBlockchainTests -x spotlessCheck
timeout-minutes: 180
env:
REFERENCE_TESTS_PARALLELISM: 7
REFERENCE_TESTS_PARALLELISM: 1
JAVA_OPTS: -Dorg.gradle.daemon=false
CORSET_FLAGS: disable
GOCORSET_FLAGS: -wd --ansi-escapes=false --report --air
GOCORSET_FLAGS: -wd --ansi-escapes=false --report --hir
FAILED_TEST_JSON_DIRECTORY: ${{ github.workspace }}/tmp/${{ steps.extract_branch.outputs.branch }}/
FAILED_MODULE: ${{ inputs.failed_module || '' }}
FAILED_CONSTRAINT: ${{ inputs.failed_constraint || '' }}
Expand Down
4 changes: 2 additions & 2 deletions reference-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ tasks.register('referenceBlockchainTests', Test) {

boolean isCiServer = System.getenv().containsKey("CI")
minHeapSize = isCiServer ? "8g" :"4g"
maxHeapSize = isCiServer ? "50g" : "8g"

maxHeapSize = isCiServer ? "64g" : "8g"
print "Setting maxHeapSize = ${maxHeapSize}"
useJUnitPlatform {
includeTags("BlockchainReferenceTest")
}
Expand Down

0 comments on commit 45bd8b4

Please sign in to comment.