-
Notifications
You must be signed in to change notification settings - Fork 4
Web app: Workflow
The homepage is a simple landing page with handy links to status pages, repository and licensing information. It has an endpoint open to receiving POST requests (deploy/
).
The POST request is validated with -
- If
webhook_secret
is defined insecrets.yaml
, its signature is validated, or else, - JSON schema,
travis-ci
slug, master head commit's SHA verification and if the check was successful, then- The bot restarts the Kubernetes deployments of
goodbot
andircbot
(if a valid config is not loaded, it errors out at this step).
- The bot restarts the Kubernetes deployments of
There is a minor lag between stopping and starting the deployments but it's relatively minor but required since Kubernetes has no safe way of instantly recreating deployments. Owing to how Flask deals with requests, it's not possible to send a response back in a non-blocking manner, which means GitHub doesn't get a 200
code back but that's not a problem (it simply times out).
Copyright (C) 2020 QEDK Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
- Home
- Building dependencies
- goodbot
- ircbot
- parsebot
- Web app
- Running
- Toolforge
- Style guidelines
- GNU Free Documentation License