Who tests the testers? Making and testing pipelines
summary
Presents five practical techniques to stop pipeline changes from breaking: schema linting (catches YAML syntax but not logic), running full branch pipelines (accurate but slow), local job simulators like GitLab CI local and its TypeScript/Python variants (faster but can diverge from real CI), programmatic generation with gitlab-ci-python (gip) (lets pipelines be unit tested but doesn't automatically catch rule-typos), and a custom static-testing tool CI test that snapshots jobs and successfully helped refactor a thousand-line GitLab YAML without changing pipeline outputs.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 1:04What is a pipeline?
- 3:31Why pipelines matter
- 5:36Making a GitLab pipeline
- 9:30Pipeline failure example
- 13:03Human errors in pipelines
- 14:07Five techniques to prevent failures
- 15:12Linting CI config files
- 18:52End-to-end pipeline testing
- 21:03Running jobs locally
- 23:15Static analysis testing
- 28:22Dynamic pipeline generation
- 34:44Using Cog for configuration
- 36:56Choosing the right approach
- 38:23Resources and closing
