Knowledge-Based Environment Dependency Inference for Python Programs
Hongjie Ye, Wei Chen, Wensheng Dou, Guoquan Wu, Jun Wei
摘要
Besides third-party packages, the Python interpreter and system libraries are also critical dependencies of a Python program. In our empirical study, 34% programs are only compatible with specific Python interpreter versions, and 24% programs require specific system libraries. However, existing techniques mainly focus on inferring third-party package dependencies. Therefore, they can lack other necessary dependencies and violate version constraints, thus resulting in program build failures and runtime errors.
This paper proposes a knowledge-based technique named PyEGo, which can automatically infer dependencies of third-party packages, the Python interpreter, and system libraries at compatible versions for Python programs. We first construct the dependency knowledge graph PyKG, which can portray the relations and constraints among third-party packages, the Python interpreter, and system libraries. Then, by querying PyKG with extracted program features, PyEGo constructs a program-related sub-graph with dependency candidates of the three types. It finally outputs the latest compatible dependency versions by solving constraints in the sub-graph. We evaluate PyEGo on 2,891 single-file Python gists, 100 open-source
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Compatibility Issues in Deep Learning Systems: Problems and Opportunities 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Compatibility Issues in Deep Learning Systems: Problems and Opportunities 引用了 Fixing dependency errors for Python build reproducibility
- Compatibility Issues in Deep Learning Systems: Problems and Opportunities 引用了 Restoring Execution Environments of Jupyter Notebooks
- Demystifying Dependency Bugs in Deep Learning Stack 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Demystifying Dependency Bugs in Deep Learning Stack 引用了 Fixing dependency errors for Python build reproducibility
- Demystifying Dependency Bugs in Deep Learning Stack 引用了 Interactive, effort-aware library version harmonization
- Fixing dependency errors for Python build reproducibility 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Automatically Resolving Dependency-Conflict Building Failures via Behavior-Consistent Loosening of Library Version Constraints 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Automatically Resolving Dependency-Conflict Building Failures via Behavior-Consistent Loosening of Library Version Constraints 引用了 Fixing dependency errors for Python build reproducibility
- Restoring Execution Environments of Jupyter Notebooks 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Knowledge-Based Version Incompatibility Detection for Deep Learning 引用了 Demystifying Dependency Bugs in Deep Learning Stack
- Knowledge-Based Version Incompatibility Detection for Deep Learning 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Knowledge-Based Version Incompatibility Detection for Deep Learning 引用了 Fixing dependency errors for Python build reproducibility
- Knowledge-Based Version Incompatibility Detection for Deep Learning 引用了 Restoring Execution Environments of Jupyter Notebooks
引用它的顶会 Paper10
- Generative Type Inference for PythonYun Peng, Chaozheng Wang, Wenxuan Wang, Cuiyun Gao 等ASE 2023 · 29 次引用
- Demystifying Dependency Bugs in Deep Learning StackKaifeng Huang, Bihuan Chen, Susheng Wu, Junming Cao 等FSE 2023 · 20 次引用
- Compatibility Issues in Deep Learning Systems: Problems and OpportunitiesJun Wang, Guanping Xiao, Shuai Zhang, Huashan Lei 等FSE 2023 · 13 次引用
- Automatically Resolving Dependency-Conflict Building Failures via Behavior-Consistent Loosening of Library Version ConstraintsHuiyan Wang, Shuguan Liu, Lingyu Zhang, Chang XuFSE 2023 · 8 次引用
- Knowledge-Based Version Incompatibility Detection for Deep LearningZhongkai Zhao, Bonan Kou, Mohamed Yilmaz Ibrahim, Muhao Chen 等FSE 2023 · 7 次引用
它引用的 Paper6
- Watchman: monitoring dependency conflicts for Python library ecosystemYing Wang, Ming Wen, Yepang Liu, Yibo Wang 等ICSE 2020 · 65 次引用
- Fixing dependency errors for Python build reproducibilitySuchita Mukherjee, Abigail Almanza, Cindy Rubio-GonzálezISSTA 2021 · 55 次引用
- Restoring Execution Environments of Jupyter NotebooksJiawei Wang, Li Li, Andreas ZellerICSE 2021 · 49 次引用
- Interactive, effort-aware library version harmonizationKaifeng Huang, Bihuan Chen, Bowen Shi, Ying Wang 等FSE 2020 · 32 次引用
- Taming behavioral backward incompatibilities via cross-project testing and analysisLingchao Chen, Foyzul Hassan, Xiaoyin Wang, Lingming ZhangICSE 2020 · 30 次引用
相关 Paper
- Less is More? An Empirical Study on Configuration Issues in Python PyPI EcosystemYun Peng, Ruida Hu, Ruoke Wang, Cuiyun Gao 等ICSE 2024 · 5 次引用
- Conflict-aware Inference of Python Compatible Runtime Environments with Domain Knowledge GraphWei Cheng, Xiangrong Zhu, Wei HuICSE 2022 · 16 次引用
- smartPip: A Smart Approach to Resolving Python Dependency Conflict IssuesChao Wang, Rongxin Wu, Haohao Song, Jiwu Shu 等ASE 2022 · 15 次引用
- A Large-Scale Empirical Study on Semantic Versioning in Golang EcosystemWenke Li, Feng Wu, Cai Fu, Fan ZhouASE 2023 · 7 次引用
- How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with HeraYifan Xie, Zhouyang Jia, Shanshan Li, Ying Wang 等ASE 2024 · 2 次引用
