chromiumdash_promoter - use recipe modules api instead of raw git command [infra/infra : main]

0 views
Skip to first unread message

Alex Kravchuk (Gerrit)

unread,
Nov 5, 2025, 9:21:38 AM (2 days ago) Nov 5
to Olek Nuszel, Vadim Shtayura, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Olek Nuszel and Vadim Shtayura

Alex Kravchuk added 2 comments

File recipes/recipes/chromiumdash_promoter.py
Line 5, Patchset 2 (Latest):from PB.recipe_engine.result import RawResult
Alex Kravchuk . unresolved

Nit: looks like the imports are not sorted. Probably something git cl format can handle?

Line 122, Patchset 2 (Latest): return RawResult(status=common_pb2.SUCCESS, summary_markdown=summary)
Alex Kravchuk . unresolved

I think we should keep the summary short, because it should ideally be readable from the builder page, without the need to expand the build.

I think we can omit "executed successfully", because this is something we can see from the build status anyway.

I would suggest either "Nothing to deploy" or "Created <link to CL>" for the result depending on the outcome.

Open in Gerrit

Related details

Attention is currently required from:
  • Olek Nuszel
  • Vadim Shtayura
Submit Requirements:
  • requirement is not 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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
Gerrit-Change-Number: 7124026
Gerrit-PatchSet: 2
Gerrit-Owner: Olek Nuszel <anu...@google.com>
Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Olek Nuszel <anu...@google.com>
Gerrit-Comment-Date: Wed, 05 Nov 2025 14:21:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Olek Nuszel (Gerrit)

unread,
Nov 5, 2025, 9:32:50 AM (2 days ago) Nov 5
to Vadim Shtayura, Alex Kravchuk, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Alex Kravchuk and Vadim Shtayura

Olek Nuszel added 2 comments

File recipes/recipes/chromiumdash_promoter.py
Line 5, Patchset 2:from PB.recipe_engine.result import RawResult
Alex Kravchuk . unresolved

Nit: looks like the imports are not sorted. Probably something git cl format can handle?

Olek Nuszel

Mine doesn't seem to do that. I left it the same way we have in recipe_promoter

Line 122, Patchset 2: return RawResult(status=common_pb2.SUCCESS, summary_markdown=summary)
Alex Kravchuk . unresolved

I think we should keep the summary short, because it should ideally be readable from the builder page, without the need to expand the build.

I think we can omit "executed successfully", because this is something we can see from the build status anyway.

I would suggest either "Nothing to deploy" or "Created <link to CL>" for the result depending on the outcome.

Olek Nuszel

Ok, I kept short now. I'm not adding the link now since we don't have direct access to that in code and it's need to be parsed. I'll add that to the followup task from TODO: b/451878525. Anyway, we'll get notified with the CL from gerrit directly.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Kravchuk
  • Vadim Shtayura
Submit Requirements:
  • requirement is not 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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
Gerrit-Change-Number: 7124026
Gerrit-PatchSet: 2
Gerrit-Owner: Olek Nuszel <anu...@google.com>
Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Alex Kravchuk <alexa...@google.com>
Gerrit-Comment-Date: Wed, 05 Nov 2025 14:32:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alex Kravchuk <alexa...@google.com>
unsatisfied_requirement
open
diffy

Alex Kravchuk (Gerrit)

unread,
Nov 5, 2025, 9:48:07 AM (2 days ago) Nov 5
to Olek Nuszel, Vadim Shtayura, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Olek Nuszel and Vadim Shtayura

Alex Kravchuk added 2 comments

File recipes/recipes/chromiumdash_promoter.py
Line 5, Patchset 2:from PB.recipe_engine.result import RawResult
Alex Kravchuk . unresolved

Nit: looks like the imports are not sorted. Probably something git cl format can handle?

Olek Nuszel

Mine doesn't seem to do that. I left it the same way we have in recipe_promoter

