Watchman
Ying Wang, Ming Wen, Yepang Liu et al. · 2020
The PyPI ecosystem has indexed millions of Python libraries to allow developers to automatically download and install dependencies of their projects based on the specified version constraints. Despite the convenience brought by automation, version constraints in Python projects can easily conflict, resulting in build failures. We refer to such conflicts as Dependency Confict (DC) issues. Although DC issues are common in Python projects, developers lack tool support to gain a comprehensive knowledge for diagnosing the root causes of these issues. In this paper, we conducted an empirical study on 235 real-world DC issues. We studied the manifestation patterns and fixing strategies of these issues and found several key factors that can lead to DC issues and their regressions. Based on our findings, we designed and implemented Watchman, a technique to continuously monitor dependency conflicts for the PyPI ecosystem. In our evaluation, Watchman analyzed PyPI snapshots between 11 Jul 2019 and 16 Aug 2019, and found 117 potential DC issues. We reported these issues to the developers of the corresponding projects. So far, 63 issues have been confirmed, 38 of which have been quickly fixed by applying our suggested patches.
Cited by 66 works. doi:10.1145/3377811.3380426 Open-access PDF
Authors
References
- Characterizing and detecting performance bugs for smartphone applications
- Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Taming Android fragmentation: characterizing and detecting compatibility issues for Android apps
- Python Data Analytics
- Ecosystem-level determinants of sustained activity in open-source projects: a case study of the PyPI ecosystem
- On the topology of package dependency networks
- Do the dependency conflicts in my project matter?
- Challenges in Software Ecosystems Research
- Why do software packages conflict?
- ConflictJS