open-contracting / data-registry

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Acceptance criteria - Kingfisher Process #30

Open hrubyjan opened 3 years ago

hrubyjan commented 3 years ago

At the end of each phase of data processing we should evaluate whether it ended well, there is something suspicious or this particular phase failed. For process phase define criteria that will a) prevent a dataset from being published in data registry

b) raise a warning but will not prevent dataset from being published

We should not insist on having some criteria if we will not see some meaningful rules

jpmckinney commented 3 years ago

On the call, I think we said unexpected exceptions (e.g. from OCDS Kit during upgrade or OCDS Merge during compile) would be considered errors (though I don't know if these caused a "failed" or "warn" state per #32).

jpmckinney commented 3 years ago

@jakubkrafka Other than Sentry (which is disabled), where can I find/query a log of warnings and errors?

jpmckinney commented 3 years ago

Assigning for question above.

jakubkrafka commented 3 years ago

Each docker container (besides of scrapyd logs for particular jobs - scrapy in general lacks this capability) logs into the stdout/console - thus they are captured by the docker itself. All the logs can be inspected via

docker logs <container_name>
jpmckinney commented 3 years ago

Needs to be open for the original issue :)

jpmckinney commented 6 months ago

Kingfisher Process stores messages in collection_note with warning and error levels. We can:

Errors are:

These errors aren't individually severe enough to prevent publication, but maybe there's a % threshold.

Warnings are:

These warnings are indeed fine. By getting notified, we can update quality descriptions.

If emails get noisy, we can maybe think about logic for silencing some alerts (e.g. silence unless threshold increases), similar to how Sentry does it. (This would be for a new issue.)

Related: https://github.com/open-contracting/kingfisher-process/issues/222