Giter VIP home page Giter VIP logo

pipelines-feedback-core's People

Contributors

dependabot[bot] avatar keskad avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pipelines-feedback-core's Issues

Releases support

Github as well as Gitlab supports "Releases" as an extension to tags. We may update those releases pages with links to deployed environments and with links to PRs.

Such feedback may increase visibility over what was released, when, and which GitOps change (PR) released the application to an environment.

Create a getting started guide

The guide should consist of at least two parts:

  • For controller developers
  • For end users installing controller on the cluster and integrating it with their CI/CD flow

Comment on a commit when failure/success

Enchancement proposal - on each commit there could be added a comment with the Pipeline status - optionally.

Configurable as follows:

---
apiVersion: pipelinesfeedback.keskad.pl/v1alpha1
kind: PFConfig
metadata:
    name: keskad-sample-1
spec:
    jobDiscovery: {}
data:
    jxscm.comment-commit-on-failure:   "true"   # defaults to "false"
    jxscm.comment-commit-on-success: "true"   # defaults to "false"

Support for sending message/notification from inside of a Pipeline

CI/CD Pipelines as a part of continuous integration process are used for testing the software. Testing frameworks like PHPUnit, PyTest or jUnit supports reporting.

Kubernetes-native solutions like Tekton or Argo Workflows does not have a presentation layer that could easily show a nice report of executed tests, therefore I come with a following proposal.

  • API) Pipelines Feedback Controller can expose a HTTP API allowing to send a notification message to destination PR/MR/commit/slack/other during the Pipeline execution.

  • Authentication) The controller could generate a temporary API token after receiving Pipeline starting signal and keep that token in a store (e.g. redis)

  • Credentials) Mutation Webhooks could be used to inject temporary token by a controller into the TaskRun's environment variable

  • jUnit implementation) Example implementation could be created in a separate repository - a CLI tool written in Go that would parse junit/xunit formatted report and contact Pipelines Feedback controller via API to send the notification

Specify a priority of PFConfig merging

In order to make sure PFConfig changes are merged as expected there could be an optional priorityWeight field that describes how important is particular PFConfig .

PFConfigs could be sorted by priorityWeight ascending, so the PFConfig with highest value wins in the merging order.

---
apiVersion: pipelinesfeedback.keskad.pl/v1alpha1
kind: PFConfig
metadata:
    name: keskad-sample-1
spec:
    jobDiscovery: {}
    priorityWeight: 100 # defaults to 0
data:
    # ...

JX SCM: Support for detecting PR on Push Hook

Use case (Gitlab):

  • We want to test every commit, not only a Pull Request commit
  • Using Push Event we don't get PR ID, but every commit is triggering the Pipeline
  • Using Pull Request Push event we get PR ID, but only for commits belonging to a PR

Solution: A proposal to add a feature toggle to obtain PR id dynamically

Logs collection

Add a interface method to allow implementing logs collection. This may be helpful in case of attaching logs to notifications or merge request comments

Gitlab returns just "Bad Request"

ERRO[2023-11-06T09:51:36+01:00] cannot update feedback retriever: cannot update commit status: Bad Request  name=sample-cicd/sample-springboot11-preview-bwxx8 request=b0cda7b6-7c81-11ee-95bc-902e16dea917

It seems it may be related with commit status, some statuses are passing, some are not.
For example - a failed pipeline is not reported.

Slack support

Support Slack as Feedback Receiver, so the Pipelines could be reported as updated slack messages.

Dynamic MR/PR labelling

GIVEN I annotate Pipeline stage with pipelinesfeedback.keskad.pl/stage-complete: sonar
WHEN Pipeline stage completes or fails
THEN MR/PR label is added or removed

Idea is to make it a generic mechanism stage-complete which in JX SCM can mean to add a label, but on other feedback receiver e.g. Slack it may mean adding a reaction emot icon or writing a message to a thread.

JX SCM could have a configuration option - a feature toggle to enable this feature:

jxscm.on-stage-complete: label

Create a Helm Chart

In order to make a first release we need a way to package the controller.
Easiest way I think would be to make a customizable Helm Chart which can swap images of adapters (e.g. pipelines-feedback-tekton can use the same chart)

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.