Abstract
Modern software systems heavily rely on external libraries developed by third-parties to ensure efficient development. However, frequent library upgrades can lead to compatibility issues between the libraries and their client systems. In this paper, we introduce CompSuite, a dataset that includes 123 real-world Java client-library pairs where upgrading the library causes an incompatibility issue in the corresponding client. Each incompatibility issue in CompSuite is associated with a test case authored by the developers, which can be used to reproduce the issue. The dataset also provides a command-line interface that simplifies the execution and validation of each issue. With this infrastructure, users can perform an inspection of any incompatibility issue with the push of a button, or reproduce an issue step-by-step for a more detailed investigation. We make CompSuite publicly available to promote open science. We believe that various software analysis techniques, such as compatibility checking, debugging, and regression test selection, can benefit from CompSuite.
Introduction
Modern software is a "tower of dependencies." Developers rely heavily on third-party libraries to accelerate development cycles, but upgrading those libraries is a notorious pain point. Even if a new version compiles perfectly, it might introduce behavioral incompatibilities—subtle changes in logic that cause the system to crash or behave incorrectly at runtime.
The challenge for researchers is that existing datasets for these issues are often small, poorly documented, or lack manual validation. Without a "ground truth" benchmark, it is difficult to evaluate how well new tools, such as automated compatibility checkers or debuggers, actually perform on real-world problems.
Methodology
The authors followed a rigorous multi-step process to build CompSuite, focusing on automation and manual verification to ensure high data quality. The process began with identifying popular Java projects on GitHub and widely used libraries on Maven Central. Using the Maven Versions Plugin, the team systematically upgraded dependencies in these projects to identify failing tests.
To ensure the failure was specifically caused by the library upgrade, the authors upgraded only one dependency at a time and manually inspected failure messages. This filtering process removed "flaky" tests or unrelated environment issues. Finally, they developed CompRunner, a command-line interface (CLI) that automates the entire reproduction pipeline—cloning the repository, checking out the correct version, and running the incompatibility-revealing test.
Dataset Characteristics
CompSuite provides a diverse and large-scale benchmark for library upgrade research. The dataset includes 123 reproducible client-library pairs originating from 88 distinct client projects and 104 different libraries.
Each entry in the dataset includes the project SHA, the old and new library versions, the specific failing test case, and the exact command needed to run it. Unlike general bug datasets like Defects4J, CompSuite is specifically curated for library upgrade regressions in large, mature software systems like retrofit and druid.
Key Insights and Research Utility
A primary insight from CompSuite is the importance of behavioral changes over simple syntactic breaks. Many real-world failures occur even when the API remains stable (e.g., a method signature is unchanged, but its internal logic is altered). The dataset relies on identifying "incompatibility-revealing tests"—tests that pass on the base version ($V_{base}$) but fail immediately after a library upgrade ($V_{incomp}$).
CompSuite serves as a benchmark for three primary research scenarios:
- Compatibility Checkers: Testing if tools can predict failures before they occur.
- Regression Test Selection (RTS): Evaluating if RTS tools correctly identify which tests need to be run when a library changes.
- Fault Localization: Assisting debuggers in finding the specific line in a library that caused a client-side failure.
Conclusion and Future Work
While CompSuite provides a robust foundation for compatibility research, it is currently limited to the Java/Maven ecosystem and depends on the existence of developer-written tests. Future work may involve expanding the dataset to other languages and using the data to train machine learning models that can automatically suggest fixes for library-induced breakages. CompSuite and its associated tools are publicly available to support the research community.
Summary updated