17
chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona Brussels, Belgium, Feb 4th 2018 speakerdeck.com/jgbarah @jgbarah

@jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

GrimoireLab: free software for software development analyticsLightning talk at FOSDEM

Jesus M. Gonzalez-Barahona

Brussels, Belgium, Feb 4th 2018

speakerdeck.com/jgbarah @jgbarah

Page 2: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

/me

Like six years ago I was having coffees with the gang of Bitergia founders

Involved in the company since then

bitergia.com

I work at Universidad Rey Juan Carlos...

...researching about software development

gsyc.es/~jgb

My two hats:

Page 3: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

...Produce integrated, open source software for analyzing software development….

Page 4: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

GrimoireLab

Software development analytics withfree, open source software

(a CHAOSS project)

grimoirelab.github.io grimoirelab.gitbooks.io/tutorial

Page 5: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Software development analytics

opnfv.biterg.io

Page 6: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Try it!!

docker run -p 5601:5601-v $(pwd)/credentials.cfg:/mordred-override.cfg-t grimoirelab/full

credentials.cfg:[github]api-token = XXX

Page 7: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

GrimoireLab architecture

Page 8: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Architecture: extraction

Page 9: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: Perceval

$ python3 -m venv /tmp/gl$ source /tmp/gl/bin/activate(gl) $ pip install perceval(gl) $ perceval git https://github.com/grimoirelab/perceval(gl) $ perceval github grimoirelab perceval --sleep-for-rate -t XXXXX...

Page 10: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: Perceval

from perceval.backends.core.git import Gitrepo_url = 'http://github.com/grimoirelab/perceval.git'repo_dir = '/tmp/perceval.git'

repo = Git(uri=repo_url, gitpath=repo_dir)for commit in repo.fetch(): print(commit['data']['commit'])

Page 11: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Architecture:enrichment

Page 12: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: GrimoireELK

(gl) $ pip install grimoire-elk(gl) $ p2o.py --enrich --index git_raw --index-enrich git \ -e http://localhost:9200 --no_inc --debug \ git https://github.com/grimoirelab/perceval.git

(assumes Elasticsearch at http://localhost:9200)

Page 13: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: GrimoireELK

Page 14: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Architecture:exploitation

Page 15: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: producing a dashboard

(es) $ pip install grimoire-mordred(es) $ mordred -c mordred.cfg

(assumes Elasticsearch at http://localhost:9200,

Kibiter at http://localhost:5601 )

Needs: mordred.cfg, projects.json, identities.yaml, menu.yaml

grimoirelab.gitbooks.io/tutorial

Page 16: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Example: producing a dashboard

Page 17: @jgbarah development analytics software for software ... · chaoss.community GrimoireLab: free software for software development analytics Lightning talk at FOSDEM Jesus M. Gonzalez-Barahona

chaoss.community

Try GrimoireLabwith a single line!!

$ docker run -p 5601:5601-v $(pwd)/credentials.cfg:/mordred-override.cfg-t grimoirelab/full

credentials.cfg:[github]api-token = XXX

grimoirelab.github.io grimoirelab.gitbooks.io/tutorial

http://localhost:5601