Facebook Engineering Blog Icon Facebook Engineering Blog

Facebook has a tool that learns to fix bugs automatically?!

This week on the Facebook code blog they shared details about a new tool called Getafix that automatically finds fixes for bugs and offers them to engineers to approve. 😎

Modern production codebases are extremely complex and are updated constantly. To create a system that can automatically find fixes for bugs — without help from engineers — we built Getafix to learn from engineers’ previous changes to the codebase. It finds hidden patterns and uses them to identify the most likely remediations for new bugs.

Getafix has been deployed to production at Facebook, where it now contributes to the stability of apps that billions of people use.

The goal of Getafix is to let computers take care of the routine work, albeit under the watchful eye of a human, who must decide when a bug requires a complex, nonroutine remediation.

Whether or not this tool will be open sourced or shared at large remains to be seen. How cool would it be to have something like this deployed to your codebase to find and suggest fixes to your bugs?

Source: https://code.fb.com/developer-tools/getafix-how-facebook-tools-learn-to-fix-bugs-automatically/

Facebook has a tool that learns to fix bugs automatically?!

Comments

Sign in or join to comment

Jerod Santo

Jerod Santo

Omaha, Nebraska

Jerod co-hosts The Changelog, crashes JS Party, and takes out the trash (his old code) once in awhile.

2018-11-08T16:06:53Z ago

I would love to run this tool on our codebase for awhile and see what it comes up with. The idea of mining ‘fix templates’ for the correct one is super cool as well.

Another interesting data point that I’d love their engineering team to release: what percentage of Getafix’s PRs are actually merged without modification? I imagine that number is relatively low, but potentially trending up over time.

0:00 / 0:00