vlsi / vlsi-release-plugins

A set of plugins to simplify Gradle release tasks
Apache License 2.0
41 stars 13 forks source link

generateVoteText fails due to not being able to download hash. #32

Closed F21 closed 5 years ago

F21 commented 5 years ago

I am using the asflike environment and building Avatica (latest master: https://github.com/apache/calcite-avatica/commit/ed05329a1f54518256e1179b909170a00fa0b0b8)

It seems the release uploads correctly to the svn server, but the hash doesn't download correctly when generating the vote email:

104 actionable tasks: 57 executed, 47 up-to-date
# gradle prepareVote -PasfTestSvnUsername=test -PasfTestSvnPassword=test -PasfTestNexusUsername=test -PasfTestNexusPassword=test -PasfTestGitSourceUsername=test -PasfTestGitSourcePassword=test -PallowUncommittedChanges -Prc=0 -PuseGpgCmd -Psigning.gnupg.keyName=635665E0BE3F72552910CB74BBE44E923A970AB7

> Configure project :
Building Apache Calcite Avatica 1.16.0

> Task :standalone-server:initializeNexusStagingRepository
Initialized stagingRepositoryId orgapachecalcite-1573771585102 for repository nexus

> Task :pushRcTag
Pushing tag to Git remote release-origin-test: git://127.0.0.1/calcite.git
Message from release-origin-test:
  refs/tags/avatica-1.16.0-rc0: UP_TO_DATE, 8b47a8d463493fc6c1207ac65c13a89b4478f8d0

> Task :stageSvnDist
Executing svnmucc. root=http://127.0.0.1/svn/dist, message=Uploading release candidate Apache Calcite Avatica avatica-1.16.0-rc0 to dev area, commands:
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.zip
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.zip
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.tar.gz
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.zip.sha512
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.zip.sha512
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.zip.asc
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.zip.asc
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.tar.gz.sha512
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz.sha512
put
/home/gradle/project/release/build/distributions/apache-calcite-avatica-1.16.0-src.tar.gz.asc
dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz.asc
r3 committed by test at 2019-11-14T22:46:27.902012Z

> Task :generateVoteText FAILED
Listing SVN folders [] at http://127.0.0.1/svn/dist/dev/calcite/apache-calcite-avatica-1.16.0-rc0
Fetching http://127.0.0.1/svn/dist/dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz.sha512@3

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateVoteText'.
> Unable to fetch http://127.0.0.1/svn/dist/dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz.sha512, revision 3: svn: E170013: Unable to connect to a repository at URL 'http://127.0.0.1/svn/dist/dev/calcite/apache-calcite-avatica-1.16.0-rc0/apache-calcite-avatica-1.16.0-src.tar.gz.sha512'
  svn: E215004: No more credentials or we tried too many times.
  Authentication failed

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s
103 actionable tasks: 33 executed, 70 up-to-date
vlsi commented 5 years ago

I've enabled read-only access to SVN for anonymous users (see https://github.com/vlsi/asflike-release-environment/commit/75399ce4b980d42006dee1c084c2e57e1006cc15 ), and the issue is fixed.

Please grab an updated asflike