Skip to content

Commit

Permalink
Merge pull request #93 from jflo/gradleDaemonDisconnect
Browse files Browse the repository at this point in the history
sets metaspace explicitly after gradle reset a la https://github.com/…
  • Loading branch information
jflo authored Mar 1, 2024
2 parents c34070f + dbb1387 commit 7f956a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ jobs:
env:
# fun fact, this changes based on incoming event, it will be different when we run this on pushes to main
RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
EVENT_NAME: ${{ github.event_name }}
with:
script: |
const { RELEVANT_SHA } = process.env;
const { EVENT_NAME } = process.env;
if(EVENT_NAME === 'workflow_dispatch') {
return true;
}
const { data: { statuses } } = await github.rest.repos.getCombinedStatusForRef({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -49,6 +54,7 @@ jobs:
console.log("approvingReviews = %j", approvingReviews.length);
return shouldRun;
acceptanceTestEthereum:
runs-on: ubuntu-22.04
name: "Acceptance Runner"
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version=24.2.0-SNAPSHOT
org.gradle.welcome=never
# Set exports/opens flags required by Google Java Format and ErrorProne plugins. (JEP-396)
org.gradle.jvmargs=-Xmx4g \
-XX:MaxMetaspaceSize=256m \
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
Expand Down

0 comments on commit 7f956a4

Please sign in to comment.