!zghijEASpYQWYFzriI:nixos.org

Hydra

397 Members
114 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@grahamc:nixos.org@grahamc:nixos.orgthere are only so many ways to do it!19:12:16
@grahamc:nixos.org@grahamc:nixos.org:joy: 19:12:20
@janne.hess:helsinki-systems.dedas_jyou could do it in haskell for no reason :D19:13:17
@grahamc:nixos.org@grahamc:nixos.orgI could see justifiable reasons19:13:28
@tomberek:matrix.orgtomberekI've used the "remote-exec" as a deployment alternative before. With lifecycle options it's effective even as a continuous provisioning. Pointing to hydra output via Terraform is nice.19:14:01
@grahamc:nixos.org@grahamc:nixos.orglike if you're putting a lot of work in to observability around it19:14:03
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/DeterminateSystems/terraform-provider-hydra/issues/7219:15:23
@casey:hubns.netcransom
In reply to @grahamc:nixos.org
data "hydra_job" "system" {
    project = "app"
    jobset = "production"
    job = "webserver"
}

resource "aws_instance" "web" {
    # ...
    provisioner "remote-exec" {
        inline = [
            "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job.system.outputs.out.path}'",
            "/nix/var/nix/profiles/system/bin/switch-to-configuration switch",
        ]
    }
}
that is smooth. we do the ami baking, but the next speed hack, i was contemplating was for the deploy to upload a user-data for cloud-init that does a nix-store -r <system path>; <system path>/bin/switch-to-configuration switch and then either launch or reboot machines.
20:17:32
@hpfr:matrix.orghpfr joined the room.21:12:52
@hpfr:matrix.orghpfr

maybe this is a better place to ask?

https://nixos.org/channels/nixos-unstable is behind https://status.nixos.org, which I didn't even think was possible. shouldn't the status page wait until the channel itself actually updates?

21:13:21
@hpfr:matrix.orghpfrnixos-unstable still has not advanced...23:42:56
@r-burns:matrix.orgRyan Burnsmaybe related https://github.com/NixOS/nixos-org-configurations/issues/16923:46:27
21 Oct 2021
@hpfr:matrix.orghpfrthanks, good to know it is recent00:36:30
@tomberek:matrix.orgtomberekwhat's the "merge these derivations with symlinks, with some default ordering imposed" function?00:58:10
@tomberek:matrix.orgtomberekbuildEnv... maybe00:59:44
@lukegb:zxcvbnm.ninjalukegb (he/him) Caught exception in Hydra::Controller::Build->restart "Can't locate object method "search" via package "Hydra::Model::DB::Builds" at /nix/store/4yh4dda4w8f4w7gr5mvvc576b157nq50-hydra-0.1.20211020.30e5001/libexec/hydra/lib/Hydra/Helper/Nix.pm line 511." 06:29:45
@lukegb:zxcvbnm.ninjalukegb (he/him)wondering if removing the prototype from restartBuilds changed the way that args are being passed to it...06:40:33
@lukegb:zxcvbnm.ninjalukegb (he/him) in particular, I think it's flipped it to being evaluated in a list context rather than a scalar one sigh 06:42:13
@phaer:matrix.orgphaer joined the room.12:52:11
@grahamc:nixos.org@grahamc:nixos.orgI didn't think prototypes actually changed semantics, but just sometimes introduced compiler errors if you broke it13:17:40
@grahamc:nixos.org@grahamc:nixos.orgwhat page did you get that error?13:17:49
@grahamc:nixos.org@grahamc:nixos.orgoh that is actually pretty obvious from the messag e:)13:19:22
@grahamc:nixos.org@grahamc:nixos.org * oh that is actually pretty obvious from the message :)13:19:24
@grahamc:nixos.org@grahamc:nixos.orgI just tried it locally and it worked fine ... hmm13:21:23
@grahamc:nixos.org@grahamc:nixos.org ah this is restarting a specific build. 13:26:31
@grahamc:nixos.org@grahamc:nixos.orgit is definitely getting a ResultSet13:28:38
@grahamc:nixos.org@grahamc:nixos.orghrm!13:32:32
22 Oct 2021
@lukegb:zxcvbnm.ninjalukegb (he/him)I think that prototypes do change semantics? because iirc function arguments like to induce list context rather than scalar context00:53:05
@lukegb:zxcvbnm.ninjalukegb (he/him)so having a ($$) prototype would force scalar context evaluation but without you might end up in list context00:53:24
@grahamc:nixos.org@grahamc:nixos.orgso I ended up writing a fix for it but fell short on writing a test for it, and I really don't like sending PRs without tests15:29:19

Show newer messages


Back to Room ListRoom Version: 6