show current action while publishing artifact to repository#29
Conversation
The problem is that "published ..." message is there only when upload is done. Uploading big artifact to repository can take significant amount of time. It can take minutes. Or even dozens of minutes for big uploads over slow Internet uplink. It is not obvious what happens when upload is started. The console just hangs. More user friendly would be to show for a user what is about to happen. In this case upload of an artifact will take place.
|
Hi @vitaliis, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
|
I understand (and sympathise) with what you're saying, but I'd like to also point out that the downside of this is that now everything is logged twice. maybe a good compromise is to log the start at debug level and the completion at info level? what do you think? |
|
@dwijnand thanks for your reply. |
|
I was thinking of a better and nicer solution. But I think it is impossible to implement. |
|
yeah, we would need to make sure that for people in situations like yourself had an easy way to bump the logging to debug level. I'm not that familiar with sbt's interaction with ivy's logging to know. (@eed3si9n?) if you can find a way to do the non-line break logging, I think that could go with that. |
|
One more reason to add the logging before publishing is the fact that in packaging it is done in the way that is proposed for publishing. Here is an excerpt of my console output: And this is not the biggest sbt sub-project we publish. |
|
There's ivyLoggingLevel key which is set to There's a similar issue sbt/sbt#3122 that's actually trying to hide "Updating.." maybe the common thread here is that we need a timeout log for a long running tasks. So if the operation finishes within 30s it doesn't print anything, but if it takes longer it prints out a message or a progress bar? |
The problem is that "published ..." message is there only when upload is done.
Uploading big artifact to repository can take significant amount of time. It can take minutes.
Or even dozens of minutes for big uploads over slow Internet uplink.
It is not obvious what happens when upload is started. The console just hangs.
More user friendly would be to show for a user what is about to happen. In this case upload of an artifact will take place.