SShortSingh.
Back to feed

Developer builds free CLI tool to track GitHub Actions CI success trends over time

0
·1 views

A developer created 'citrend', a zero-dependency command-line tool that pulls GitHub Actions workflow run history and surfaces weekly success rate trends. The tool was built after a community discussion revealed that engineers had no lightweight, local way to monitor whether their CI pipelines were improving or degrading over time. Citrend calculates metrics such as overall success rate, wasted runs, and compute time lost to failures, cancellations, and timeouts. It caches run data locally under ~/.citrend/ and requires no network call to generate reports after the initial sync. The tool is available as both an npm package and a Python package via PyPI, and works with public repositories without a GitHub token.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Ash Framework: AshJsonApi, AshGraphQL, and AshTypescript for Elixir API Integration

The Ash framework for Elixir offers a suite of tools — AshJsonApi, AshGraphQL, and AshTypescript — designed to reduce boilerplate and streamline API development. Building scalable, production-ready applications typically requires significant effort beyond core business logic, including database setup, API design, and infrastructure configuration. Ash addresses this by automating repetitive integration tasks, similar to how Go's oapi-codegen generates server code from Swagger contracts. The article introduces these three Ash extensions as a way to establish predictable, well-documented contracts between frontend and backend without rewriting compatibility layers repeatedly. The author's goal is to orient developers toward these tools and encourage hands-on exploration rather than provide an exhaustive tutorial.

0
ProgrammingDEV Community ·

Caching Bug in Next.js Badge App Triggered Duplicate GitHub API Calls Under Load

A developer discovered a 'thundering herd' bug in CommitPulse, a Next.js app that renders GitHub contribution data as SVG badges. Although the cache functioned correctly for sequential requests, multiple concurrent requests for the same username each independently checked the cache, all found a miss, and all fired separate calls to GitHub's API before any response had returned. This pattern becomes costly because GitHub's GraphQL API enforces a rate limit of 5,000 points per hour, and a traffic spike — such as a trending repository or Hacker News post — can trigger dozens of simultaneous identical upstream requests. The root cause is the absence of in-flight request deduplication: the cache only prevents redundant calls after a response is stored, not while the first fetch is still pending. The fix involves tracking in-progress Promises in a separate Map so that any concurrent request for the same key awaits the already-running fetch instead of launching a new one.

0
ProgrammingDEV Community ·

How the STAR Framework and STRIDE Model Make Threat Modeling Easier to Grasp

Threat modeling is a structured approach to identifying and understanding security risks within a system before they can be exploited. The STAR framework begins with Scope, using Data Flow Diagrams to map processes, data stores, external entities, and trust boundaries across an environment. In cloud settings, this mapping grows more complex due to shared responsibility models, IAM roles, and rapidly changing architectures. Once the environment is mapped, the STRIDE model helps analysts systematically categorize threats — including spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege. Together, these frameworks ensure security teams examine potential attack paths from every angle rather than trying to predict specific future incidents.

0
ProgrammingDEV Community ·

The 80/15/5 Rule That Could Save Your AI Engineering Budget

AI engineers are increasingly adopting a three-tier model selection framework to balance performance and cost when building LLM-powered applications. The approach suggests that roughly 80% of routine tasks — such as bug fixes, API integrations, and data cleaning — can be handled efficiently by lightweight budget models like GPT-Mini. A middle tier of frontier models is recommended for the 15% of tasks requiring deeper contextual reasoning, such as multi-step logic or translating abstract requirements into working code. Only the most complex enterprise-grade challenges, estimated at just 5%, justify the significant expense of the largest, most capable models. The framework warns that defaulting to top-tier models for all tasks is financially unsustainable, while relying solely on budget models risks failure under real enterprise complexity.

Developer builds free CLI tool to track GitHub Actions CI success trends over time · ShortSingh