Fetch the tracker HTML from the config file, remove HYDRA_TRACKER

[?]
Jan 5, 2022, 7:49 PM
FUO5CVF3KXYFOLQOQL7MBTVSU4CGQCDKKBSW6DC7RAXLV2AO5YBAC

Dependencies

  • [2] YM27DTVT Remove superfluous HYDRA_LOGO environment variable
  • [3] LEHRDMCM fix #425: parsable config by hydra-queue-runner
  • [4] Q2E4J3PH Update docs
  • [5] XJRJ4J7M Add user registration
  • [6] MGOGOKQP add tracker html code via HYDRA_TRACKER
  • [7] PMDWFZHW hydra-module.nix: Fix setting the logo
  • [8] ZYEFL36Q Ported/merged properties from the TUD configuration's hydra-module
  • [9] 2DHE2ZAK Allow Hydra to run as a private instance by requiring a login.
  • [10] JVBLOOYT hydra-module: fix debug attribute
  • [11] EFWN7JBV * Added a status page that shows all the currently executing build steps.
  • [12] ALLSLBFX Whoops
  • [13] JFW656FT Add a flag to enable Persona support
  • [14] 25DXUDOJ hydra-module.nix: Remove the useWAL option
  • [15] TTZ26BJQ Unify Hydra's NixOS module with the one used for hydra.nixos.org
  • [16] 3QWDDLBR Add support for logging in via a Google account
  • [17] R6APT7HG Fix hydra_logo setting
  • [18] G4X5IUYJ Remove default logo, replaced by text for now. Hide template in jobset edit.
  • [19] X5BWNTMA Make the logo configurable via hydra.conf
  • [*] D3MDJONY
  • [*] 4J33F22T hydra-module.nix: Make it possible to add extra config lines
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in doc/manual/src/configuration.md at line 145
    [4.4038]
    Embedding Extra HTML
    --------------------
    Embed an analytics widget or other HTML in the `<head>` of each HTML document via:
    ```conf
    tracker = <script src="...">
    ```
  • replacement in hydra-module.nix at line 29
    [5.298][5.0:35]()
    { HYDRA_TRACKER = cfg.tracker;
    [5.298]
    [5.183]
    {
  • edit in hydra-module.nix at line 243
    [3.69]
    [22.373]
    ${optionalString (cfg.tracker != null) (let
    indentedTrackerData = lib.concatMapStringsSep "\n" (line: " ${line}") (lib.splitString "\n" cfg.tracker);
    in ''
    tracker = <<TRACKER
    ${indentedTrackerData}
    TRACKER
    '')}
  • replacement in src/lib/Hydra/Controller/Root.pm at line 52
    [2.73][5.40:90](),[5.89][5.40:90](),[5.89][5.40:90](),[5.80][5.40:90]()
    $c->stash->{tracker} = $ENV{"HYDRA_TRACKER"};
    [2.73]
    [5.90]
    $c->stash->{tracker} = defined $c->config->{tracker} ? $c->config->{tracker} : "";