-
-
Notifications
You must be signed in to change notification settings - Fork 194
Add show-progress and show-stats flags to enable logging during rsync #240
Conversation
Hello @utkarsh-dixit, it looks good for me, but could you please fix cases problem and linter issues. |
de46529
to
eb7bdf1
Compare
eb7bdf1
to
345d448
Compare
@neoziro I have shifted this config to this.config.rsync since it's already there and this issue is also related to rsync.. While doing that I noticed that defaultOptions.rsync was not getting passed to ConnectionPool functions because it was getting overwritten.. See the code below:-
And the options passed down by update::remoteCopy in shipit-deploy update is in the below lines.
I have made some changes to Shipit.js so it doesn't get overwritten and instead be added to the existing config.. Is that okay, or was this logic intended? |
I noticed lot of tests are failing because of this change. They are expecting the functions to overwrite the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it could be difficult but could you add some tests to cover the new feature?
9706721
to
6dace96
Compare
@neoziro Any updates regarding this pull request? |
@utkarsh-dixit I don't know the goal, why not creating shipit instance with options: new Shipit({ rsync: ['--progress'] }) What is the difference? |
This would allow the user to see the syncing progress while pushing the files to remote server.
Why this PR?
I recently started using shipit and one of the problems that I encountered while deploying my files to my server is rsync getting closed because of ssh timeout trigger due to no activity. Because of this issue, code is only deployed once out of 5 times.
Also, because of some of my network issues it takes a lot of time for rsync to complete and I had no idea if anything was going on or not due to inactivity.
Because of the above two reasons I thought of adding a "--show-progress" and "--show-stats" to shipit so that the user can track the progress. The progress activity would also stop the triggering of ssh connection timeout. (https://unix.stackexchange.com/a/68784).
Use-cases:
Usages:
Show Progress bar (Can use either "-p" or "--show-progress" flag)
npx shipit production deploy --show-progress
Show Stats (Can use either "-s" or "--show-stats" flag)
npx shipit production deploy --show-stats