An Empirical Analysis of Cross-OS Portability Issues in Python Projects
Abstract
While Python is designed as a cross-platform language, real-world applications encounter portability failures when deployed across different operating systems. We present the first large-scale empirical study of cross-OS portability issues in Python, analyzing 2,042 open-source repositories using two complementary approaches: systematic cross-OS test reexecution and manual analysis of GitHub issues. Our cross-platform testing of 500 projects reveals that 11.2% exhibit OS-dependent test failures. Through systematic analysis of 240 GitHub issues, we confirm 102 genuine portability problems spanning 95 additional projects. We develop a comprehensive taxonomy identifying 7 primary failure categories - with file/directory operations, process management, and library dependencies being most prevalent - along with 24 distinct sub-categories, 15 diagnostic signatures, and 4 systematic repair patterns. Our evaluation reveals that existing static analysis tools provide minimal support for portability detection, while large language models achieve 40-79% accuracy in identifying issues and 50-77% success in generating fixes when provided with structured guidance. Through 33 contributed pull requests, we demonstrate practical applicability and developer acceptance (17 merged, zero rejected) of our findings. This work establishes the first comprehensive baseline for understanding and addressing cross-OS portability issues in Python, providing actionable insights for developers, tool designers, and the broader research community.
Create a lesson
Metadata
- Journal
- MSR 2026: Proceedings of the 23rd International Conference on Mining Software Repositories
Related papers
Do Vibe-Coded Projects Contain Tests? An Empirical Study
Shared title terminologycs.SEAndre Hora, João Eduardo Montandon, Fabio Petrillo
The Construction of an Empirical Dataset of Incomplete Software Changes from Open Source Projects
Shared title terminologycs.SESavira Ramadhanty, Profir-Petru Pârţachi, Yoshiya Ishida et al.
Evaluating Shaker for Flaky Test Detection in Python Projects
Shared title terminologycs.SEGabriela Leal, Denini Silva, Leopoldo Teixeira
Cross-Platform vs Native Mobile Development: An Empirical Study of Software Quality Trade-offs
Shared title terminologycs.SEAlexandru Ilovan
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
Analyzing and Clarifying Software Change Intentions via Project Asset Dependency Mining
Shared title terminologycs.SEYingtao Fang, Zhi Jin, Tiankuo Zhao et al.