arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06223cs.SE
收藏

通过人工智能驱动的测试执行扩展移动混沌测试

Scaling Mobile Chaos Testing with AI-Driven Test Execution

Uber Technologies, Inc.(优步科技有限公司)
Juan Marcano, Ashish Samant, Kai Song, Lingchao Chen, Kaelan Mikowicz, Tim Smyth, Mengdie Zhang, Ali Zamani, Arturo Bravo Rovirosa, Sowjanya Puligadda, Srikanth… 展开作者

Juan Marcano, Ashish Samant, Kai Song, Lingchao Chen, Kaelan Mikowicz, Tim Smyth, Mengdie Zhang, Ali Zamani, Arturo Bravo Rovirosa, Sowjanya Puligadda, Srikanth Prodduturi, Mayank Bansal

AI总结:

研究大规模分布式系统中移动应用易受后端服务故障影响的问题,核心方法是将DragonCrawl与uHavoc集成实现人工智能驱动的测试执行,主要贡献是识别风险、缩短调试时间,证明在生产规模实现移动弹性验证可行。

摘要:

大规模分布式系统中的移动应用容易受到后端服务故障的影响,但传统的混沌工程方法由于需要验证的流程、位置和故障场景的组合爆炸而无法扩展移动测试。我们提出了一种自动化的移动混沌测试系统,该系统将基于大语言模型的移动测试平台DragonCrawl与服务级故障注入系统uHavoc集成。关键在于自适应人工智能驱动的测试执行可以在后端条件退化的情况下导航移动应用,无需为用户流程、城市和故障类型的每种组合手动编写测试用例。自2024年第一季度以来,我们的系统已在优步的骑手、司机和餐饮应用中的47个关键流程上执行了超过180,000次自动化混沌测试,相当于约39,000小时的手动测试工作量。我们识别出23个弹性风险,其中70%是架构依赖违规,非关键服务故障会使核心用户流程退化。12个问题严重到足以阻止行程请求或食品订单。两个问题导致应用程序崩溃,只能通过移动混沌测试检测到,仅靠后端测试无法检测到。自动根本原因分析将调试时间从数小时缩短到数分钟,在将移动故障归因于特定后端服务方面达到了88%的precision@5。本文介绍了系统设计,评估了其在故障注入下的性能(保持99%的测试可靠性),并报告了操作经验,证明在生产规模上实现持续的移动弹性验证是可行的。

英文摘要:

Mobile applications in large-scale distributed systems are susceptible to backend service failures, yet traditional chaos engineering approaches cannot scale mobile testing due to the combinatorial explosion of flows, locations, and failure scenarios that need validation. We present an automated mobile chaos testing system that integrates DragonCrawl, an LLM-based mobile testing platform, with uHavoc, a service-level fault injection system. The key insight is that adaptive AI-driven test execution can navigate mobile applications under degraded backend conditions, eliminating the need to manually write test cases for each combination of user flow, city, and failure type. Since Q1 2024, our system has executed over 180,000 automated chaos tests across 47 critical flows in Uber's Rider, Driver, and Eats applications, representing approximately 39,000 hours of manual testing effort that would be impractical at this scale. We identified 23 resilience risks, with 70% being architectural dependency violations where non-critical service failures degraded core user flows. Twelve issues were severe enough to prevent trip requests or food orders. Two caused application crashes detectable only through mobile chaos testing, not backend testing alone. Automated root cause analysis reduced debugging time from hours to minutes, achieving 88% precision@5 in attributing mobile failures to specific backend services. This paper presents the system design, evaluates its performance under fault injection (maintaining 99% test reliability), and reports operational experience demonstrating that continuous mobile resilience validation is achievable at production scale.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