Taming Google-scale continuous testing
The DOI matches its Crossref record; 21 of the 21 references it cites were found in a registry or an index.
Abstract
Growth in Google's code size and feature churn rate has seen increased reliance on continuous integration (CI) and testing to maintain quality. Even with enormous resources dedicated to testing, we are unable to regression test each code change individually, resulting in increased lag time between code check-ins and test result feedback to developers. We report results of a project that aims to reduce this time by: (1) controlling test workload without compromising quality, and (2) distilling test results data to inform developers, while they write code, of the impact of their latest changes on quality. We model, empirically understand, and leverage the correlations that exist between our code, test cases, developers, programming languages, and code-change and test-execution frequencies, to improve our CI and development processes. Our findings show: very few of our tests ever fail, but those that do are generally "closer" to the code they test, certain frequently modified code and certain users/tools cause more breakages, and code recently modified by multiple developers (more than 3) breaks more often.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Prioritizing test cases for regression testing
Rothermel, G., Untch, R. H., Chu, C., & Harrold, M. J. (2001) · IEEE Transactions on Software Engineering · doi:10.1109/32.962562 · Cited by 1,338
Test case prioritization: a family of empirical studies
Elbaum, S., Malishevsky, A. G., & Rothermel, G. (2002) · IEEE Transactions on Software Engineering · doi:10.1109/32.988497 · Cited by 943 · cited 1×
“The above two constraints meant that we could not rely on the availability of fault and coverage matrices, used by conventional regression test selection/prioritization approaches [5] that require exact mappings between code elements (e.”
BackgroundAnvik, J., Hiew, L., & Murphy, G. C. (2006) · Proceedings of the 28th international conference on Software engineering · doi:10.1145/1134285.1134336 · Cited by 924 · cited 1×
“presented a technique which uses text categorization, a machine learning technique, to learn the kinds of reports each developer resolves, based on which new coming bug reports will be assigned to a small number of candidate developers [28].”
MethodSearch Algorithms for Regression Test Case Prioritization
Li, Z., Harman, M., & Hierons, R. M. (2007) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2007.38 · Cited by 825 · cited 1×
“presents a set of search algorithms for test case prioritization, including greedy, additional greedy, 2-Optimal, hill-climbing and genetic algorithms [22].”
BackgroundPredicting fault incidence using software change history
Graves, T. L., Karr, A. F., Marron, J. S., & Siy, H. (2000) · IEEE Transactions on Software Engineering · doi:10.1109/32.859533 · Cited by 753 · cited 1×
“And other studied measures include the age of code and weighted time stamp which assign large and recent changes with big fault potential [25].”
BackgroundPredicting the location and number of faults in large software systems
Ostrand, T. J., Weyuker, E. J., & Bell, R. M. (2005) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2005.49 · Cited by 720 · cited 1×
“showed that files that were recently modified are likely to have faults [24].”
BackgroundA safe, efficient regression test selection technique
Rothermel, G., & Harrold, M. J. (1997) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/248233.248262 · Cited by 712 · cited 1×
“propose a regression test selection technique that uses control flow graphs (CFG) of programs to select tests that execute modified code [18].”
MethodPredicting defects using network analysis on dependency graphs
Zimmermann, T., & Nagappan, N. (2008) · Proceedings of the 13th international conference on Software engineering - ICSE '08 · doi:10.1145/1368088.1368161 · Cited by 580 · cited 1×
“Zimmermann and Nagappan investigate how dependencies correlate with and predict defects for binaries in Windows Server 2003 [26].”
BackgroundAn empirical analysis of flaky tests
Luo, Q., Hariri, F., Eloussi, L., & Marinov, D. (2014) · Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2635868.2635920 · Cited by 450 · cited 1×
“Flaky tests exist for various reasons [11] [12] and it is impossible to weed out all flaky tests [13].”
BackgroundTechniques for improving regression testing in continuous integration development environments
Elbaum, S., Rothermel, G., & Penix, J. (2014) · Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering · doi:10.1145/2635868.2635910 · Cited by 327 · cited 2×
“For our work, this meant that we could not rely on regression test selection heuristics such as “rerun tests that failed recently” [14] [15] as we would end up mostly re-running flaky tests [1].”
BackgroundMethodInvestigating quality factors in object-oriented designs: an industrial case study
Briand, L. C., Wüst, J., Ikonomovski, S. V., & Lounis, H. (1999) · Proceedings of the 21st international conference on Software engineering · doi:10.1145/302405.302654 · Cited by 235 · cited 1×
“, statements [6], methods [7]), requirements [8] and test cases/suites.”
MethodPractical regression test selection with dynamic file dependencies
Gligoric, M., Eloussi, L., & Marinov, D. (2015) · Proceedings of the 2015 International Symposium on Software Testing and Analysis · doi:10.1145/2771783.2771784 · Cited by 216 · cited 2×
“Some recent studies show that better results can be achieved by selecting tests at a coarser (class-level) compared to a finer (method-level) granularity [17][19].”
BackgroundWhat do large commits tell us?: a taxonomical study of large commits
Hindle, A., German, D. M., & Holt, R. (2008) · Proceedings of the 2008 international working conference on Mining software repositories · doi:10.1145/1370750.1370773 · Cited by 204 · cited 1×
“[27] performed a case study that includes the manual classification of large commits.”
MethodTest Case Prioritization Using Requirements-Based Clustering
Arafeen, M. J., & Do, H. (2013) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2013.12 · Cited by 168 · cited 2×
“proposed a requirement-based clustering technique for test prioritization [21].”
MethodWhy Google stores billions of lines of code in a single repository
Potvin, R., & Levenberg, J. (2016) · Communications of the ACM · doi:10.1145/2854146 · Cited by 157 · cited 1×
“For example, Google’s Test Automation Platform (TAP) system [2], responsible for CI of Google’s vast majority of 2 Billion LOC codebase—structured largely as a single monolithic code tree [3]—would fail to prevent regressions in Google’s code without its testing-centric design.”
Reducing wasted development time via continuous testing
Saff, D., & Ernst, M. D. (2005) · 14th International Symposium on Software Reliability Engineering, 2003. ISSRE 2003. · doi:10.1109/issre.2003.1251050 · Cited by 141 · cited 1×
“For our work, this meant that we could not rely on regression test selection heuristics such as “rerun tests that failed recently” [14] [15] as we would end up mostly re-running flaky tests [1].”
MethodAn extensive study of static regression test selection in modern software evolution
Legunsen, O., Hariri, F., Shi, A., Lu, Y., Zhang, L., & Marinov, D. (2016) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/2950290.2950361 · Cited by 131 · cited 2×
“evaluate static analysis techniques to select tests that may be affected by code change [19].”
BackgroundUsing semi-supervised clustering to improve regression test selection techniques
Chen, S., Chen, Z., Zhao, Z., Xu, B., & Feng, Y. (2011) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2011.38 · Cited by 62 · cited 1×
“used semi-supervised K-Means to cluster test cases and then pick a small subset of tests from each cluster to approximate the fault detection ability of the original test suite [23].”
MethodAutomated testing of GUI applications: Models, tools, and controlling flakiness
Memon, A. M., & Cohen, M. B. (2013) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2013.6606750 · Cited by 49
Self-citationAutomated testing of GUI applications: models, tools, and controlling flakiness
Memon, A. M., & Cohen, M. B. (2013) · doi:10.5555/2486788.2487046 · Cited by 38 · cited 1×
“Flaky tests exist for various reasons [11] [12] and it is impossible to weed out all flaky tests [13].”
BackgroundSelf-citationMaking System User Interactive Tests Repeatable: When and What Should We Control?
Gao, Z., Liang, Y., Cohen, M. B., Memon, A. M., & Wang, Z. (2015) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2015.28 · Cited by 32
Self-citation
Cited by
A large-scale longitudinal study of flaky tests
Lam, W., Winter, S., Wei, A., Xie, T., Marinov, D., & Bell, J. (2020) · Proceedings of the ACM on Programming Languages · doi:10.1145/3428270 · Cited by 64
“Much existing work [Coverity 2014; Infer 2020; Larus et al. 2004; Memon et al. 2017; Muşlu et al. 2015; Sadowski et al. 2015; Saff and Ernst 2003] has found that providing developers with feedback regarding problematic code is most helpful if provided as soon as possible in the development process.”
iPFlakies: a framework for detecting and fixing python order-dependent flaky tests
Wang, R., Chen, Y., & Lam, W. (2022) · Proceedings of the ACM/IEEE 44th International Conference on Software Engineering: Companion Proceedings · doi:10.1145/3510454.3516846 · Cited by 36
“In fact, many companies have published blogs (e.g., Fitbit [11], Gradle [17]) and research papers (e.g., Apple [5], Face-book [3], Google [13], Microsoft [6]) on flaky tests.”
Background
Metadata
- Authors
- Memon, A., Gao, Z., Nguyen, B., Dhanda, S., Nickell, E., Siemborski, R., & Micco, J.
- Venue
- 2017 IEEE/ACM 39th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP)
- Publisher
- IEEE
- Published
- 2017-05
- Pages
- 233-242
- OpenAlex
- W2591823109
- Cited by
- 234
- References
- 21
- FWCI
- 16.16
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.