commit | eb6647c8faea73b38a4eac8fe8eba755878fec3d | [log] [tgz] |
---|---|---|
author | Eshwar Narayan <eshwarn@google.com> | Wed Apr 07 01:58:18 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 07 01:58:18 2021 |
tree | 062b223a9a2ebd5a19f0d64f5e02748210084095 | |
parent | 9efe0d28d3e6ea8fa2ec8ab53675b84ac18ef62b [diff] |
shivas: get/delete cmds for SchedulingUnit Bug: b/180138776 Test: run local coammnd against ufs-dev; ./shivas get sc -json sch-1 [{ "name": "sch-1", "machineLSEs": [ "guocb-test130", "guocb-test133" ], "pools": [ "pool1", "pool3" ], "type": "SCHEDULING_UNIT_TYPE_INDIVIDUAL", "description": "", "updateTime": "2021-04-05T23:29:53.090043528Z", "tags": [ "ABC" ] } ] ./shivas delete sc -name sch-2 Are you sure you want to delete the SchedulingUnit: sch-2 Continue? [y/N] y Change-Id: I9654caeeeb05aec9fef51ecd934edc00f2f0c87e Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2806628 Commit-Queue: Eshwar Narayan <eshwarn@chromium.org> Reviewed-by: Garry Wang <xianuowang@chromium.org> Reviewed-by: Xixuan Wu <xixuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#39976}
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.