summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/print_utils.py
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-05-31 15:02:35 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-06-04 16:29:50 +0900
commitcfde948e4f28a42f58ba361b45d0756e6e92a5fa (patch)
treeeb305ee4b30fc92081956e0f4b39830402c3684b /startop/scripts/lib/print_utils.py
parentc8b197598fbf5a73822dff10bcc7de7923a95e21 (diff)
Simplify crash conditions in NetworkStackClient
The previous model could have impact on boot time to read/write from/to disk, and could potentially fail in some scenarios where the device does full reboots instead of framework restarts. The current design most simply avoids crashing in the first 30mins after a full reboot, and optimistically checks the wall clock to rate-limit the crashes to every 6h. Test: manual as below, without IS_DEBUGGABLE condition Test: Install new NetworkStack, force crash, observe rollback Test: Set min_uptime_before_crash to 100, force crash, observe crash Test: min_uptime_before_crash still 100, install new NetworkStack, force crash: observe rollback (there was already a recent crash) Test: Set min_crash_interval to 10, force crash: observe crash Bug: 133725814 (Clean CP from I3fd5ba7047d7ac991cb62a7cab16a40f4ee731a3) Merged-In: Ic6b2bb13b488f46cd4b8d87caa78342f622181c3 Change-Id: Ia3fdd80c85cde45452c8e9b877836dfa4204e83d
Diffstat (limited to 'startop/scripts/lib/print_utils.py')
0 files changed, 0 insertions, 0 deletions