Skip to content
Snippets Groups Projects
Ben Gamari's avatar
Ben Gamari authored
dc02ecb2
History

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

  1. Create a ghc-triage-bot user.
  2. Add an access token with API scope.
  3. Grant the user Reporter access to any project which she should be active on.
  4. Add a webhook with URL http://localhost:8085/ for merge request and issue events.
  5. Add nixos.nix to the server's NixOS configuration, passing the GitLab user's access token as the accessToken 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

  1. Create a ghc-test-bot user.
  2. Add an access token with API scope.
  3. Grant the user Reporter access to any project which she should be active on.
  4. Add a webhook with URL http://localhost:8087/ for job events.
  5. Add nixos.nix to the server's NixOS configuration, passing the GitLab user's access token as the accessToken argument.
  6. Run sudo -u postgres psql < test_tracking.schema.sql