Project to collect and plot data from gitea to https://metrics.blender.org
Go to file
Dalai Felinto 2b534fde9b Fix None in data series
No idea why it happens, to be investigated later.
2024-10-22 19:29:48 +02:00
cloud Remove data from repo 2020-02-28 16:02:15 +01:00
common Fix the system to support the response time queries 2024-10-22 18:35:08 +02:00
diffs GITEA: Update the scripts and queries for the new forge 2023-02-13 10:54:10 +01:00
tasks Fix None in data series 2024-10-22 19:29:48 +02:00
templates Fixup of a typo 2023-04-21 17:09:26 +02:00
.gitattributes Remove .csv from LFS 2024-08-15 15:25:30 +02:00
.gitignore .gitignore: __init__.pyc 2020-05-01 21:16:28 +02:00
GITEA_PLAN.md GITEA: Update the scripts and queries for the new forge 2023-02-13 10:54:10 +01:00
mypy.ini Normalize the database 2020-03-18 14:03:29 +01:00
pyproject.toml Migrate from Poetry to pip install 2024-08-15 15:07:03 +02:00
README.md Migrate from Poetry to pip install 2024-08-15 15:07:03 +02:00
requirements.txt Migrate from Poetry to pip install 2024-08-15 15:07:03 +02:00
test.sh Add support for after datetime in tasks/fetch_and_load.py 2020-02-28 16:02:05 +01:00

How to install

$ python3.8 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements

How to fetch the data

Note it needs the token itself, not the file.

$ env GITEA_API_TOKEN=<conduit-token> python -m tasks.fetch_and_store
$ env GITEA_API_TOKEN=<conduit-token> python -m diffs.fetch_and_store

For an optional later start:

$ env GITEA_API_TOKEN=<conduit-token> python -m tasks.fetch_and_store "2020-02-01"

How to use the data

To plot the number of new tasks over time:

python -m tasks.plot_days new --start 2020-08-01 --end 2020-08-31

To plot the number of fixed commits over time:

python -m tasks.plot_days committedfix --git-repository=~/src/blender/blender --start 2020-01-01

To plot the number of new patches over time:

python -m diffs.plot_days new --start 2020-08-01 --end 2020-08-31

To save the values of the data:

python -m tasks.update-plotted-db ~/src/blender/blender
python -m diffs.update-plotted-db

To calculate the response time:

python -m tasks.response_time website --start 2019-01-01 --end 2020-01-01

Token

The token requires:

  • read:organization
  • read:issue