foxbox
foxbox copied to clipboard
[B2G] Sometime reop fetch failed, and need to re-fetch manually
This is a bug need to be solved, if we want to automate the building process.
These two errors:
error: Exited sync due to fetch errors
Repo sync failed
cause the box can't build anything, even after 5+ retries.
http://stackoverflow.com/questions/16085722/when-running-repo-sync-error-exited-sync-due-to-fetch-errors
Invoking repo sync -f -j10
did the trick.
As it seems -f or --force-broken flag allows it to recover from network error and more important recover on broken/missing objects.
Maybe we can provide a set of script to run this command
I gave up it temporarily and launch a GCE instance to test, and found that the network really affected the building. In foxbox it just failed again and again, and GCE instance would success. This may be a issue we must solve, because I failed at a standard and fast enough network.
You could check https://github.com/gasolin/foxbox/commit/14644ad553993e2b5352de347e483a566956a0f7 if it fix this issue