Periodically print console output while releasing
olafurpg opened this issue · comments
Ólafur Páll Geirsson commented
Would it be possible for sbt-sonatype to schedule a print(".")
for every minute to indicate that a sonatypeRelease
is making progress? I just had a Travis CI job that failed with the following error:
[info] Reapplying settings...
[info] Welcome to sbt-scalafmt 2.0.6
[info] Nexus repository URL: https://oss.sonatype.org/service/local
[info] sonatypeProfileName = org.scalameta
[info] Preparing a new staging repository for [sbt-sonatype] sbt-scalafmt 2.0.6
[info] Reading staging repository profiles...
[info] Reading staging profiles...
[info] Found a staging repository [orgscalameta-1621] status:open, profile:org.scalameta(58795270e7bfba) description: [sbt-sonatype] sbt-scalafmt 2.0.6
[info] Dropping staging repository [orgscalameta-1621] status:open, profile:org.scalameta(58795270e7bfba) description: [sbt-sonatype] sbt-scalafmt 2.0.6
[info] Creating a staging repository in profile org.scalameta with a description key: [sbt-sonatype] sbt-scalafmt 2.0.6
[info] Dropped successfully: orgscalameta-1621
[info] Created successfully: orgscalameta-1622
[info] Uploading bundle /home/travis/build/scalameta/sbt-scalafmt/target/sonatype-staging/2.0.6 to https://oss.sonatype.org/service/local/staging/deployByRepositoryId/orgscalameta-1622/
[info] Finished bundle upload: /home/travis/build/scalameta/sbt-scalafmt/target/sonatype-staging/2.0.6
[info] Closing staging repository [orgscalameta-1622] status:open, profile:org.scalameta(58795270e7bfba) description: [sbt-sonatype] sbt-scalafmt 2.0.6
[info] Activity open started:2019-09-27T12:58:19.672Z, stopped:2019-09-27T13:01:22.873Z
[info] repositoryCreated: id:orgscalameta-1622, user:[secure], ip:104.197.122.201
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated
Full CI logs: https://travis-ci.org/scalameta/sbt-scalafmt/jobs/590359742#L602
Taro L. Saito commented
It seems Sonatype API has issues recently 😢 . Adding some intermediate output would not be so difficult. Let me try later.
Taro L. Saito commented
Released sbt-sonatype 3.8 with some additional log messages like this:
[info] Activity name:open, started:2019-09-28T00:49:34.064Z, stopped:2019-09-28T00:51:27.330Z
[info] repositoryCreated: id:orgxerial-1311, user:leo, ip:52.9.26.233
[info] Activity name:close, started:2019-09-28T00:51:45.032Z
[info] Evaluate: id:5e9e8e6f8d20a3, rule:sources-staging
[info] Evaluate: no-traversal-paths-in-archive-file
[info] The close process is in progress ...
[info] Passed: no-traversal-paths-in-archive-file
[info] Evaluate: profile-target-matching-staging
[info] The close process is in progress ...
[info] Passed: profile-target-matching-staging
[info] Evaluate: sources-staging
[info] The close process is in progress ...
[info] Passed: sources-staging
[info] Evaluate: checksum-staging
[info] Passed: checksum-staging
[info] Evaluate: pom-staging
[info] Passed: pom-staging
[info] The close process is in progress ...```
Taro L. Saito commented
Taro L. Saito commented
@olafurpg Let me close this issue. Thank you for reporting. It will add an extra safety net to the release.
Ólafur Páll Geirsson commented
Thank you 🙏