Lune

FSE2023Top-tier venue

Automatically Resolving Dependency-Conflict Building Failures via Behavior-Consistent Loosening of Library Version Constraints

Huiyan Wang, Shuguan Liu, Lingyu Zhang, Chang Xu

Abstract

Python projects grow quickly by code reuse and building automation based on third-party libraries. However, the version constraints associated with these libraries are prone to mal-configuration, and this forms a major obstacle to correct project building (known as dependency-conflict (DC) building failure). Our empirical findings suggest that such mal-configured version constraints were mainly prepared manually, and could essentially be refined for better quality to improve the chance of successful project building. We propose a LooCo approach to refining Python projects’ library version constraints by automatically loosening them to maximize their solutions, while keeping the libraries to observe their original behaviors. Our experimental results with real-life Python projects report that LooCo could efficiently refine library version constraints (0.4s per version loosening) by effective loosening (5.5 new versions expanded on average) automatically, and transform 54.8% originally unsolvable cases into solvable ones (i.e., successful building) and significantly increase solutions (21 more on average) for originally solvable cases.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fixing dependency errors for Python build reproducibility cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • Guarding the Lifeline: A First Look and Automated Defect Diagnosis for ROS Central Index cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • Guarding the Lifeline: A First Look and Automated Defect Diagnosis for ROS Central Index cites Fixing dependency errors for Python build reproducibility
  • Guarding the Lifeline: A First Look and Automated Defect Diagnosis for ROS Central Index cites How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with Hera
  • Knowledge-Based Environment Dependency Inference for Python Programs cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • Knowledge-Based Environment Dependency Inference for Python Programs cites Fixing dependency errors for Python build reproducibility
  • How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with Hera cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with Hera cites Fixing dependency errors for Python build reproducibility
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with HeraYifan Xie, Zhouyang Jia, Shanshan Li, Ying Wang et al.ASE 2024 · 2 citations
  2. Guarding the Lifeline: A First Look and Automated Defect Diagnosis for ROS Central IndexWeijie Sun, Huiyan Wang, Ying Wang, Chang XuISSTA 2026

Builds on11

  1. Watchman: monitoring dependency conflicts for Python library ecosystemYing Wang, Ming Wen, Yepang Liu, Yibo Wang et al.ICSE 2020 · 65 citations
  2. Fixing dependency errors for Python build reproducibilitySuchita Mukherjee, Abigail Almanza, Cindy Rubio-GonzálezISSTA 2021 · 55 citations
  3. Exploring how deprecated Python library APIs are (not) handledJiawei Wang, Li Li, Kui Liu, Haipeng CaiFSE 2020 · 52 citations
  4. Understanding the Threats of Upstream Vulnerabilities to Downstream Projects in the Maven EcosystemYulun Wu, Zeliang Yu, Ming Wen, Qiang Li et al.ICSE 2023 · 41 citations
  5. Knowledge-Based Environment Dependency Inference for Python ProgramsHongjie Ye, Wei Chen, Wensheng Dou, Guoquan Wu et al.ICSE 2022 · 21 citations

Related papers

  1. smartPip: A Smart Approach to Resolving Python Dependency Conflict IssuesChao Wang, Rongxin Wu, Haohao Song, Jiwu Shu et al.ASE 2022 · 15 citations
  2. Less is More? An Empirical Study on Configuration Issues in Python PyPI EcosystemYun Peng, Ruida Hu, Ruoke Wang, Cuiyun Gao et al.ICSE 2024 · 5 citations
  3. Interactive, effort-aware library version harmonizationKaifeng Huang, Bihuan Chen, Bowen Shi, Ying Wang et al.FSE 2020 · 32 citations
  4. Efficiently Trimming the Fat: Streamlining Software Dependencies with Java Reflection and Dependency AnalysisXiaohu Song, Ying Wang, Xiao Cheng, Guangtai Liang et al.ICSE 2024 · 4 citations
  5. Which Is Better For Reducing Outdated and Vulnerable Dependencies: Pinning or FloatingƒImranur Rahman, Jill Marley, William Enck, Laurie A. WilliamsASE 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines