ipfs-inactive / jenkins

[ARCHIVED] Configuration for IPFS's build system
https://ci.ipfs.team/blue
8 stars 6 forks source link

Queue github webooks for retrying if jenkins is down when event happens #87

Closed victorb closed 6 years ago

victorb commented 6 years ago

I'm unsure if Github retries webhooks if the status code returned is different from 200. We should investigate if that's the case, and if Github doesn't automatically retries, create a service that can sit in-between jenkins and retry webhook events as needed.

ghost commented 6 years ago

I think Github does not automatically retry - it lists failures on the settings page for the webhook. What we could do is have a little webhook receiver service that queues up webhook payloads and forwards them to Jenkins whenever it's available.

@Kubuxu has set up that little service which injects webhooks for the ipfs+libp2p+ipld+multiformats orgs into Elasticsearch.

victorb commented 6 years ago

This is the service that kubuxu set up once upon a time: https://github.com/Kubuxu/go-gh-hook-logger/blob/master/main.go

Edit: we should refit it (if it doesn't already) to queue incoming webhooks, write them to disk and retry them to the destination until they succeed

victorb commented 6 years ago

This issue was moved to ipfs/testing#98