๐ CILens - A Rust CLI for CI/CD Pipeline Analytics
โ Rust ๐ 2026-01-07 ๐ค surdeus ๐๏ธ 2Hey Rustaceans! ![]()
I built CILens, a CLI tool for analyzing GitLab CI/CD pipelines, written in Rust!
I've been using it at my company and it's given me really interesting insights into our CI/CD pipelinesโparticularly useful for DevOps, platform, and infra engineers who need to optimize build times and identify reliability issues.
What it does:
Fetches pipeline & job data from GitLab's GraphQL API
Groups pipelines by job signature (smart clustering)
Shows P50/P95/P99 duration percentiles instead of misleading averages
Detects flaky jobs (intermittent failures)
Calculates time-to-feedback per job (actual dev wait times)
Outputs human-readable summaries or JSON for programmatic use
The Rust bits I'm proud of:
Async/await with Tokio - 500 concurrent requests with backpressure
Intelligent caching (~90% cache hit rate on reruns)
Type-safe GraphQL client (graphql_client)
Zero-copy deserialization with serde
181 unit tests, zero clippy warnings (pedantic mode)
Cross-platform builds (cargo-dist)
Currently supports GitLab only, but the architecture is designed to support integrations with other CI/CD providers (GitHub Actions, Jenkins, CircleCI, etc.).
Feedback welcome! Especially interested in hearing from folks who've built similar analysis tools or worked with large-scale API fetching. ![]()
1 post - 1 participant
๐ท๏ธ Rust_feed
