!RROtHmAaQIkiJzJZZE:nixos.org

NixOS Infrastructure

477 Members
Next Infra call: 2024-07-11, 18:00 CEST (UTC+2) | Infra operational issues backlog: https://github.com/orgs/NixOS/projects/52 | See #infra-alerts:nixos.org for real time alerts from Prometheus.149 Servers

Load older messages


SenderMessageTime
26 Jun 2026
@zimward:zimward.moezimward joined the room.14:27:54
@hexa:lossy.networkhexaby which you mean … if Claude did the thing? 😜14:37:24
@hexa:lossy.networkhexahttps://github.com/NixOS/nixos-channel-scripts/issues/5914:38:00
@hexa:lossy.networkhexaI'd like it if we had that14:38:04
@joerg:thalheim.ioMic92I did this once by hand for the nix release script back in the day but never upstreamed it. It had even a self-test with a local registry and minio.14:41:37
@hexa:lossy.networkhexaso yeah, a job in nixpkgs that drops a manifest and we just upload what we just execute based on that14:42:27
@hexa:lossy.networkhexainstead of piling on janky version dependent logic14:42:37
@joerg:thalheim.ioMic92* I did this once by hand for the nix release script back in the day but never upstreamed it. It had even a self-test with a local docker registry and minio.14:43:03
@hexa:lossy.networkhexaRedacted or Malformed Event14:43:20
@hexa:lossy.networkhexaand then, sure, it can be python for all I care14:43:32
@hexa:lossy.networkhexa the code is so "complex" because we need to deal with nixpkgs changes 14:44:09
@hexa:lossy.networkhexaRedacted or Malformed Event14:44:21
@joerg:thalheim.ioMic92I am still in favour moving the iso image to a non-hydra CI. In nix we do that in GitHub actions with oidc Auth for aws14:44:32
@hexa:lossy.networkhexathat's orthogonal, no?14:44:57
@joerg:thalheim.ioMic92* I am still in favour of moving the iso image to a non-hydra CI. In nix we do that in GitHub actions with oidc Auth for aws14:44:59
@hexa:lossy.networkhexaI mean sure, it would kill most of the janky logic14:45:14
@joerg:thalheim.ioMic92This was not part of those scripts as well?14:45:28
@hexa:lossy.networkhexabut the logic wouldn't be so janky if it was just very flat an in a nixpkgs branch14:45:47
@hexa:lossy.networkhexa
    if ($channelName =~ /nixos/) {
        downloadFile("nixos.channel", "nixexprs.tar.xz", "source-dist", '\.tar\.xz$');
        downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
        downloadFile("nixos.options", "options.json.br", "json-br");

        # Minimal installer ISOs were dropped from the small channel
        if ($channelName !~ /-small/ ||
            $channelName =~ /nixos-2([0123]\...|4\.05)-small/) {
            downloadFile("nixos.iso_minimal.aarch64-linux");
            downloadFile("nixos.iso_minimal.x86_64-linux");
        }

        # All of these jobs are not present in small channels
        if ($channelName !~ /-small/) {
            # These jobs were combined into a single job
            if ($channelName =~ /nixos-2[01234]/) {
                if ($channelName =~ /nixos-2[0123]/) {
                    downloadFile("nixos.iso_plasma5.aarch64-linux");
                    downloadFile("nixos.iso_plasma5.x86_64-linux");
                } else {
                    downloadFile("nixos.iso_plasma6.aarch64-linux");
                    downloadFile("nixos.iso_plasma6.x86_64-linux");
                }

                downloadFile("nixos.iso_gnome.aarch64-linux");
                downloadFile("nixos.iso_gnome.x86_64-linux");
            } else {
                downloadFile("nixos.iso_graphical.aarch64-linux");
                downloadFile("nixos.iso_graphical.x86_64-linux");
            }

            if ($channelName =~ /nixos-2[0123]/) { # i686 dropped for > 23.11
                downloadFile("nixos.iso_minimal.i686-linux");
            }

            if ($channelName =~ /nixos-2([0123]\...|4\.05)/) {
                downloadFile("nixos.ova.x86_64-linux");
            }
        }

    } else {
        downloadFile("tarball", "nixexprs.tar.xz", "source-dist", '\.tar\.xz$');
        downloadFile("tarball", "packages.json.br", "json-br");
    }
14:45:57
@hexa:lossy.networkhexaRedacted or Malformed Event14:46:00
@hexa:lossy.networkhexaRedacted or Malformed Event14:46:12
@emilazy:matrix.orgemilyit would be very sad to give up on Nix/Hydra as the integrated build system for all of NixOS imo14:46:22
@emilazy:matrix.orgemilyfeel like all this logic could just be … a derivation outputting some symlinks even14:46:57
@emilazy:matrix.orgemilybarely even need a manifest14:47:01
@hexa:lossy.networkhexaper project/jobset buckets with different retention interval is what we thought of for hydra14:47:09
@hexa:lossy.networkhexaRedacted or Malformed Event14:48:00
@hexa:lossy.networkhexaI mean, that is still a manifest of sorts :p14:48:32
@hexa:lossy.networkhexayou are just dumbing it down14:48:45
@emilazy:matrix.orgemily yeah, and cp --dereference is a programmable job execution engine :D 14:49:04
@emilazy:matrix.orgemily (but also it's nice if you can do nix build nixpkgs#channel and get the exact files that would be in the channel release dir etc. rather than having to fish them out of JSON) 14:49:41

Show newer messages


Back to Room ListRoom Version: 6