{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:58:57Z","timestamp":1790423937302,"version":"4.1.0"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CCF-2145774"],"award-info":[{"award-number":["CCF-2145774"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CCF-2217696"],"award-info":[{"award-number":["CCF-2217696"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,4,10]]},"abstract":"<jats:p>Regression testing is an essential part of software development to ensure high-quality software; but the presence of flaky tests makes the testing outcomes unreliable. It is essential to proactively detect flaky tests, so developers are aware of them early on and can react appropriately in case they fail. While there has been prior work in detecting flaky tests, they either are developed to focus on specific flaky test types or can be imprecise in their analyses, such as by relying on AI models for prediction.<\/jats:p>\n                  <jats:p>We present ChaosAPI, a framework to support detecting a variety of different types of flaky tests. Our insight is that the most effective approach to detecting flaky tests is to target the nondeterministic components that lead tests to have the flaky behavior in the first place. In particular, we target specific APIs within the Java Standard Library that all Java code relies on and that are known to exhibit nondeterministic behavior, such as those related to system time, concurrency, and environmental factors. During test execution, ChaosAPI modifies the behavior of these API calls, perturbing inputs and return values of these APIs in a systematic manner while still remaining compliant with the API specification. We can detect flaky tests by observing whether tests that previously passed would now fail when run through ChaosAPI.<\/jats:p>\n                  <jats:p>Our evaluation on a prior dataset of known flaky tests, as well as running on test suites of other popular open-source projects, demonstrates that ChaosAPI not only detects more flaky tests than simple rerunning across a wide range of projects but also detects them more efficiently, making ChaosAPI a practical addition to the toolbox of flaky test detection techniques.<\/jats:p>","DOI":"10.1145\/3798265","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"1790-1816","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Detecting Flaky Tests by Controlling Nondeterministic API Behavior"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0005-3695-103X","authenticated-orcid":false,"given":"Hengchen","family":"Yuan","sequence":"first","affiliation":[{"name":"The University of Texas at Austin, Electrical and Computer Engineering, Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0003-2463-7292","authenticated-orcid":false,"given":"Jiefang","family":"Lin","sequence":"additional","affiliation":[{"name":"The University of Texas at Austin, Electrical and Computer Engineering, Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8239-3124","authenticated-orcid":false,"given":"August","family":"Shi","sequence":"additional","affiliation":[{"name":"The University of Texas at Austin, Electrical and Computer Engineering, Austin, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2018. ISO\/IEC 9899:2018 \u2014 Programming Languages \u2014 C."},{"key":"e_1_3_1_3_2","unstructured":"2021. Flaky Test Dataset to Accompany \u201cFlakeFlagger: Predicting Flakiness Without Rerunning Tests\u201d. https:\/\/zenodo.org\/record\/4450723#.YAhKgi1h1GQ."},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Amal Akli Guillaume Haben Sarra Habchi Mike Papadakis and Yves Le Traon. 2023. FlakyCat: Predicting Flaky Tests Categories using Few-Shot Learning. In International Conference on Automation of Software Test. 140\u2013151. https:\/\/doi.org\/10.1109\/ast58925.2023.00018 10.1109\/ast58925.2023.00018","DOI":"10.1109\/ast58925.2023.00018"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","unstructured":"Nadia Alshahwan Mark Harman and Alexandru Marginean. 2023. Software Testing Research Challenges: An Industrial Perspective. In International Conference on Software Testing Verification and Validation. 1\u201310. https:\/\/doi.org\/10.1109\/icst57152.2023.00008 10.1109\/icst57152.2023.00008","DOI":"10.1109\/icst57152.2023.00008"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","unstructured":"Abdulrahman Alshammari Christopher Morris Michael Hilton and Jonathan Bell. 2021. FlakeFlagger: Predicting Flakiness Without Rerunning Tests. In International Conference on Software Engineering. 1572\u20131584. https:\/\/doi.org\/10.1109\/icse43902.2021.00140 10.1109\/icse43902.2021.00140","DOI":"10.1109\/icse43902.2021.00140"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","unstructured":"Jonathan Bell Owolabi Legunsen Michael Hilton Lamyaa Eloussi Tifany Yung and Darko Marinov. 2018. DeFlaker: Automatically detecting flaky tests. In International Conference on Software Engineering. 433\u2013444. https:\/\/doi.org\/10.1145\/3180155.3180164 10.1145\/3180155.3180164","DOI":"10.1145\/3180155.3180164"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","unstructured":"Yang Chen and Reyhaneh Jabbarvand. 2024. Neurosymbolic Repair of Test Flakiness. In International Symposium on Software Testing and Analysis. 1402\u20131414. https:\/\/doi.org\/10.1145\/3650212.3680369 10.1145\/3650212.3680369","DOI":"10.1145\/3650212.3680369"},{"key":"e_1_3_1_9_2","unstructured":"DiUS. 2025. java-faker. https:\/\/github.com\/DiUS\/java-faker. GitHub repository. Commit: a8b8ff0acc6fcc629d08a3a9952f83be56a9a3c3.."},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","unstructured":"Saikat Dutta August Shi Rutvik Choudhary Zhekun Zhang Aryaman Jain and Misailovic Sasa. 2020. Detecting Flaky Tests in Probabilistic and Machine Learning Applications. In International Symposium on Software Testing and Analysis. 211\u2013224. https:\/\/doi.org\/10.1145\/3395363.3397366 10.1145\/3395363.3397366","DOI":"10.1145\/3395363.3397366"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","unstructured":"Moritz Eck Fabio Palomba Marco Castelluccio and Alberto Bacchelli. 2019. Understanding flaky tests: The developer\u2019s perspective. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 830\u2013840. https:\/\/doi.org\/10.1145\/3338906.3338945 10.1145\/3338906.3338945","DOI":"10.1145\/3338906.3338945"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/tse.2022.3201209"},{"key":"e_1_3_1_13_2","unstructured":"Wolfgang Frisch. 2024. libfaketime: Fake time for user-space programs. https:\/\/github.com\/wolfcw\/libfaketime. Accessed Jan. 2026."},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","unstructured":"Mark Harman and Peter O\u2019Hearn. 2018. From start-ups to scale-ups: Opportunities and open problems for static and dynamic program analysis. In International Working Conference on Source Code Analysis and Manipulation. 1\u201323. https:\/\/doi.org\/10.1109\/scam.2018.00009 10.1109\/scam.2018.00009","DOI":"10.1109\/scam.2018.00009"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","unstructured":"Emily Kowalczyk Karan Nair Zebao Gao Leo Silberstein Teng Long and Atif Memon. 2020. Modeling and Ranking Flaky Tests at Apple. In International Conference on Software Engineering Software Engineering in Practice. 110\u2013119. https:\/\/doi.org\/10.1145\/3377813.3381370 10.1145\/3377813.3381370","DOI":"10.1145\/3377813.3381370"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","unstructured":"Adriaan Labuschagne Laura Inozemtseva and Reid Holmes. 2017. Measuring the cost of regression testing in practice: A study of Java projects Using continuous integration. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 821\u2013830. https:\/\/doi.org\/10.1145\/3106237.3106288 10.1145\/3106237.3106288","DOI":"10.1145\/3106237.3106288"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","unstructured":"Wing Lam Kivan\u00e7 Mu\u015flu Hitesh Sajnani and Suresh Thummalapenta. 2020. A Study on the Lifecycle of Flaky Tests. In International Conference on Software Engineering. 1471\u20131482. https:\/\/doi.org\/10.1145\/3377811.3381749 10.1145\/3377811.3381749","DOI":"10.1145\/3377811.3381749"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","unstructured":"Wing Lam Reed Oei August Shi Darko Marinov and Tao Xie. 2019. iDFlakies: A framework for detecting and partially classifying flaky tests. In International Conference on Software Testing Verification and Validation. 312\u2013322. https:\/\/doi.org\/10.1109\/icst.2019.00038 10.1109\/icst.2019.00038","DOI":"10.1109\/icst.2019.00038"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","unstructured":"Tanakorn Leesatapornwongsa Xiang Ren and Suman Nath. 2022. FlakeRepro: Automated and Efficient Reproduction of Concurrency-Related Flaky Tests. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1509\u20131520. https:\/\/doi.org\/10.1145\/3540250.3558956 10.1145\/3540250.3558956","DOI":"10.1145\/3540250.3558956"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","unstructured":"Chengpeng Li Farnaz Behrang August Shi and Peng Liu. 2025. FlakyGuard: Automatically Fixing Flaky Tests at Industry Scale. In International Conference on Automated Software Engineering. 2158\u20132170. https:\/\/doi.org\/10.1109\/ase63991.2025.00179 10.1109\/ase63991.2025.00179","DOI":"10.1109\/ase63991.2025.00179"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","unstructured":"Chengpeng Li and August Shi. 2022. Evolution-Aware Detection of Order-Dependent Flaky Tests. In International Symposium on Software Testing and Analysis. 114\u2013125. https:\/\/doi.org\/10.1145\/3533767.3534404 10.1145\/3533767.3534404","DOI":"10.1145\/3533767.3534404"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"Chengpeng Li Chenguang Zhu Wenxi Wang and August Shi. 2022. Repairing Order-Dependent Flaky Tests via Test Generation. In International Conference on Software Engineering. 1881\u20131892. https:\/\/doi.org\/10.1145\/3510003.3510173 10.1145\/3510003.3510173","DOI":"10.1145\/3510003.3510173"},{"key":"e_1_3_1_23_2","unstructured":"Rog\u00e9rio Liesenfeld. 2024. JMockit Toolkit. https:\/\/jmockit.github.io\/. Accessed Jan. 2026."},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","unstructured":"Qingzhou Luo Farah Hariri Lamyaa Eloussi and Darko Marinov. 2014. An Empirical Analysis of Flaky Tests. In International Symposium on Foundations of Software Engineering. 643\u2013653. https:\/\/doi.org\/10.1145\/2635868.2635920 10.1145\/2635868.2635920","DOI":"10.1145\/2635868.2635920"},{"key":"e_1_3_1_25_2","unstructured":"Mockito Contributors. 2024. Mockito Framework. https:\/\/site.mockito.org\/. Accessed Jan. 2026."},{"key":"e_1_3_1_26_2","unstructured":"Oracle. [n. d.]. Java Platform SE 8: System.currentTimeMillis(). https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/lang\/System.html#currentTimeMillis. [Online; accessed 27-June-2025]."},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","unstructured":"Owain Parry Michael Hilton Gregory M. Kapfhammer and Phil McMinn. 2022. What Do Developer-Repaired Flaky Tests Tell Us About the Effectiveness of Automated Flaky Test Detection?. In International Conference on Automation of Software Test. 160\u2013164. https:\/\/doi.org\/10.1145\/3524481.3527227 10.1145\/3524481.3527227","DOI":"10.1145\/3524481.3527227"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3476105"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-023-10307-w"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-022-10227-1"},{"key":"e_1_3_1_31_2","unstructured":"Python Software Foundation. 2024. The Python Standard Library. https:\/\/docs.python.org\/3\/library\/. Accessed Jan. 2026."},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","unstructured":"Shanto Rahman Abdelrahman Baz Sasa Misailovic and August Shi. 2024. Quantizing Large-Language Models for Predicting Flaky Tests. In International Conference on Software Testing Verification and Validation. 93\u2013104. https:\/\/doi.org\/10.1109\/icst60714.2024.00018 10.1109\/icst60714.2024.00018","DOI":"10.1109\/icst60714.2024.00018"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","unstructured":"Shanto Rahman Aaron Massey Wing Lam August Shi and Jonathan Bell. 2024. Automatically Reproducing Timing-Dependent Flaky-Test Failures. In International Conference on Software Testing Verification and Validation. 269\u2013280. https:\/\/doi.org\/10.1109\/icst60714.2024.00032 10.1109\/icst60714.2024.00032","DOI":"10.1109\/icst60714.2024.00032"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","unstructured":"Shanto Rahman and August Shi. 2024. FlakeSync: Automatically Repairing Async Flaky Tests. In International Conference on Software Engineering. 1673\u20131684. https:\/\/doi.org\/10.1145\/3597503.3639115 10.1145\/3597503.3639115","DOI":"10.1145\/3597503.3639115"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","unstructured":"August Shi Alex Gyori Owolabi Legunsen and Darko Marinov. 2016. Detecting Assumptions on Deterministic Implementations of Non-deterministic Specifications. In International Conference on Software Testing Verification and Validation. 80\u201390. https:\/\/doi.org\/10.1109\/icst.2016.40 10.1109\/icst.2016.40","DOI":"10.1109\/icst.2016.40"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","unstructured":"August Shi Wing Lam Reed Oei Tao Xie and Darko Marinov. 2019. iFixFlakies: A Framework for Automatically Fixing Order-Dependent Flaky Tests. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 545\u2013555. https:\/\/doi.org\/10.1145\/3338906.3338925 10.1145\/3338906.3338925","DOI":"10.1145\/3338906.3338925"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/icstw60967.2024.00027"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"Valerio Terragni Pasquale Salza and Filomena Ferrucci. 2020. A Container-Based Infrastructure for Fuzzy-Driven Root Causing of Flaky Tests. In International Conference on Software Engineering (New Ideas and Emerging Results Track). 69\u201372. https:\/\/doi.org\/10.1145\/3377816.3381742 10.1145\/3377816.3381742","DOI":"10.1145\/3377816.3381742"},{"key":"e_1_3_1_39_2","unstructured":"The Go Authors. 2024. Package net. https:\/\/pkg.go.dev\/net. Accessed Jan. 2026."},{"key":"e_1_3_1_40_2","unstructured":"Rafael Winterhalter and contributors. 2025. Byte Buddy: Runtime code generation for the JVM. https:\/\/bytebuddy.net\/ Version: 1.11.22; Accessed: 2025-10-11."},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","unstructured":"Hengchen Yuan Jiefang Lin Wing Lam and August Shi. 2024. Test scheduling across heterogeneous machines while balancing running time price and flakiness. In International Conference on Software Maintenance and Evolution. 449\u2013460. https:\/\/doi.org\/10.1109\/icsme58944.2024.00048 10.1109\/icsme58944.2024.00048","DOI":"10.1109\/icsme58944.2024.00048"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","unstructured":"Celal Ziftci and Diego Cavalcanti. 2020. De-Flake Your Tests: Automatically Locating Root Causes of Flaky Tests in Code At Google. In International Conference on Software Maintenance and Evolution. 736\u2013745. https:\/\/doi.org\/10.1109\/icsme46990.2020.00083 10.1109\/icsme46990.2020.00083","DOI":"10.1109\/icsme46990.2020.00083"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798265","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798265","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:21:21Z","timestamp":1790421681000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798265"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":41,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798265"],"URL":"https:\/\/doi.org\/10.1145\/3798265","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}