GHC GitLab bots
This repository contains two Python services used by GHC's GitLab installation.
Basic configuration
In "Admin Area/Settings/Network/Outbound requests" enable "Allow requests to the local network from hooks and services".
GHC triage label service
This simple service adds the ~"needs triage" label to new MRs and issues which lack other labels. This is an attempt to work around gitlab-ce#59932.
Configuration
- Create a
ghc-triage-bot
user. - Add an access token with API scope.
- Grant the user Reporter access to any project which she should be active on.
- Add a webhook with URL
http://localhost:8085/
for merge request and issue events. - Add
nixos.nix
to the server's NixOS configuration, passing the GitLab user's access token as theaccessToken
argument.
GHC test tracking service
This service logs test failures from CI to a PostgreSQL database to make it easier to spot and characterise fragile tests.
Configuration
- Create a
ghc-test-bot
user. - Add an access token with API scope.
- Grant the user Reporter access to any project which she should be active on.
- Add a webhook with URL
http://localhost:8087/
for job events. - Add
nixos.nix
to the server's NixOS configuration, passing the GitLab user's access token as theaccessToken
argument. - Run
sudo -u postgres psql < test_tracking.schema.sql