buildfoundation / mainframer

Tool for remote builds. Sync project to remote machine, execute command, sync back.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to show which files were synced to debug sync process.

artem-zinnatullin opened this issue · comments

Currently it's pretty hard to understand what bottlenecks the sync process.

An option to show what files get synched might help reveal files that are getting synced unintentionally and slowing down sync process.

@ming13 wdyt?

rsync has two options that could potentially help in that:

  • -n, --dry-run show what would have been transferred, we can run rsync twice if Mainframer was launched with this option to show what will be synced and then actually sync it.
  • -v, --verbose increase verbosity

Gradle projects sync a lot of files, but I can see where you are going. I think there is a room for the --verbose flag which will pass it to rsync and ssh.

Main idea is to debug cases like:

mainframer make build

# And then run again

mainframer --debug-sync make build

So you could figure what files get regenerated and synced again even after "100%" incremental build.

Regarding ssh, I think that should be a separate flag