Release wizard to split clean and check calls to separate calls (#13843)

While preparing Lucene 10 RC1, I had an issue running the release script from branch_10_0. It reproduces on branch_10x as well. The ./gradle clean check command fails with the following gradle error and some huge tasks dependency output:

Unable to make progress running work. There are items queued for execution but none of them can be started

I worked around this by splitting the clean and check into two separate calls, in which case everything works fine.am making this change at least until we have figured out what causes the issue and we have a fix.
This commit is contained in:
Luca Cavanna 2024-10-01 18:45:54 +02:00 committed by GitHub
parent 0c7163fc77
commit bb2d09f32e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -112,8 +112,10 @@ def prepare(root, version, pause_before_sign, gpg_key_id, gpg_password, gpg_home
checkDOAPfiles(version)
if not dev_mode:
print(' ./gradlew --stacktrace --no-daemon clean check')
run('./gradlew --stacktrace --no-daemon clean check')
print(' ./gradlew --stacktrace --no-daemon clean')
run('./gradlew --stacktrace --no-daemon clean')
print(' ./gradlew --stacktrace --no-daemon check')
run('./gradlew --stacktrace --no-daemon check')
else:
print(' skipping precommit check due to dev-mode')