[Fleet Console]: Add UFS Client Adapter Mapper. [infra/infra : main]

0 views
Skip to first unread message

Tiffany Zhang (Gerrit)

unread,
2:36 PM (2 hours ago) 2:36 PM
to Aden Lazarus, Phoebe Tang, chromium...@chromium.org, fleet-console-...@google.com, infra-rev...@chromium.org
Attention needed from Aden Lazarus

Tiffany Zhang voted and added 3 comments

Votes added by Tiffany Zhang

Code-Review+1

3 comments

File go/src/infra/fleetconsole/internal/infra/ext/ufs/mapping.go
Line 56, Patchset 1: Name: fmt.Sprintf("%s%s", MACHINE_LSES_PREFIX, deviceID),
Tiffany Zhang . unresolved

Go conventions typically prefer CamelCase or MixedCaps for constants (e.g., `MachineLSEsPrefix` instead of `MACHINE_LSES_PREFIX`). If this constant is defined in this package, consider renaming it for consistency with Go style guidelines.

File go/src/infra/fleetconsole/internal/infra/ext/ufs/mapping_test.go
Line 27, Patchset 1: mask := &fieldmaskpb.FieldMask{Paths: []string{"pools"}}
Tiffany Zhang . unresolved

Consider using the constant `fleetconsolerpc.PathPools` here instead of hardcoding the string `\"pools\"`, to keep the tests resilient to potential constant changes.\n```go\nmask := &fieldmaskpb.FieldMask{Paths: []string{fleetconsolerpc.PathPools}}\n```\n\n(Applies to the other tests in this file as well).

Line 78, Patchset 1: assert.Loosely(t, err.Error(), should.ContainSubstring("device ID cannot be empty"))
Tiffany Zhang . unresolved

If `err` is nil, calling `err.Error()` will cause a panic, which might abort the test ungracefully.\n\nYou can use `should.ErrLike` to safely assert on the error content without risking a nil-pointer dereference:\n```go\nassert.Loosely(t, err, should.ErrLike(\"device ID cannot be empty\"))\n```\n\n(This also applies to the other error tests below).

Open in Gerrit

Related details

Attention is currently required from:
  • Aden Lazarus
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: Iee6af164b2cfea5ce6d8863efd6c09b541d07497
Gerrit-Change-Number: 8068758
Gerrit-PatchSet: 1
Gerrit-Owner: Aden Lazarus <adenl...@google.com>
Gerrit-Reviewer: Tiffany Zhang <zhan...@chromium.org>
Gerrit-CC: Phoebe Tang <phoeb...@google.com>
Gerrit-Attention: Aden Lazarus <adenl...@google.com>
Gerrit-Comment-Date: Thu, 09 Jul 2026 18:36:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Tiffany Zhang (Gerrit)

unread,
2:42 PM (1 hour ago) 2:42 PM
to Aden Lazarus, Phoebe Tang, chromium...@chromium.org, fleet-console-...@google.com, infra-rev...@chromium.org
Attention needed from Aden Lazarus

Tiffany Zhang voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Aden Lazarus
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: Iee6af164b2cfea5ce6d8863efd6c09b541d07497
Gerrit-Change-Number: 8068758
Gerrit-PatchSet: 3
Gerrit-Owner: Aden Lazarus <adenl...@google.com>
Gerrit-Reviewer: Tiffany Zhang <zhan...@chromium.org>
Gerrit-CC: Phoebe Tang <phoeb...@google.com>
Gerrit-Attention: Aden Lazarus <adenl...@google.com>
Gerrit-Comment-Date: Thu, 09 Jul 2026 18:42:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Aden Lazarus (Gerrit)

unread,
2:43 PM (1 hour ago) 2:43 PM
to Tiffany Zhang, Phoebe Tang, chromium...@chromium.org, fleet-console-...@google.com, infra-rev...@chromium.org

Aden Lazarus added 3 comments

File go/src/infra/fleetconsole/internal/infra/ext/ufs/mapping.go
Line 56, Patchset 1: Name: fmt.Sprintf("%s%s", MACHINE_LSES_PREFIX, deviceID),
Tiffany Zhang . resolved

Go conventions typically prefer CamelCase or MixedCaps for constants (e.g., `MachineLSEsPrefix` instead of `MACHINE_LSES_PREFIX`). If this constant is defined in this package, consider renaming it for consistency with Go style guidelines.

Aden Lazarus

this is something that was originally defined in the client, but I've updated it for future use.

File go/src/infra/fleetconsole/internal/infra/ext/ufs/mapping_test.go
Line 27, Patchset 1: mask := &fieldmaskpb.FieldMask{Paths: []string{"pools"}}
Tiffany Zhang . resolved

Consider using the constant `fleetconsolerpc.PathPools` here instead of hardcoding the string `\"pools\"`, to keep the tests resilient to potential constant changes.\n```go\nmask := &fieldmaskpb.FieldMask{Paths: []string{fleetconsolerpc.PathPools}}\n```\n\n(Applies to the other tests in this file as well).

Aden Lazarus

updated, thank you!

Line 78, Patchset 1: assert.Loosely(t, err.Error(), should.ContainSubstring("device ID cannot be empty"))
Tiffany Zhang . resolved

If `err` is nil, calling `err.Error()` will cause a panic, which might abort the test ungracefully.\n\nYou can use `should.ErrLike` to safely assert on the error content without risking a nil-pointer dereference:\n```go\nassert.Loosely(t, err, should.ErrLike(\"device ID cannot be empty\"))\n```\n\n(This also applies to the other error tests below).

Aden Lazarus

fixed, thank you!

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: Iee6af164b2cfea5ce6d8863efd6c09b541d07497
    Gerrit-Change-Number: 8068758
    Gerrit-PatchSet: 3
    Gerrit-Owner: Aden Lazarus <adenl...@google.com>
    Gerrit-Reviewer: Tiffany Zhang <zhan...@chromium.org>
    Gerrit-CC: Phoebe Tang <phoeb...@google.com>
    Gerrit-Comment-Date: Thu, 09 Jul 2026 18:43:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Tiffany Zhang <zhan...@chromium.org>
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages