Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Plugin idea: create ticket on successive errors #188

Open
majkinetor opened this issue Jun 4, 2019 · 3 comments
Open

Plugin idea: create ticket on successive errors #188

majkinetor opened this issue Jun 4, 2019 · 3 comments

Comments

@majkinetor
Copy link
Owner

majkinetor commented Jun 4, 2019

It would be good to have a plugin that records errors on packages, count them and after a threshold is reached it creates an issue on the Github/lab...

Only single active ticket should exist for any package

Plugin could remember package counts in json file (the same as used in streams). We would need to slightly change the stream impl to use key for it - i.e. put everything under streams key so that file could be used for other plugin statuses too. (breaks compatibility but acceptable since streams are still new), or use special stream for other stuff which is compatible with current system but semantics are bad for the eternity.

@AdmiringWorm
Copy link
Contributor

There is one consideration that probably need to be taking into account if implementing this.

Sometimes packages fail only once or twice, due to a temporary error on the download location/website itself.

Issue should probably only be created if the same package have been failing multiple times.

@majkinetor
Copy link
Owner Author

majkinetor commented Jun 4, 2019

Indeed, hence the:

and after a threshold is reached it creates an issue

You could configure such plugin this way:

Ticket  = @{
    ErrCount = 6
    # or ErrDays   = 7
    BodyTemplate = '...'
    ApiToken = '...'
}

This plugin would also need to git commit stuff for packages that are not updated so it will have to use settings of Git plugin.

@AdmiringWorm
Copy link
Contributor

I somehow missed that part of the sentence.

Anyway, I do think this is a great idea and would most likely help make package maintenance a little easier (hopefully).

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

No branches or pull requests

2 participants