CI/CD Pipeline Retriggering Using Failure-Aware Rule Selection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In large CI/CD systems, failed builds can consume substantial resources due to the need to retrigger pipelines that have failed, leading to inefficiencies and resource overuse.
Innovation Solution
A rule engine is utilized to analyze build server data and apply predefined rules to selectively retrigger only those pipelines that meet specific criteria, such as resource availability and failure type, thereby optimizing resource use and improving efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all failed pipelines are retriggered in large CI/CD systems, then comprehensive bug fixing can be achieved, but resource consumption increases substantially
Solution Approach 1:
The patent segments the set of all failed pipelines into different categories based on failure types (infrastructure failures vs. code bugs). By dividing the retriggering task into targeted segments rather than processing all failures uniformly, the system retriggeres only the necessary subset of pipelines, thereby reducing resource consumption while maintaining build reliability.
2Productivity
If selective retriggering is implemented using a rule engine, then resource efficiency improves, but system complexity increases
Solution Approach 1:
The patent introduces a rule engine as an intermediary component between the CI/CD system and the pipeline retriggering process. This intermediary automatically analyzes pipeline failure data, applies predefined rules to determine which pipelines need retriggering, and executes the selective retriggering. While this adds a component to the system, it automates the decision-making process and improves productivity by eliminating manual analysis.
3Use of energy by moving object
If manual analysis of failed builds is performed, then resource consumption is reduced, but time consumption increases
Solution Approach 1:
The patent implements a self-service mechanism where the rule engine automatically analyzes failed build data and makes decisions about which pipelines to retrigger without requiring manual human analysis. The system serves itself by autonomously processing failure information, applying rules, and executing retriggering decisions, thereby reducing both resource consumption and time loss simultaneously.
Data Source
AI summary
A method of improving continuous integration, continuous delivery (CI/CD) pipelines includes receiving an indication of a failure of a CI/CD pipeline of a plurality of CI/CD pipelines. The method further includes processing build status information by a rule engine, the build status information indicative of builds executed within the plurality of CI/CD pipelines. The method further includes applying a set of rule to the build status information to select a subset of the plurality of CI/CD pipelines, wherein the set of rules includes one or more of a resource availability rule or a failure type rule. The method further includes executing the subset of CI/CD pipelines selected by the rule engine.


