!aGqRytqbCECitOFhbt:nixos.org

Release Management

343 Members
25.11 "Xantusia" | https://nixos.github.io/release-wiki/Home.html93 Servers

Load older messages


SenderMessageTime
17 Nov 2023
@raitobezarius:matrix.orgraitobezariusyep14:47:29
@bendlas:matrix.orgbendlaswhat would be the problem there, if we're the owner?14:47:37
@raitobezarius:matrix.orgraitobezarius
    # TODO(raitobezarius to maintainers of invidious): I strongly advise to clean up the kemal specific
    # thing for 24.05 and use `ensureDBOwnership`.
    # See https://github.com/NixOS/nixpkgs/issues/216989
    systemd.services.postgresql.postStart = lib.mkAfter ''
      $PSQL -tAc 'ALTER DATABASE "${cfg.settings.db.dbname}" OWNER TO "${cfg.settings.db.user}";'
      $PSQL -tAc 'GRANT USAGE, CREATE ON SCHEMA public TO "${cfg.settings.db.user}";'
    '';
    services.postgresql = {
      enable = true;
      ensureUsers = lib.singleton { name = cfg.settings.db.user; };
      ensureDatabases = lib.singleton cfg.settings.db.dbname;
      # This is only needed because the unix user invidious isn't the same as
      # the database user. This tells postgres to map one to the other.
      identMap = ''
        invidious invidious ${cfg.settings.db.user}
      '';
      # And this specifically enables peer authentication for only this
      # database, which allows passwordless authentication over the postgres
      # unix socket for the user map given above.
      authentication = ''
        local ${cfg.settings.db.dbname} ${cfg.settings.db.user} peer map=invidious
      '';
    };


14:47:48
@raitobezarius:matrix.orgraitobezariusbasically this is the context14:47:51
@raitobezarius:matrix.orgraitobezarius"I" am owner, I even have USAGE, CREATE on the schema14:48:00
@raitobezarius:matrix.orgraitobezariusand this still fails…14:48:03
@raitobezarius:matrix.orgraitobezariusI wonder if this is related to the usermap14:48:09
@raitobezarius:matrix.orgraitobezariusBut that'd be weird14:48:11
@raitobezarius:matrix.orgraitobezariusah I found the problem14:50:28
@raitobezarius:matrix.orgraitobezariusthe invidious test is weird14:50:31
@raitobezarius:matrix.orgraitobezariusand doing a lot of things14:50:32
@raitobezarius:matrix.orgraitobezariusok fixed.14:51:31
@raitobezarius:matrix.orgraitobezariusnow release notes, improved error messages and we ship this14:53:20
@raitobezarius:matrix.orgraitobezariusand we will deal with all the regressions later on in beta phase14:53:32
@raitobezarius:matrix.orgraitobezarius hexa: is there any plan on the Python 2.7 breakage stuff? 16:15:13
@raitobezarius:matrix.orgraitobezariusmost specifically, everything that depends on resholve16:15:19
@hexa:lossy.networkhexaa hack by k900 to disable the hook entirely on the python2 builder16:15:47
@raitobezarius:matrix.orgraitobezariussounds good16:15:58
@hexa:lossy.networkhexaand a fix by me that was to costly to go into the running staging cycle, because darwin-stdenv loves python16:16:03
@raitobezarius:matrix.orgraitobezariusit's not in master yet I assume?16:16:05
@hexa:lossy.networkhexa* and a fix by me that was too costly to go into the running staging cycle, because darwin-stdenv loves python16:16:09
@hexa:lossy.networkhexa https://github.com/NixOS/nixpkgs/pull/268027
\
16:16:39
@raitobezarius:matrix.orgraitobezariusOK; no one has any opposition for this hack?16:17:07
@hexa:lossy.networkhexa * https://github.com/NixOS/nixpkgs/pull/268027
https://github.com/NixOS/nixpkgs/pull/267669
16:17:11
@raitobezarius:matrix.orgraitobezariusWe can send it and then work on the better hack via backport later on, right?16:17:17
@hexa:lossy.networkhexathe better hack is not a hack16:17:25
@hexa:lossy.networkhexabut yes16:17:29
@raitobezarius:matrix.orgraitobezariusApologies16:17:38
@raitobezarius:matrix.orgraitobezarius(In my mind, anything pertaining to extending Python 2 lifetime is a hack :<)16:17:51
@hexa:lossy.networkhexanixpkgs supporting resholve is a hack16:18:04

Show newer messages


Back to Room ListRoom Version: 6