commit | 38227d3c18fb7433260ce1300d57b0fa29d4078b | [log] [tgz] |
---|---|---|
author | Sarthak Kukreti <sarthakkukreti@google.com> | Tue Mar 23 05:49:07 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 23 05:49:07 2021 |
tree | 3b83d85df8f99a6c14195a4815d129f55d22cf9f | |
parent | 738571d1a86127bdff416cb2ba392eb5d262dba6 [diff] |
tls: support block-level wiping stateful partition Adds support in TLS for wiping the stateful partition. If ProvisionDutRequest.preserve_stateful is not set, the provisioning code does an extra step to block-level wipe and reset the stateful partition based on the newly provisioned image. This is done using a clobber-state invocation that adds another reboot to the process. BUG=b:182822167 TEST=Test provisioning with TLS+TLW; check stateful partition is wiped and recreated (dumpe2fs). Cq-Depend: chromium:2762544 Change-Id: I4644bcbb68fbc49e1224a73fe81f73539258fa98 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2762517 Commit-Queue: Sarthak Kukreti <sarthakkukreti@chromium.org> Reviewed-by: Jae Hoon Kim <kimjae@chromium.org> Reviewed-by: Allen Li <ayatane@chromium.org> Cr-Commit-Position: refs/heads/master@{#39631}
Testing Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.from infra.path_hacks.common import <stg>
is actually getting <stg>
from build/scripts/common.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, run your tests with test.py:
*_test.py
files to this directory.Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have __init__.py
files in each directory of your module so Python recognizes it as a package.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style, except functions use lowercase_with_underscores
. Use yapf (git cl format
) to autoformat new code.