Skip to content

Commit ba9b594

Browse files
Add back the ulimit calls for release runs (#3444)
#### Motivation Since splitting the check and publish tasks in our build our snapshots have been failing with problems regarding file descriptors and limits. #### Modifications This might be because we dropped the ulimit settings and we're trying to use to much in terms of resources. Let's add it back and see what happens.
1 parent 071eef0 commit ba9b594

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
4040
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
4141
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
42-
run: ./gradlew --no-daemon --no-parallel -PreleaseBuild=true publish
42+
run: sudo -E env "PATH=$PATH" bash -c "ulimit -l 65536 && ulimit -a && ./gradlew --no-daemon --no-parallel -PreleaseBuild=true publish"
4343
- name: Central Portal manual Repo Close
4444
# Details at https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuring-the-repository
4545
env:

.github/workflows/ci-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
5050
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
5151
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
52-
run: ./gradlew --no-daemon --no-parallel publish
52+
run: sudo -E env "PATH=$PATH" bash -c "ulimit -l 65536 && ulimit -a && ./gradlew --no-daemon --no-parallel publish"
5353
- name: Publish Test Results
5454
if: always()
5555
uses: scacap/action-surefire-report@5609ce4db72c09db044803b344a8968fd1f315da

0 commit comments

Comments
 (0)