Skip to main content

A Deep Looking at the Code Changes in OpenHarmony

  • Conference paper
  • First Online:
Web and Big Data (APWeb-WAIM 2022)

Abstract

Open-source software has attracted more and more attention from practitioners. At the same time, many Chinese tech companies are embracing open source and opting for open source projects. Most previous research has focused on international companies such as Microsoft or Google, while the actual value of open source projects by Chinese tech companies remains unclear. To address this issue, we conducted an empirical study examining patch information for HarmonyOS. We collected a total of 234,791 commits from 2008 to March 2021. We manually screened out 3,616 submissions about bug fixes. The key findings include: 1) the percentage of bugs decreases rapidly as the number of modified source files increases. 2) About 70% of all bug types of modifications contain only one hunk. 3) About 50% of the bugs can be fixed by modifying one line of code.4) The programmer did not add any files to fix more than 80% of the bugs, Also did not delete any files to fix more than 90% of bugs. Our findings provide direction for software engineering researchers and practical recommendations for software developers and Huawei Technologies.

This research is supported by the National Key R &D Program of China (No. 2020YFB1005500).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Dias, L.F., Steinmacher, I., Pinto, G.: Who drives company-owned oss projects: employees or volunteers. In: V Workshop on Software Visualization, Evolution and Maintenance, VEM, p. 10 (2017)

    Google Scholar 

  2. Coelho, J., Valente, M.T.: Why modern open source projects fail. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, pp. 186–196 (2017)

    Google Scholar 

  3. Eghbal, N.: Roads and bridges: The unseen labor behind our digital infrastructure. Ford Foundation (2016)

    Google Scholar 

  4. Gousios, G., Pinzger, M., van Deursen, A.: An exploratory study of the pull-based software development model. In: Proceedings of the 36th International Conference on Software Engineering, pp. 345–355 (2014)

    Google Scholar 

  5. Kalliamvakou, E., Gousios, G., Blincoe, K., Singer, L., German, D.M., Damian, D.: An in-depth study of the promises and perils of mining github. Empir. Softw. Eng. 21(5), 2035–2071 (2016)

    Article  Google Scholar 

  6. Kalliamvakou, E., Damian, D., Blincoe, K., Singer, L., German, D.M.: Open source-style collaborative development practices in commercial projects using github. In: 2015 IEEE/ACM 37th IEEE International Conference on Software Engineering, vol. 1, pp. 574–585. IEEE (2015)

    Google Scholar 

  7. Jaspan, C., et al. Advantages and disadvantages of a monolithic repository: a case study at google. In: Proceedings of the 40th International Conference on Software Engineering: Software Engineering in Practice, pp. 225–234 (2018)

    Google Scholar 

  8. Zhou, J., Zhang, H., Lo, D.: Where should the bugs be fixed? more accurate information retrieval-based bug localization based on bug reports. In: 2012 34th International Conference on Software Engineering (ICSE), pp. 14–24. IEEE (2012)

    Google Scholar 

  9. Kim, D., Tao, Y., Kim, S., Zeller, A.: Where should we fix this bug? a two-phase recommendation model. IEEE Trans. Softw. Eng. 39(11), 1597–1610 (2013)

    Article  Google Scholar 

  10. Yin, Z., Ma, X., Zheng, J., Zhou, Y., Bairavasundaram, L.N., Pasupathy, S.: An empirical study on configuration errors in commercial and open source systems. In: Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles, pp. 159–172 (2011)

    Google Scholar 

  11. Ye, X., Bunescu, R., Liu, C.: Learning to rank relevant files for bug reports using domain knowledge. In: Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 689–699 (2014)

    Google Scholar 

  12. Hattori, L.P., Lanza, M.: On the nature of commits. In: 2008 23rd IEEE/ACM International Conference on Automated Software Engineering-Workshops, pp. 63–71. IEEE (2008)

    Google Scholar 

  13. Purushothaman, R., Perry, D.E.: Toward understanding the rhetoric of small source code changes. IEEE Trans. Softw. Eng. 31(6), 511–526 (2005)

    Article  Google Scholar 

  14. German, D.M.: An empirical study of fine-grained software modifications. Empir. Softw. Eng. 11(3), 369–393 (2006)

    Article  Google Scholar 

  15. Yin, Z., Yuan, D., Zhou, Y., Pasupathy, S., Bairavasundaram, L.: How do fixes become bugs? In: Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering, pp. 26–36 (2011)

    Google Scholar 

  16. Nguyen, H.A., Nguyen, A.T., Nguyen, T.T., Nguyen, T.N., Rajan, H.: A study of repetitiveness of code changes in software evolution. In: 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 180–190. IEEE (2013)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lu Zhou .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Niu, Y., Zhou, L., Liu, Z. (2023). A Deep Looking at the Code Changes in OpenHarmony. In: Li, B., Yue, L., Tao, C., Han, X., Calvanese, D., Amagasa, T. (eds) Web and Big Data. APWeb-WAIM 2022. Lecture Notes in Computer Science, vol 13421. Springer, Cham. https://doi.org/10.1007/978-3-031-25158-0_34

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-25158-0_34

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-25157-3

  • Online ISBN: 978-3-031-25158-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics