RepositoryGo
MY

myntra/pipeline

Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.

485stars
52forks
4issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: jenkins-pipeline

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: pipe

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: concurrent

#1 Repository Của Tháng

🔗 Pipeline — việc build workflow concurrent bằng Go thuần

Một gói Go nhỏ gọn để định nghĩa và thực thi các workflow multi-stage có concurrent steps với centralized logging output.

Pipeline là một package Go do Myntra phát triển, cho phép define và execute các tác vụ CI/CD theo stage — có thể tuần tự hoặc đồng thời. Tương tự Jenkins Pipeline nhưng logic được viết trực tiếp trong code Go thay vì Jenkinsfile, giúp giảm thiểu cấu hình phức tạp. Gói này được thiết kế để đóng vai trò "keo nối" (glue) giữa các component, không phải một container đầy đủ.

Gói có ba khối xây dựng: Pipeline (tập hợp các stage), Stage (tập hợp các step), và Step (đơn vị công việc thực tế). Stage luôn thực thi tuần tự, còn bên trong mỗi stage, các step có thể chạy tuần tự hoặc đồng thời.

✨ Điểm nổi bật

  • 3 khối xây dựng: Pipeline, Stage, Step — mô hình đơn giản, dễ mở rộng.
  • Concurrent hoặc sequential: mỗi stage hỗ trợ chạy step đồng thời hoặc tuần tự, tùy cấu hình.
  • Step interface chuẩn: chỉ cần triển khai Exec(*Request) *Result và Cancel() error để tạo một unit of work.
  • Centralized logging: pipeline.StepContext.Status() cho phép log trạng thái ra out channel, tập trung toàn bộ output.
  • Progress tracking: GetProgressPercent() và Out() để theo dõi tiến trình và trạng thái pipeline theo thời gian thực.
  • Code-first, không DSL: không cần Jenkinsfile hay cấu hình YAML — toàn bộ logic nằm trong Go code.
  • Tiny by design: nhẹ, không mang nặng framework, dễ integrate vào project hiện có.

💡 Vì sao đáng chú ý

Pipeline giải quyết bài toán xây dựng workflow nhiều stage mà không cần phụ thuộc vào Jenkins hay một CI server nặng. Thay vì viết Jenkinsfile, developer chỉ cần implement Step interface trong Go, add vào stage, và chạy — đơn giản và nhanh hơn nhiều cho các team đã dùng Go stack.

Điểm mạnh nhất là sự cân bằng giữa tính năng và sự đơn giản: đủ để orchestrate tác vụ concurrent với logging và progress tracking, nhưng không mang theo overhead của một hệ thống CI hoàn chỉnh. Phù hợp cho internal tooling, automation scripts, hoặc bất kỳ đâu cần glue giữa các service.


#Go #CI-CD #Workflow #Pipeline #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

211.9k
Nov 23, 2026
RepositoryGo
harness/harness

Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries.

39.0k
Nov 23, 2026
RepositoryGo
semaphoreui/semaphore

Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools.

14.4k
Nov 23, 2026
RepositoryGo
concourse/concourse

Concourse is a container-based automation system written in Go. It's mostly used for CI/CD.

7.9k
Nov 16, 2026
RepositoryGo
postgres-ai/database-lab-engine

DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.

2.8k
Nov 11, 2026
RepositoryGo
SAP/jenkins-library

Jenkins shared library for Continuous Delivery pipelines.

824
Nov 17, 2026
RepositoryPython
iam-veeramalla/Jenkins-Zero-To-Hero

Install Jenkins, configure Docker as slave, set up cicd, deploy applications to k8s using Argo CD in GitOps way.

10.1k
Mar 12, 2025
RepositoryJava
gocd/gocd

GoCD - Continuous Delivery server main repository

7.4k
Nov 18, 2026
RepositoryTypeScript
danger/danger-js

⚠️ Stop saying "you forgot to …" in code review

5.5k
Oct 26, 2026