What problem does it solve?
This Skill addresses the need for efficient parallel execution of tasks within CI/CD pipelines, enabling faster build and deployment cycles by running independent jobs concurrently.
Core Features & Use Cases
- Parallel Stage Execution: Run multiple stages of your pipeline simultaneously to reduce overall build time.
- Dependency Management: Define explicit dependencies between stages using the
needs key, ensuring correct execution order.
- Stage Isolation: Use the
independent key to prevent a stage's failure from halting unrelated parallel stages, crucial for monorepos.
- Compile-Time Pruning: Understand how rulesets can cause entire stages to be removed before execution, and how to manage
needs dependencies accordingly.
- Use Case: In a monorepo, you can have separate stages for building and testing the backend and frontend applications, running them in parallel. A subsequent deployment stage would then wait for both to complete successfully.
Quick Start
Use the vela-stages skill to define a pipeline with two parallel stages, 'build' and 'test', where 'deploy' depends on both.