[UFS] Clear dynamic recovery properties on DUT during CreateDUT [infra/infra : main]

0 views
Skip to first unread message

Otabek Kasimov (Gerrit)

unread,
2:49 PM (3 hours ago) 2:49 PM
to chromium...@chromium.org, infra-rev...@chromium.org

Otabek Kasimov has uploaded the change for review

Commit message

[UFS] Clear dynamic recovery properties on DUT during CreateDUT

Ensure all dynamic recovery-populated LabData properties on MachineLSE (keyed by hostname) are reset to clean/empty values when a new DUT is created (add dut). This guarantees that whenever a DUT is re-added or created for a lab slot, residual Cbi, RoVpdMap, and dynamic peripheral states from previous deployments do not persist on the MachineLSE.

BUG=b:532209965
TEST=go test ./app/controller/... -run TestCreateDUT
TAG=agy
CONV=86aeb3cb-256b-4dcb-8fd1-25ebe0a7952d
Change-Id: Ie51d3ee59f13bb50a54170f3a9fe1a1949254ecf

Change diff


Change information

Files:
  • M go/src/infra/unifiedfleet/app/controller/dut.go
  • M go/src/infra/unifiedfleet/app/controller/dut_test.go
Change size: M
Delta: 2 files changed, 50 insertions(+), 1 deletion(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: infra/infra
Gerrit-Branch: main
Gerrit-Change-Id: Ie51d3ee59f13bb50a54170f3a9fe1a1949254ecf
Gerrit-Change-Number: 8071478
Gerrit-PatchSet: 1
Gerrit-Owner: Otabek Kasimov <ota...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Otabek Kasimov (Gerrit)

unread,
3:02 PM (2 hours ago) 3:02 PM
to chromium...@chromium.org, infra-rev...@chromium.org

Otabek Kasimov added 4 comments

File go/src/infra/unifiedfleet/app/controller/dut.go
Line 497, Patchset 1 (Latest):func cleanPreDeployFields(servo *chromeosLab.Servo) {
Otabek Kasimov . unresolved

create a test for this function.

Line 507, Patchset 1 (Latest):func cleanPreDeployDUTFields(dut *chromeosLab.DeviceUnderTest) {
Otabek Kasimov . unresolved

create a test for this function.

Line 522, Patchset 1 (Latest): cleanPreDeployFields(peri.GetServo())
Otabek Kasimov . unresolved

why do we need this call as it called independenctly.

File go/src/infra/unifiedfleet/app/controller/dut_test.go
Line 486, Patchset 1 (Latest): BuildTarget: "test",
Model: "test",
Otabek Kasimov . unresolved

add field with nil values to specify that values are expecetd to be cleared.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: infra/infra
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie51d3ee59f13bb50a54170f3a9fe1a1949254ecf
    Gerrit-Change-Number: 8071478
    Gerrit-PatchSet: 1
    Gerrit-Owner: Otabek Kasimov <ota...@google.com>
    Gerrit-Comment-Date: Thu, 09 Jul 2026 19:02:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Otabek Kasimov (Gerrit)

    unread,
    5:14 PM (14 minutes ago) 5:14 PM
    to Anushruth Sasivehalli, chromium...@chromium.org, infra-rev...@chromium.org
    Attention needed from Anushruth Sasivehalli

    Otabek Kasimov voted

    Auto-Submit+1
    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anushruth Sasivehalli
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: infra/infra
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie51d3ee59f13bb50a54170f3a9fe1a1949254ecf
    Gerrit-Change-Number: 8071478
    Gerrit-PatchSet: 2
    Gerrit-Owner: Otabek Kasimov <ota...@google.com>
    Gerrit-Reviewer: Anushruth Sasivehalli <anus...@chromium.org>
    Gerrit-Reviewer: Otabek Kasimov <ota...@google.com>
    Gerrit-Attention: Anushruth Sasivehalli <anus...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jul 2026 21:14:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages