Project to collect and plot data from gitea to https://metrics.blender.org
Go to file
Dalai Felinto cdc21e4fdc Make fetching more robust when transactions are NULL
Make sure the fetching process doesn't stop when the transactions data
is corrupted (null):

infrastructure/blender-projects-platform#76
2024-01-12 15:11:00 +01:00
cloud Remove data from repo 2020-02-28 16:02:15 +01:00
common Make fetching more robust when transactions are NULL 2024-01-12 15:11:00 +01:00
diffs GITEA: Update the scripts and queries for the new forge 2023-02-13 10:54:10 +01:00
tasks Update debug query 2024-01-12 11:51:21 +01:00
templates Fixup of a typo 2023-04-21 17:09:26 +02:00
.gitattributes Final 2020-02-25 11:14:12 +01: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
README.md Info about the token 2023-11-30 12:01:00 +01:00
mypy.ini Normalize the database 2020-03-18 14:03:29 +01:00
poetry.lock Properly adding GitPython depedency 2020-05-15 16:17:42 +02:00
pyproject.toml GITEA: Update the scripts and queries for the new forge 2023-02-13 10:54:10 +01:00
test.sh Add support for after datetime in tasks/fetch_and_load.py 2020-02-28 16:02:05 +01:00

README.md

How to install

$ apt install python3-cachecontrol # https://bugs.launchpad.net/ubuntu/+source/poetry/+bug/1958227
$ poetry install

How to fetch the data

Note it needs the token itself, not the file.

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

For an optional later start:

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

How to use the data

To plot the number of new tasks over time:

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

To plot the number of fixed commits over time:

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

To plot the number of new patches over time:

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

To save the values of the data:

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

To calculate the response time:

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

Token

The token requires:

  • read:organization
  • read:issue