Skip to main content
QUICK REVIEW

[论文解读] Metrics Dashboard: A Hosted Platform for Software Quality Metrics

George K. Thiruvathukal, Shilpika|arXiv (Cornell University)|Apr 5, 2018
Software Engineering ResearchComputer Science参考文献 9被引用 4
一句话总结

Metrics Dashboard 是一个托管的 SaaS 平台,通过分析 GitHub 上的开源软件项目,为团队提供软件质量度量指标,包括项目规模(KLOC)、缺陷密度、缺陷积压(defect spoilage)和生产力。通过无需本地工具链即可实现交互式、时间粒度精细的可视化,该平台以轻量、集成的方式帮助 CSE 团队监控项目健康状况并改进开发流程。

ABSTRACT

There is an emerging consensus in the scientific software community that progress in scientific research is dependent on the "quality and accessibility of software at all levels" (wssspe.researchcomputing.org.uk/). This progress depends on embracing the best traditional---and emergent---practices in software engineering, especially agile practices that intersect with the more formal tradition of software engineering. As a first step in our larger exploratory project to study in-process quality metrics for software development projects in Computational Science and Engineering (CSE), we have developed the Metrics Dashboard, a platform for producing and observing metrics by mining open-source software repositories on GitHub. Unlike GitHub and similar systems that provide individual performance metrics (e.g. commits), the Metrics Dashboard focuses on metrics indicative of team progress and project health. The Metrics Dashboard allows the user to submit the URL of a hosted repository for batch analysis, whose results are then cached. Upon completion, the user can interactively study various metrics over time (at varying granularity), numerically and visually. The initial version of the system is up and running as a public cloud service (SaaS) and supports project size (KLOC), defect density, defect spoilage, and productivity. While our system is by no means the first to support software metrics, we believe it may be one of the first community-focused extensible resources that can be used by any hosted project.

研究动机与目标

  • 解决在科学计算与工程(CSE)项目中缺乏面向社区、可扩展的工具来监控过程中的软件质量度量指标的问题。
  • 通过无缝集成到现有的 GitHub 工作流中,减少小型/中型开发团队的使用阻力,无需额外工具或开销。
  • 通过可操作的、面向团队的度量指标支持项目健康监控,而非依赖个人开发者绩效指标。
  • 使科学软件团队能够利用版本控制和问题跟踪系统中的数据驱动洞察,评估并提升软件质量。
  • 开发一个可扩展、公开可访问的平台,为开源 CSE 项目提供持续分析与反馈支持。

提出的方法

  • 系统通过 GitHub API 获取仓库的 URL,批量分析其元数据。
  • 计算关键的过程内度量指标:项目规模(KLOC)、缺陷密度(每 KLOC 的问题数)、缺陷积压(修复问题所需时间)以及生产力(提交/问题比率)。
  • 结果被缓存并通过具有时间序列可视化功能的交互式 Web 界面暴露,支持不同粒度(如每日、每周、每月)的可视化。
  • 平台架构设计支持多种版本控制系统,但初期聚焦于 GitHub,因其在 CSE 开源项目中的主导地位。
  • 利用公开的 GitHub 数据(包括问题的打开/关闭日期和提交历史)推导度量指标,无需本地代码分析或代理安装。
  • 系统作为公共云服务(SaaS)托管在 http://luc-metrics.herokuapp.com,用户可提交项目进行分析,并随时间跟踪结果。

实验结果

研究问题

  • RQ1如何在不增加额外工具开销的前提下,有效收集并可视化托管在 GitHub 上的科学软件项目的在过程软件质量度量指标?
  • RQ2在 CSE 开发工作流中,哪些类型的度量指标最有助于评估团队进展和项目健康状况?
  • RQ3缺陷积压和问题密度等度量指标在现实世界开源项目中,与实际项目活动和问题解决模式之间存在何种相关性?
  • RQ4托管的、面向社区的仪表板在提升软件质量意识和支持敏捷 CSE 团队主动改进流程方面是否有效?
  • RQ5轻量级、非侵入性的度量指标收集在多大程度上能够支持科学软件的长期可持续性和可维护性?

主要发现

  • Metrics Dashboard 准确识别出 Go 项目中的一个显著异常:2014 年 12 月 9 日单日关闭了 7,926 个问题,而此前超过五年内均无问题被关闭。
  • 缺陷积压在 2014 年底接近 7.0 的峰值,表明问题修复时间过长,随后出现持续下降趋势,表明异常事件后问题管理得到改善。
  • 仪表板能够将可视化粒度调整至每周级别,从而精确识别出问题修复激增的日期。
  • 缺陷密度与缺陷积压度量指标显示出明显的负相关关系,积压程度随 2014 年后问题修复的一致性提高而下降。
  • 系统表明,累计开放和关闭问题数等度量指标可揭示长期存在的项目健康问题,如志愿者驱动维护的瓶颈。
  • 该平台作为公开的 SaaS 服务已正常运行,并已用于分析多个 CSE 项目,后续将根据调查反馈扩展支持范围。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。