Git Product home page Git Product logo

Comments (10)

jakebiesinger-storyhealth avatar jakebiesinger-storyhealth commented on August 11, 2024 15

Friendly ping on this, @Saaarah.

We're heavy users of cloud build and Slack and our notifications look like garbage and are really hard to tell apart:

image

We use cloud build + Slack notifications for:

  • automated nightly deployments to test environments
  • automated daily e2e tests (dev, staging)
  • automated code/vulnerability scanners (on several branches)
  • to notify about manual deployments as they happen / are successful (dev / staging / prod / demo / etc)
  • pull requests (which don't notify)

If standardizing this is too much to take on now, WDYT about just letting the various projects do their thing? We already have implementations ready but which are bitrotting like #91

Or how about we just start with something simple like "subject/title + body in plaintext" for the payload?

from cloud-build-notifiers.

mikesoule avatar mikesoule commented on August 11, 2024 10

I noticed this part of the official statement from the Cloud Build Team:

...we plan on releasing here to open up the coding of this feature to the public.

So the community is expected to do the work of building this feature (no prob there, that's what open source is) but we're stuck indefinitely waiting for Google to publish a list of requirements.

This is inconsiderate of both the contributors and the users. Please either truly open this up so we can get community contributions merged in or raise the priority on publishing a list of requirements. I'm sure the community would be happy to collaborate in regards to creating the requirements in the interest of ensuring all notifiers follow a standard.

From what I've read, it seems the hold up centers around the fact that the message published to Pub/Sub doesn't contain information about the trigger or placeholders to add such information. I assume that's a problem because changing the message format might break existing integrations. If this is the case, why not just plan on publishing the data we need for custom messages to a separate queue?

Here's a proposal for the message format to get us started.

{
    "project": "my-gcp-project",
    "buildId": "91bc6340-0ce4-4789-aeaa-fbaf6a398552",
    "duration": "1:45",
    "images": [
        "gcr.io/my-gcp-project/my-app:latest"
    ],
    "source": "repo/my-app",
    "trigger": {
        "name": "my-build-trigger",
        "repository": "repo/my-app"
    },
    "notifier": {
        "customPlaceholders": {
            "myPlaceholder": "Some value",
            "anotherPlaceholder": "Another value"
        },
        "template": "This is my go template for {{.trigger.build}} with {{.myPlaceholder}} and {{.anotherPlaceholder}}."
    }
}

from cloud-build-notifiers.

iamyojimbo avatar iamyojimbo commented on August 11, 2024 2

Hey @LOZORD, any movement on this?

from cloud-build-notifiers.

nbellamy-paper avatar nbellamy-paper commented on August 11, 2024 1

I see this commit 8 days ago b0668da

Does that mean that work is in progress for this?

The slack notifications are almost useless with the build ID instead of the friendly name.

from cloud-build-notifiers.

LOZORD avatar LOZORD commented on August 11, 2024

Hi Savvas, unfortunately I can't give an update as I no longer work on Cloud Build. @Saaarah might have a better idea.

from cloud-build-notifiers.

cristian-moreno-ruiz avatar cristian-moreno-ruiz commented on August 11, 2024

Any plans on moving this forward? We are using Cloud Build and have 10+ microservices, in different environments (staging, prod, etc). It would be really helpful to be aware of which of the services was deployed.

Thanks!

from cloud-build-notifiers.

wyardley avatar wyardley commented on August 11, 2024

Would be very useful to have this.

Also, I'd also suggest that it would be nice to have a simpler, container-based notifications that could either be directly part of Cloudbuild without creating any other resources, or a container based notification setup be embedded directly into workflows (similar to the Slack orb for CircleCI - https://circleci.com/developer/orbs/orb/circleci/slack).

Currently, the number of resources to setup and manage to get this working is quite a hassle for something that IMO should just be a builtin feature. The fact that the actual notifications themselves are not templatable or useful makes it even worse.

from cloud-build-notifiers.

omrta-dev avatar omrta-dev commented on August 11, 2024

Is there any progress on this, as others have stated the current notifications are kind of useless as they still require someone to view the logs to find out what service broken. In cases where multiple builds are failing, some of which are more/less important than others it would be very helpful to have some basic information added to the build notifications. Is there any work pending on the cloud build message that gets sent or work implementing the templating for the message?

from cloud-build-notifiers.

mikehardenize avatar mikehardenize commented on August 11, 2024

I'm amazed this was released without this functionality. Completely useless. Now I need to back it all out again.

from cloud-build-notifiers.

fragoulis avatar fragoulis commented on August 11, 2024

#32 (comment)

from cloud-build-notifiers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.