Alex Kravchuk

This is how Cider sorts it:

```
import base64
import json

from PB.go.chromium.org.luci.buildbucket.proto import common as common_pb2
from PB.recipe_engine.result import RawResult
from recipe_engine import post_process
```

Line 122, Patchset 2: return RawResult(status=common_pb2.SUCCESS, summary_markdown=summary)
Alex Kravchuk . unresolved

I think we should keep the summary short, because it should ideally be readable from the builder page, without the need to expand the build.

I think we can omit "executed successfully", because this is something we can see from the build status anyway.

I would suggest either "Nothing to deploy" or "Created <link to CL>" for the result depending on the outcome.

Olek Nuszel

Ok, I kept short now. I'm not adding the link now since we don't have direct access to that in code and it's need to be parsed. I'll add that to the followup task from TODO: b/451878525. Anyway, we'll get notified with the CL from gerrit directly.

Alex Kravchuk

I think it should be pretty easy to do with `git_cl.issue`, but leaving it up to you.

Open in Gerrit

Related details

Attention is currently required from:
  • Olek Nuszel
  • Vadim Shtayura
Submit Requirements:
  • requirement is not 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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
Gerrit-Change-Number: 7124026
Gerrit-PatchSet: 3
Gerrit-Owner: Olek Nuszel <anu...@google.com>
Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Vadim Shtayura <vad...@chromium.org>
Gerrit-Attention: Olek Nuszel <anu...@google.com>
Gerrit-Comment-Date: Wed, 05 Nov 2025 14:48:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Olek Nuszel <anu...@google.com>
Comment-In-Reply-To: Alex Kravchuk <alexa...@google.com>
unsatisfied_requirement
open
diffy

Olek Nuszel (Gerrit)

unread,
Nov 5, 2025, 9:56:06 AM (2 days ago) Nov 5
to Vadim Shtayura, Alex Kravchuk, chromium...@chromium.org, infra-rev...@chromium.org
Attention needed from Alex Kravchuk and Vadim Shtayura

Olek Nuszel added 2 comments

File recipes/recipes/chromiumdash_promoter.py
Line 5, Patchset 2:from PB.recipe_engine.result import RawResult
Alex Kravchuk . resolved

Nit: looks like the imports are not sorted. Probably something git cl format can handle?

Olek Nuszel

Mine doesn't seem to do that. I left it the same way we have in recipe_promoter

Alex Kravchuk

This is how Cider sorts it:

```
import base64
import json

from PB.go.chromium.org.luci.buildbucket.proto import common as common_pb2
from PB.recipe_engine.result import RawResult
from recipe_engine import post_process
```

Olek Nuszel

Done

Line 122, Patchset 2: return RawResult(status=common_pb2.SUCCESS, summary_markdown=summary)
Alex Kravchuk . resolved

I think we should keep the summary short, because it should ideally be readable from the builder page, without the need to expand the build.

I think we can omit "executed successfully", because this is something we can see from the build status anyway.

I would suggest either "Nothing to deploy" or "Created <link to CL>" for the result depending on the outcome.

Olek Nuszel

Ok, I kept short now. I'm not adding the link now since we don't have direct access to that in code and it's need to be parsed. I'll add that to the followup task from TODO: b/451878525. Anyway, we'll get notified with the CL from gerrit directly.

Alex Kravchuk

I think it should be pretty easy to do with `git_cl.issue`, but leaving it up to you.

Olek Nuszel

Ok, so let's leave this as it is for now.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Kravchuk
  • Vadim Shtayura
