GSoC 2025: AI-Driven Test Selection for Uyuni
The openSUSE Project took part in Google Summer of Code 2025, and one of its projects is a large-scale effort titled “AI-Driven Test Selection in Uyuni’s Pull Request Acceptance Tests”.
The Challenge: Slow Feedback in Pull Request Testing
To ensure code quality in Uyuni, an extensive suite of acceptance tests runs for every new pull request. While this is crucial for preventing breakages from reaching the master branch, the process has its challenges. Currently, these tests execute most of the suite, leading to an average runtime of about one hour. This long wait delays valuable feedback for developers and also increases infrastructure costs.
The Project: Building a Smarter, Faster Testing Strategy
The goal of this GSoC project is to tackle this challenge head-on by developing a machine learning model.
Inspired by Facebook’s “Predictive Test Selection” paper, the model will be trained on historical data, including past pull requests, test results, and code coverage data. Its purpose is to predict the smallest possible subset of tests that are most likely to fail for any new pull request.
By running only this highly relevant, smaller set of tests, the aims are to:
- Dramatically speed up feedback for developers.
- Reduce infrastructure costs.
- Maintain a high standard of test coverage.
The project will involve a fantastic mix of technologies, including Python for machine learning, Ruby and Cucumber from the test suite, and GitHub Actions and the GitHub API for integration.
Timeline
The project runs through the summer, with the midterm evaluation in August and the final submission in late October. The expected impact is a measurable improvement in Uyuni’s developer productivity.