OBS Status Service
Reports build status of OBS service as an easily to produce SVG. Repository results (build results) are cached for 10 seconds and repository listing for OBS instance are cached for 5 minutes -- new repositories take up to 5 minutes to be visible.
Requests for individual build results:
/status/obs:project/package/repo/arch
where repo and arch are optional parameters.
Requests for project results
/status/obs:project
Get requests for / will also return 404 statu normally. If the Backend redis server is not available, it will return 500
By default, SVG output is generated, suitable for inclusion. But JSON and XML
output is possible by setting Accept: request header
| Accept Request Header | Output format -------------------------+--------------------- | | SVG image | application/json | JSON data | application/obs+xml | XML output
Areas of Responsibility
- Fetch and cache internal data from OBS and present it in usable format:
- Generate SVG output for specific OBS project or package
- Generate JSON/XML output for automated processing
- Low-overhead
Target Usage
- inside README.md of package git or project git
- comment section of a Gitea PR
- automated build result processing
Running
Default parameters can be changed by env variables
| Environment variable | Default | Description |
|---|---|---|
OBS_STATUS_SERVICE_OBS_URL |
https://build.opensuse.org | Location for creating build logs and monitor page build results |
OBS_STATUS_SERVICE_LISTEN |
[::1]:8080 | Listening address and port |
OBS_STATUS_SERVICE_CERT |
/run/obs-status-service.pem | Location of certificate file for service |
OBS_STATUS_SERVICE_KEY |
/run/obs-status-service.pem | Location of key file for service |
REDIS |
OBS's Redis instance URL |