Setting up Wifi for internal users Refactor credential storage to make it more generic [infra/infra : main]

0 views
Skip to first unread message

Rafał Gaweł (Gerrit)

unread,
9:10 AM (4 hours ago) 9:10 AM
to chromium...@chromium.org, Code Review Nudger, Tomasz Jakubowski, Jacek Klimkowicz, infra-rev...@chromium.org
Attention needed from Jacek Klimkowicz and Tomasz Jakubowski

Rafał Gaweł added 5 comments

File go/src/infra/cros/satlab/common/dut/keystore.go
Line 20, Patchset 1:
Tomasz Jakubowski . unresolved

`defer f.Close()`

Rafał Gaweł

It is already handled inside ReadFile

func ReadFile(name string) ([]byte, error) {
f, err := Open(name)
if err != nil {
return nil, err
}
defer f.Close()
return readFileContents(f)
}
Line 35, Patchset 1: data, err := GetKeyStore()
if err != nil {
return err
}
Tomasz Jakubowski . resolved

I think this should be removed. `SetDutWifiInfo` shouldn't fail when the file doesn't exist or when it's corrupted.

Rafał Gaweł

Done

Line 40, Patchset 1: data.SSID = ssid
data.Password = password
Tomasz Jakubowski . resolved

`data := &KeyStore{SSID: ssid, Password: password}`

Rafał Gaweł

Done

File go/src/infra/cros/satlab/common/run/run.go
Line 226, Patchset 1: keystore, err := dut.GetKeyStore()
if err == nil {
Tomasz Jakubowski . resolved

As we use `err` only here, it can be one line.

Rafał Gaweł

Done

File go/src/infra/cros/satlab/common/site/site.go
Line 541, Patchset 1:// KeyStorePath gets the KEystore info file path
Tomasz Jakubowski . resolved

nit: `Keystore`

Rafał Gaweł

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Jacek Klimkowicz
  • Tomasz Jakubowski
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: I34e3731c0c2ebde65b3890ee21447afaf3e52466
Gerrit-Change-Number: 7527485
Gerrit-PatchSet: 2
Gerrit-Owner: Rafał Gaweł <rafal...@google.com>
Gerrit-Reviewer: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Reviewer: Tomasz Jakubowski <jakub...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-Attention: Tomasz Jakubowski <jakub...@google.com>
Gerrit-Attention: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Comment-Date: Sat, 07 Feb 2026 14:10:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tomasz Jakubowski <jakub...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Tomasz Jakubowski (Gerrit)

unread,
9:35 AM (3 hours ago) 9:35 AM
to Rafał Gaweł, chromium...@chromium.org, Code Review Nudger, Jacek Klimkowicz, infra-rev...@chromium.org
Attention needed from Jacek Klimkowicz and Rafał Gaweł

Tomasz Jakubowski voted and added 1 comment

Votes added by Tomasz Jakubowski

Code-Review+1

1 comment

File go/src/infra/cros/satlab/common/dut/keystore.go
Line 20, Patchset 1:
Tomasz Jakubowski . resolved

`defer f.Close()`

Rafał Gaweł

It is already handled inside ReadFile

func ReadFile(name string) ([]byte, error) {
f, err := Open(name)
if err != nil {
return nil, err
}
defer f.Close()
return readFileContents(f)
}
Tomasz Jakubowski

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Jacek Klimkowicz
  • Rafał Gaweł
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: I34e3731c0c2ebde65b3890ee21447afaf3e52466
Gerrit-Change-Number: 7527485
Gerrit-PatchSet: 2
Gerrit-Owner: Rafał Gaweł <rafal...@google.com>
Gerrit-Reviewer: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Reviewer: Tomasz Jakubowski <jakub...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-Attention: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Attention: Rafał Gaweł <rafal...@google.com>
Gerrit-Comment-Date: Sat, 07 Feb 2026 14:35:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Tomasz Jakubowski <jakub...@google.com>
Comment-In-Reply-To: Rafał Gaweł <rafal...@google.com>
satisfied_requirement
open
diffy

Rafał Gaweł (Gerrit)

unread,
9:51 AM (3 hours ago) 9:51 AM
to Tomasz Jakubowski, chromium...@chromium.org, Code Review Nudger, Jacek Klimkowicz, infra-rev...@chromium.org
Attention needed from Jacek Klimkowicz

Rafał Gaweł voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Jacek Klimkowicz
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: I34e3731c0c2ebde65b3890ee21447afaf3e52466
Gerrit-Change-Number: 7527485
Gerrit-PatchSet: 2
Gerrit-Owner: Rafał Gaweł <rafal...@google.com>
Gerrit-Reviewer: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Reviewer: Rafał Gaweł <rafal...@google.com>
Gerrit-Reviewer: Tomasz Jakubowski <jakub...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-Attention: Jacek Klimkowicz <klimk...@google.com>
Gerrit-Comment-Date: Sat, 07 Feb 2026 14:51:17 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

LUCI CQ (Gerrit)

unread,
10:09 AM (3 hours ago) 10:09 AM
to Rafał Gaweł, Tomasz Jakubowski, chromium...@chromium.org, Code Review Nudger, Jacek Klimkowicz, infra-rev...@chromium.org

LUCI CQ submitted the change

Change information

Commit message:
Setting up Wifi for internal users
Refactor credential storage to make it more generic

BUG=b:460210707
TEST=manual
Change-Id: I34e3731c0c2ebde65b3890ee21447afaf3e52466
Commit-Queue: Rafał Gaweł <rafal...@google.com>
Reviewed-by: Tomasz Jakubowski <jakub...@google.com>
Cr-Commit-Position: refs/heads/main@{#78814}
Files:
  • A go/src/infra/cros/satlab/common/dut/keystore.go
  • A go/src/infra/cros/satlab/common/dut/keystore_test.go
  • M go/src/infra/cros/satlab/common/run/run.go
  • M go/src/infra/cros/satlab/common/site/site.go
  • M go/src/infra/cros/satlab/satlabrpcserver/services/rpc_services/manage_devices_services.go
Change size: M
Delta: 5 files changed, 200 insertions(+), 32 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Tomasz Jakubowski
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: I34e3731c0c2ebde65b3890ee21447afaf3e52466
Gerrit-Change-Number: 7527485
Gerrit-PatchSet: 3
Gerrit-Owner: Rafał Gaweł <rafal...@google.com>
Gerrit-Reviewer: Jacek Klimkowicz <klimk...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages