cros: collect dmesg on USB install failure [infra/infra : main]

0 views
Skip to first unread message

Otabek Kasimov (Gerrit)

unread,
Jul 8, 2026, 6:41:23 PM (6 hours ago) Jul 8
to Chrome Fleet Automation Reviewers, Bryan Ni, LUCI CQ, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Bryan Ni

Otabek Kasimov voted and added 1 comment

Votes added by Otabek Kasimov

Auto-Submit+1
Commit-Queue+1

1 comment

File go/src/infra/cros/recovery/internal/execs/cros/cros_install_exec.go
Line 118, Patchset 4: logger.Debugf("Collecting dmesg from USB-booted DUT...")
Bryan Ni . unresolved

The commit message states that `dmesg` and `lsblk` should be collected *if the installation fails*. However:
1. `dmesg` is being collected here unconditionally, before the OS installation is even attempted.
2. The collection of `lsblk` is completely missing.

This logic should likely be moved into the error handling block for `storage.RunInstallOSCommand` (around line 172) so that it only runs on failure and captures the logs from the actual installation attempt. You should also add the missing `lsblk` command there.

Otabek Kasimov

That's a good catch; however, since this is strictly intended for collecting dmesg, I don't think it should be moved to `storage.RunInstallOSCommand`. Keeping it separate avoids unnecessary logic complexity and ensures we don't expose additional functionality where it doesn't belong.

Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Ni
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: I0766067d209ed0d880823df1a4ada5b5f08ae9e7
Gerrit-Change-Number: 8049280
Gerrit-PatchSet: 6
Gerrit-Owner: Otabek Kasimov <ota...@google.com>
Gerrit-Reviewer: Bryan Ni <bni...@google.com>
Gerrit-Reviewer: Otabek Kasimov <ota...@google.com>
Gerrit-CC: Chrome Fleet Automation Reviewers <chrome-fleet-in...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Bryan Ni <bni...@google.com>
Gerrit-Comment-Date: Wed, 08 Jul 2026 22:41:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Bryan Ni <bni...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Bryan Ni (Gerrit)

unread,
Jul 8, 2026, 7:17:53 PM (5 hours ago) Jul 8
to Otabek Kasimov, Chrome Fleet Automation Reviewers, LUCI CQ, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Otabek Kasimov

Bryan Ni voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Otabek Kasimov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement 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: I0766067d209ed0d880823df1a4ada5b5f08ae9e7
Gerrit-Change-Number: 8049280
Gerrit-PatchSet: 6
Gerrit-Owner: Otabek Kasimov <ota...@google.com>
Gerrit-Reviewer: Bryan Ni <bni...@google.com>
Gerrit-Reviewer: Otabek Kasimov <ota...@google.com>
Gerrit-CC: Chrome Fleet Automation Reviewers <chrome-fleet-in...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Otabek Kasimov <ota...@google.com>
Gerrit-Comment-Date: Wed, 08 Jul 2026 23:17:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Otabek Kasimov (Gerrit)

unread,
Jul 8, 2026, 7:41:00 PM (5 hours ago) Jul 8
to Bryan Ni, Chrome Fleet Automation Reviewers, LUCI CQ, chromium...@chromium.org, infra-rev...@chromium.org

Otabek Kasimov voted and added 1 comment

Votes added by Otabek Kasimov

Commit-Queue+2

1 comment

File go/src/infra/cros/recovery/internal/execs/cros/cros_install_exec.go
Line 118, Patchset 4: logger.Debugf("Collecting dmesg from USB-booted DUT...")
Bryan Ni . resolved

The commit message states that `dmesg` and `lsblk` should be collected *if the installation fails*. However:
1. `dmesg` is being collected here unconditionally, before the OS installation is even attempted.
2. The collection of `lsblk` is completely missing.

This logic should likely be moved into the error handling block for `storage.RunInstallOSCommand` (around line 172) so that it only runs on failure and captures the logs from the actual installation attempt. You should also add the missing `lsblk` command there.

Otabek Kasimov

That's a good catch; however, since this is strictly intended for collecting dmesg, I don't think it should be moved to `storage.RunInstallOSCommand`. Keeping it separate avoids unnecessary logic complexity and ensures we don't expose additional functionality where it doesn't belong.

Otabek Kasimov

resolving as got fresh +1.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement 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: I0766067d209ed0d880823df1a4ada5b5f08ae9e7
    Gerrit-Change-Number: 8049280
    Gerrit-PatchSet: 6
    Gerrit-Owner: Otabek Kasimov <ota...@google.com>
    Gerrit-Reviewer: Bryan Ni <bni...@google.com>
    Gerrit-Reviewer: Otabek Kasimov <ota...@google.com>
    Gerrit-CC: Chrome Fleet Automation Reviewers <chrome-fleet-in...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Comment-Date: Wed, 08 Jul 2026 23:40:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Otabek Kasimov <ota...@google.com>
    Comment-In-Reply-To: Bryan Ni <bni...@google.com>
    satisfied_requirement
    open
    diffy

    LUCI CQ (Gerrit)

    unread,
    Jul 8, 2026, 7:42:12 PM (5 hours ago) Jul 8
    to Otabek Kasimov, Bryan Ni, Chrome Fleet Automation Reviewers, chromium...@chromium.org, infra-rev...@chromium.org

    LUCI CQ submitted the change

    Change information

    Commit message:
    cros: collect dmesg on USB install failure

    When installing ChromeOS from USB in recovery mode, if the
    installation fails, collect dmesg from the DUT.
    This helps in diagnosing storage detection issues.

    BUG=476190544
    TAG=agy
    CONV=0b27c66a-4f7d-4717-9064-017a5ddd5ba8
    Change-Id: I0766067d209ed0d880823df1a4ada5b5f08ae9e7
    Reviewed-by: Bryan Ni <bni...@google.com>
    Commit-Queue: Otabek Kasimov <ota...@google.com>
    Auto-Submit: Otabek Kasimov <ota...@google.com>
    Cr-Commit-Position: refs/heads/main@{#81731}
    Files:
    • M go/src/infra/cros/recovery/internal/execs/cros/cros_install_exec.go
    Change size: S
    Delta: 1 file changed, 14 insertions(+), 2 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Bryan Ni
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: infra/infra
    Gerrit-Branch: main
    Gerrit-Change-Id: I0766067d209ed0d880823df1a4ada5b5f08ae9e7
    Gerrit-Change-Number: 8049280
    Gerrit-PatchSet: 7
    Gerrit-Owner: Otabek Kasimov <ota...@google.com>
    Gerrit-Reviewer: Bryan Ni <bni...@google.com>
    Gerrit-Reviewer: Otabek Kasimov <ota...@google.com>
    Gerrit-CC: Chrome Fleet Automation Reviewers <chrome-fleet-in...@google.com>
    Gerrit-CC: gwsq
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages