myntra/pipeline
Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tháng
#1 Repository Của Tháng
#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) *ResultvàCancel() errorđể tạo một unit of work. - Centralized logging:
pipeline.StepContext.Status()cho phép log trạng thái raoutchannel, 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.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries.
Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools.
Concourse is a container-based automation system written in Go. It's mostly used for CI/CD.
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.
Install Jenkins, configure Docker as slave, set up cicd, deploy applications to k8s using Argo CD in GitOps way.