Submit Requirements:
    • requirement is not 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: comment
    Gerrit-Project: infra/infra
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
    Gerrit-Change-Number: 7124026
    Gerrit-PatchSet: 3
    Gerrit-Owner: Olek Nuszel <anu...@google.com>
    Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
    Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
    Gerrit-Attention: Vadim Shtayura <vad...@chromium.org>
    Gerrit-Attention: Alex Kravchuk <alexa...@google.com>
    Gerrit-Comment-Date: Wed, 05 Nov 2025 14:56:00 +0000
    unsatisfied_requirement
    open
    diffy

    Alex Kravchuk (Gerrit)

    unread,
    Nov 5, 2025, 10:06:47 AM (2 days ago) Nov 5
    to Olek Nuszel, Vadim Shtayura, chromium...@chromium.org, infra-rev...@chromium.org
    Attention needed from Olek Nuszel and Vadim Shtayura

    Alex Kravchuk voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Olek Nuszel
    • Vadim Shtayura
    Submit Requirements:
      • requirement is not 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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
      Gerrit-Change-Number: 7124026
      Gerrit-PatchSet: 4
      Gerrit-Owner: Olek Nuszel <anu...@google.com>
      Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
      Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
      Gerrit-Attention: Vadim Shtayura <vad...@chromium.org>
      Gerrit-Attention: Olek Nuszel <anu...@google.com>
      Gerrit-Comment-Date: Wed, 05 Nov 2025 15:06:42 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Vadim Shtayura (Gerrit)

      unread,
      Nov 5, 2025, 11:27:45 AM (2 days ago) Nov 5
      to Olek Nuszel, Alex Kravchuk, chromium...@chromium.org, infra-rev...@chromium.org
      Attention needed from Olek Nuszel

      Vadim Shtayura voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Olek Nuszel
      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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
      Gerrit-Change-Number: 7124026
      Gerrit-PatchSet: 4
      Gerrit-Owner: Olek Nuszel <anu...@google.com>
      Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
      Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
      Gerrit-Attention: Olek Nuszel <anu...@google.com>
      Gerrit-Comment-Date: Wed, 05 Nov 2025 16:27:42 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Olek Nuszel (Gerrit)

      unread,
      Nov 5, 2025, 2:11:08 PM (2 days ago) Nov 5
      to Vadim Shtayura, Alex Kravchuk, chromium...@chromium.org, infra-rev...@chromium.org

      Olek Nuszel voted Commit-Queue+2

      Commit-Queue+2
      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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
      Gerrit-Change-Number: 7124026
      Gerrit-PatchSet: 4
      Gerrit-Owner: Olek Nuszel <anu...@google.com>
      Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
      Gerrit-Reviewer: Olek Nuszel <anu...@google.com>
      Gerrit-Reviewer: Vadim Shtayura <vad...@chromium.org>
      Gerrit-Comment-Date: Wed, 05 Nov 2025 19:11:04 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      LUCI CQ (Gerrit)

      unread,
      Nov 5, 2025, 2:27:12 PM (2 days ago) Nov 5
      to Olek Nuszel, Vadim Shtayura, Alex Kravchuk, chromium...@chromium.org, infra-rev...@chromium.org

      LUCI CQ submitted the change

      Change information

      Commit message:
      chromiumdash_promoter - use recipe modules api instead of raw git command

      This change fixes chromiumdash_promoter as raw git command doesnt contain allow 'cl upload'. Also it includes minor changes on luci-notifications
      Bug: 435419318
      Change-Id: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
      Reviewed-by: Alex Kravchuk <alexa...@google.com>
      Reviewed-by: Vadim Shtayura <vad...@chromium.org>
      Commit-Queue: Olek Nuszel <anu...@google.com>
      Cr-Commit-Position: refs/heads/main@{#77371}
      Files:
      Change size: S
      Delta: 2 files changed, 20 insertions(+), 16 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Vadim Shtayura, +1 by Alex Kravchuk
      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: Ic5572899a2ef656f6bb698c138f08ac9b7c5f7b2
      Gerrit-Change-Number: 7124026
      Gerrit-PatchSet: 5
      Gerrit-Owner: Olek Nuszel <anu...@google.com>
      Gerrit-Reviewer: Alex Kravchuk <alexa...@google.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages