# Production-Driven Patch Generation

**Authors:** Thomas Durieux, Youssef Hamadi, Martin Monperrus

arXiv: 1812.04475 · 2018-12-12

## TL;DR

This paper introduces a novel approach to patch generation by creating patches directly in production environments, leveraging live failure analysis and shadow traffic testing to improve repair applicability.

## Contribution

It proposes a production-driven patch generation method that performs live regression testing using shadow traffic, removing the need for failing test cases.

## Key findings

- Enables on-the-fly patch generation in production environments
- Uses shadow traffic for live regression testing of patches
- Eliminates dependency on failing test cases for repair

## Abstract

We present an original concept for patch generation: we propose to do it directly in production. Our idea is to generate patches on-the-fly based on automated analysis of the failure context. By doing this in production, the repair process has complete access to the system state at the point of failure. We propose to perform live regression testing of the generated patches directly on the production traffic, by feeding a sandboxed version of the application with a copy of the production traffic, the 'shadow traffic'. Our concept widens the applicability of program repair, because it removes the requirements of having a failing test case.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1812.04475/full.md

## Figures

1 figure with captions in the complete paper: https://tomesphere.com/paper/1812.04475/full.md

## References

9 references — full list in the complete paper: https://tomesphere.com/paper/1812.04475/full.md

---
Source: https://tomesphere.com/paper/1812.04475