Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress bar when deploying #287

Open
johnnyman727 opened this issue Sep 8, 2015 · 8 comments
Open

Progress bar when deploying #287

johnnyman727 opened this issue Sep 8, 2015 · 8 comments

Comments

@johnnyman727
Copy link
Contributor

It would be really useful to be able to see how long it might take for a code bundle to be deployed over T2 (especially over USB).

@rwaldron
Copy link
Contributor

rwaldron commented Sep 8, 2015

Absolutely. Yesterday I introduced @goliatone to T2 and this came up.

@johnnyman727
Copy link
Contributor Author

I tried progress-stream library last week but for some reason that I can't recall anymore, it didn't work. I can give it another try this week.

@johnnyman727
Copy link
Contributor Author

The difficulty is that we basically dump a single buffer into the stdin stream instead of actually piping a stream into it. If you try to use progress-stream, it will report that it has completely deployed immediately. We would need some way to introspect the internal stream backlogging mechanism to get actual data of how much of the bundle we've transferred... The Node docs don't give much insight into how to do this.

@johnnyman727
Copy link
Contributor Author

See work in progress here: #304

@johnnyman727
Copy link
Contributor Author

One possibility might be to change the result of the tarBundle function so it returns a stream? The usb transfer process will likely be slower than the tarring operation.

@Student007 Student007 mentioned this issue Oct 25, 2015
35 tasks
@johnnyman727
Copy link
Contributor Author

An easier way to do this is use the du command on T2 to get the size of the folder. Just run that command at an interval and you can get a real time update of how many bytes have been transferred.

The only confusing thing is that OpenWRT seems to report folder sizes different (higher) than OSX.

@johnnyman727
Copy link
Contributor Author

I attempted to build a progress bar using the du command on OpenWRT but, as I said above, OpenWRT always returns a slightly different file size. Branch is here.

@LinusU
Copy link
Contributor

LinusU commented Oct 27, 2015

are-we-there-yet might help you tie everything together. I think it's used by npm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants