大家好,非常高兴能在这里跟大家一起交流。Hello everyone, it's my pleasure to be here to share the presentations on top of,it's my pleasure to share this presentation on the needs of the magic to engage with open source communities.My name is Waden Zhang, I'm an open source technical expert at Huawei, and I'm also a member of Afti Software Foundation.I'm also a chaos participate.Hi, this is Danieliz Kierdo.I'm the CEO of Vitergia, a company doing self-development analytics and ISPO consultancy.I'm part of the board of directors at the inner source commons, and then I'm part of the governing board at chaos community as well.So today we'd like to serve with you this presentation that Will and I, we've been discussing about for a while.So if you think about open source, we can say that safely that open source is everywhere, right?That you can either consume software or produce software, you can be part of the community or not,but most of the software that we are using nowadays is open source.And this is built on top of, well, used in as an umbrella open source foundation, right?So we can think of the Linux foundation, Necklace foundation, Apache software foundation, etc.And these are neutral places where companies, corporations can safely serve code with the specific rules in the playground, right?So there are certain rules about how to produce software, how to be part of the community,how to consume that software, how to redistribute that software if you are using open source.However, it's not clear how to measure the return of investment of all of these.So the question I have here for the audience today is what is the value of working in the open, right?So what is it worth working in this open way and even participating with potential competitors?So this talk is all about this, it's about introducing some of these aspects.It's about introducing the KS community, which is the acronym of Community Health Analytics for Open Source Software,and it's about introducing to you open source tools to understand open source communitiesand specifically to be able to make proper decisions on top of them.So William, one of the questions that we had at the beginning wasWhat does it mean for you success?What does it mean for who a way success?It's like the company just want to make some influence into the market or into the community.So I think the leadership or the goals of the community is quite important.Indeed, that's a good point.So if we think, for instance, about influence, which is one of the business goals that we may have here in this slide,might be influence may mean about being the technical leader of a community,influence may mean about being a good citizen and being across several open source projects,may mean about donating internal solver, proprietary solver as open source.So you can gain influence in very different ways.And because of this, basically success will mean different things for you,maybe for William, maybe for me.So there are different ways of thinking of this and there are different ways of measuring this.Oh, yeah.Back to the topic.20 years ago I heard about open source when I play with analytics.It doesn't make money from open source business in China back then.And I was glad to be a 6-7 user commuter and participate in the development of ASF projects.It was my dream job since I could work on open source project in my daily time.From my observation at that time,only few people have the chance to work on the open source project as a full-time job.15 years later,I know a bunch of people are hired to work on these ASF projects.And more and more startup company make money from this ASF project which originally from China.Back then we don't have many meet-up in open source or open source conference back then.Means the user group in Beijing was the only one I joined about 50 years ago.But now there's a bunch of meet-up every week for different open source projects in Beijing.There are three reasons for the popularity of the open source in China from my observation.The rise of cloud,especially public cloud.More and more big company embracing open source such as Alibaba,Huawei, Baidu,Tensheng donated a lot of projects intonative foundations orSensef or actually software foundation.And Venture Capital is shifting their focus to B2B open source enterprise staffs,Pincap,Kelligence,Giti,which is doing business open source got a lot of receive funding.Open source is one keyword in the government fifth five years plan.And it's give a great single that a lot of resources will be put into open source.Even open source is becoming a buzzword.But few people have been rarely experienced of the open source in China.So we need not new organizations to help us with that.And for this,I'd like to introduce the concept of Ospo.So Ospo stands for open source for an office.And this is like a long definition of this.By the way,this is a good place that to do group is a good place for this kind of resources.This is a Linux foundation group focused on open source and large corporations.And the idea is how you can make the most of open source within your company.And for this,all of the different departments that are involved in should have like operations and expectations aligned with how open source works.So we can think of human resources.We can think of marketing team.We can think about legal security taxes.We can think about even business development.So all of these departments,they have different strategies to move forward into the several objectives that they have at some point.And if we want to make open source,let's say a success within their daily operations,we need this office.So then open source is supported and served and explained within the walls of the company in the right way.So Ospo is like this discussion.Of course,there are different flavors of Ospo.If we think about having an Ospo in universities is probably probably different than having an Ospo in a large corporation.And probably that's different from having an Ospo in the government,right?Either in China or here in Europe or in any other place.So for this,my recommendation would be that you have a look at the different,these three different places.Ospo++,which is pretty focused on universities,governments and civic institutions.Ospozone,that recently appeared in the context of Ospo and raised by the Eclipse Foundation together with others about sharing and promoting materials and good governance for open source plan offices.And then the Tudu Group,which is the oldest in the group that started years ago.And the idea is about creating good practices and how to collaborate and insert tools and ideas and concepts about how to successfully and effectively run open source plan offices and specifically open source projects and engagement with them.Back to the cases of Huawei,we have three stages of using the open source software.First stage is using the open source software directly and then we contributing to the upstream at the same time.And the third stage is we launch a lot of open source projects to the community.When we talk about the next step,in these pictures just shows more than one hundred of the software foundation projects.If you have hundreds of product line,you may have the dependency of the thousands of the open source software directly or indirectly.It could be a hard work to mention the information about these open source projects.Besides of the open source license compliance,we also need to take care of the lifecycle management of the open source software.It's a tremendous work to collect the developer status and the community house information of these open source projects.Huawei build the projects on top of open source software such as Linux,OpenStack, and Kubernetes.And we did a lot of contributions back to these communities.And when we participate in the open source development,we are quite interesting to know what kind of work we were done in the open source community.Open source software is an important part of the Huawei computing ecosystem strategy.We launched four open source based software projects.OpenUra,OpenGauss,OpenLogan, and MindSport recently.When we built this open source community from scratch,we need to know the community status such as contributing growth to help the community manager to polish the open source project promotion plan.Yeah,we are not far off.I was introduced the chaos by looking for some tools to collect the data I mentioned earlier by attending the bi-weekly chaos Asia-Pacific meeting.I got to know Matt,Dawn,Sharon, and Daniel.It's a planned journey for me to join the community with people who share the same interest to know better about the open source project.Yeah,and just a bit more about chaos.We are working in two main areas.One of them is about defining from a more theoretical perspective what a metric is and how they belong to different contexts.For instance,on the left you can see that we have the common metrics,diversity and inclusion,evolution,risk,value,and so on.So these are metrics.This is how we are defining metrics for each of them,what are metrics related to risk assessment about open source or about the evolution of open source project.If they are growing,if they are mature enough,if they are stable,etc.Or even more,if we can think about diversity and inclusion,if we have a diverse set of people involved in the development of the project.From an inclusive perspective,if they are getting better or how we can improve DNI in those.So there are some more theoretical discussions where we are defining metrics basically.And then on the right you can see chaos software.So we'll talk today specifically about the remodel app,but there is another piece of software called Ogre.And there are some others that you can look around.And then there are certain initiatives in the chaos community.So what I'd like to highlight here in this slide today is that communities such as chaos are great examples of open source engagement.And then I've had the pressure to work with Willem to advance into understanding of open source health and open source communities.And then later at the inner source commons for instance.So this is a good example of building relationships between China and Spain.And hopefully we have the opportunity to meet each other in person,right?So let's see.Yeah,this slide just showed chaos meet up in China.And we hold two chaos China meet up with great support from the chaos community.First one was held in Shanghai last year.The second one is held in Beijing this year.And we had more than 15 people joined the meet up to talk about the metrics which related to open source project development and community health.There are researchers of the management of the open source project community manager of the open source project mentor of the open source project.After our engineer who implement the metrics dashboard of the open source project health.And now regarding open source tools.So we've been discussing about metrics.We've been discussing about business goals and so on.And then I'd like to introduce here Grimoire Lab,which is part of the chaos community.Grimoire Lab started years ago.So let's say formally known as Metrix Grimoire,where Metrix Grimoire came from academia doing empirical software engineering.I'm indeed one of the regional authors of Metrix Grimoire and Grimoire Lab,part of the tool chain.And I'd like to highlight here,this is the model of the community,which is open source tools to provide software development insights.And there are two main areas here.On the left we have open source tools.Why it's important to use open source tools?So basically you are making business decisions based on data,based on metrics,based on KPIs.And those metrics are coming in this case from open source.So you can check how those metrics are gathered,how those metrics have been developed.Let's say the algorithms behind all of these metrics.So being open source is key to be sure that you are making the right decisions,that you can trace back those decisions and how those metrics are being retrievedand you can understood and everything.So you can do certain due diligence analysis,if I can say this.And then on the right,but I wanted to highlight this to say that,well it doesn't matter if you are doing open source developmentor you are doing internal developmentor if there is no even any different about both ways of developing software.The thing is that you should have metrics aroundbecause then you will improve how you are developing softwarebecause having metrics,which is not the final goal,it's just another useful tool to make those decisions.And just an example,while we were preparing the slidesI thought,well there is this service cauldron.iowhich is free,by the way,for anyone.There is a cloud version self-hosted with private accessif you are interested,paid version.But there is this free version.And what we were doing was to analyze the Huawei projectsthe four that Willem mentioned before.So this is the URL cauldron.ioslashproject slash 5269.If you want to have a look at the developmentof those projects donated to the open by Huaweiyou have the data there.So you can check what's going on.Then regarding GrumarLab,really really quick herebecause I don't really want to enter into the details.So what we can see on theon the very center is basically the different data sourceson the left of the schema,the architecture.And then this is split into three main steps.So the first one is about gathering data.So GrumarLab supports 30 plusdifferent data sources,including ET.So we'll see now a use case,an examplethat it's part of this conversation today.And then all of this data is gathered by Percival.So Percival is exporting these into JSON documentsand then,sorry,everything is storedinto a database.We are using elastic searchin this case.There are certain capabilities to deal with identitiesso you can check developer activityacross the different data sourcesacross the different projects.You can have the sameinformation at the level of companies,etc.And then there is a second step where all ofthis information is enriched.So by enrichedit means that there is certain data processingwhere data is now much moretuned into the visualization needs.And this is the very first,the very third partand last part of the process of the tool chainfor GrumarLab,where you are visualizingall of this information in a dashboardway as we saw previously.We can see,we can go through a couple of examplesthat they think are,well,we thoughtthat they were interesting to have a look at.So this is,for instance,the community shapeand corporate interactions in thecase of the CNCF ecosystem.In this chart,you can see small pink dotsthose are developers,and then in the middleof those big stars,those are theprojects.So the one we can see on the leftis Kubernetes,which is the biggest one,the biggest starand then there is a relationship betweenthis pink dot and the blue square,if there has beenat least one contribution.If you're interested inlearning a bit more,you can see,and you can learnabout this in the IEEE software paperThere are,of course,other analysisthat you can do.This isanother use case.There are,by the way,seventy plusdifferent use case coveredin GrumarLab.So thisuse case is about open-source developmentpredictability and efficiency.This was an analysisdone for the same community.Again,this has beenpublishedin IEEE softwarein case you are interested.But then in the middleof our charthere,you can see some scoresin orange.So the left one is about theincrease.So what we learned here is thatfor the first,let's say,code reviews of certainsize had a linear increase,so basicallythe more,the bigger thatcode review was,the more time it needed,butthe growth was linear increase,but thenif you reach certain levels,as you can seethe orange square on the right,that increasethe exponential.So we have a specificadvice here about,you know,dividingmaking the code review processes,the sizeof the commit much more smaller.So thenyou can keep in the linear growth insteadofhaving this exponential growthin the timeto close,to review,to mergeall of these processes.Oh,back to the Huawei contributionsto GrumarLab.It's likeas I mentioned earlier,it's really quite interesting about the community houseof the open sourcesoftware project we launched.And because we hostedthis project inGT,sowhen I start to usegrumlab to collect the data,it'sunfortunately,grumlabdon't support to collect the data from theGT.And after spendingsome time on the code,I just foundwe can leverage the posteriorplugging feature to fill the gap byaidingGT backendto collect the data.So we startthe discussion in the GitHub issues of thegrumlab,and for supporting loadingplugging in a more easy way.Then westart to maintain theGTpluggingin the GitHub groupgrumlab.GT.Now we are usinggrumlab to collect the dataof the open URL and theminesports from theGTto provide useful informationsfor the community manager to use.And some of the conclusionswhen consuming the product or producingopen-source of software,metrics is the keyfirst to makedate-driven decisions.Asyou are not alone,there'sopen-source community,open-sourcesoftware community to share,learn,reusethe software and to be more withthe help of the communityof the knowledge sharing andsoftware experience sharing,iscould be more effective.I would say that thisrelationship with build togetherand using chaos as a starting point.So basically we were able tobuild something together that was useful in this case for HuaweiWe added the previous experienceof v3rdia in this case,grumlabcommunity to Huaweiin the sense of having GTingrumlab and the other way around.So thanks to Huawei,grumlabcommunity and other companies are havingnow GT as under data sourceto be able to analyzethe user interfaceand to be able todo the same.So I would say that this is a really greatuse case,reallysuccess as this way of working togetherappstream between different companiesand then this is the sentence that we havethere,that says if you want to go fastbecause now in this casethe community collaborated to havegrumlab and GT,and these are the basicsof open source,this is open source and this is what Ilove from them.So the chaos communityis decided toforest open and welcomingenvironment for contributors,anyone can join the mailing listand participating in the Zoom meetingand all contributing to anyof the projects at any timenow we also have aChinese version of thebetrayed public accountto publish events of the chaos Chinaand recently we justlaunched Chinese chaospodcastand you can scanthat code to find out more informationok,that's allthank you for your timethank you to the audience for your time as wellthank you all and we are waiting for youto join the communitythank you,take care