Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable software vitality #1498

Open
5 tasks
bfabio opened this issue Jul 30, 2024 · 0 comments
Open
5 tasks

Re-enable software vitality #1498

bfabio opened this issue Jul 30, 2024 · 0 comments

Comments

@bfabio
Copy link
Member

bfabio commented Jul 30, 2024

Re-enable software vitality which was removed by #1484.

The API supports vitality in software resources, via the opaque vitality field:

vitality | string minLength: 1 maxLength: 99999 pattern: .* default: null example: 90,100,94,12
The vitality of the software repository, indicating health, activity, or metrics relevant to its condition. This is a opaque string, and users of the API can choose their own format. The Italian catalog, for example, uses comma-separated values for daily vitality scores (0-100) (see https://github.com/italia/publiccode-crawler/blob/main/vitality-ranges.yml).

As of now there are two crawlers cronjobs running:

kubectl get cronjobs
NAME                          SCHEDULE    SUSPEND   ACTIVE   LAST SCHEDULE   AGE
publiccode-crawler            0 0 * * *   False     0        16h             545d
publiccode-crawler-with-api   0 0 * * *   False     0        16h             66d

The first one is the legacy branch, which can be decommissioned, but has storage because it clones the repo to calculate the vitality.
We should use the new crawler (the second one), with the first one's storage configuration.

So the steps are:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant