!zghijEASpYQWYFzriI:nixos.org

Hydra

370 Members
108 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@rick:matrix.ciphernetics.nlRick (Mindavi)Was wondering about the dependency that was added though16:37:14
@grahamc:nixos.org@grahamc:nixos.org👍️just replied on the thread16:38:26
@janne.hess:helsinki-systems.dedas_jIs there a perlcritic level that complains about calls without parathesis btw? :P16:46:44
@janne.hess:helsinki-systems.dedas_jthat seems really incosistent throughout the codebase and somebody complained about me not fixing it in switch-to-configuration ;)16:47:08
@grahamc:nixos.org@grahamc:nixos.orgwho knows ...16:47:29
@grahamc:nixos.org@grahamc:nixos.orgTIL function signatures are "experimental" but practically not experimental and we should use them16:47:40
@grahamc:nixos.org@grahamc:nixos.organd they work on methods too, while prototypes did not 16:47:47
@janne.hess:helsinki-systems.dedas_j
my @expected_names = ( "bogus-1", "bogus-2" );
16:48:27
@janne.hess:helsinki-systems.dedas_jshouldn't you use qw here?16:48:33
@grahamc:nixos.org@grahamc:nixos.orgI guess16:48:43
@janne.hess:helsinki-systems.dedas_j apart from the open() vs open thing, it looks good to me 16:49:07
@grahamc:nixos.org@grahamc:nixos.orgI thought about migrating all the opens to use parens and got lazy ... :)16:52:58
@janne.hess:helsinki-systems.dedas_junderstandable17:10:37
@grahamc:nixos.org@grahamc:nixos.orgI made them all open's use parens17:16:22
@grahamc:nixos.org@grahamc:nixos.orgI'm going to smash the merge button since nothing material has changed since the reviews, except the parens 17:16:36
@grahamc:nixos.org@grahamc:nixos.orgthank you for the reviews :)17:16:45
@grahamc:nixos.org@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",
        ]
    }
}
19:07:38
@grahamc:nixos.org@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",
        ]
    }
}
19:07:41
@grahamc:nixos.org@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",
        ]
    }
}
19:07:51
@grahamc:nixos.org@grahamc:nixos.orgjust something I'm noodling on19:09:53
@janne.hess:helsinki-systems.dedas_jis this some hail alternative?19:10:03
@grahamc:nixos.org@grahamc:nixos.orgno19:10:10
@grahamc:nixos.org@grahamc:nixos.orgbut you could use this to boot a NixOS AMI and get its very first config deployed which is set up to pull from hydra on a regular baslis19:10:34
@grahamc:nixos.org@grahamc:nixos.org * but you could use this to boot a NixOS AMI and get its very first config deployed which is set up to pull from hydra on a regular basis19:10:36
@janne.hess:helsinki-systems.dedas_jah that's just an initial provisioning thing19:10:56
@grahamc:nixos.org@grahamc:nixos.orgyeah19:11:00
@grahamc:nixos.org@grahamc:nixos.orgor maybe you do immutable deployments and make new instances for every deployment19:11:16
@janne.hess:helsinki-systems.dedas_jbtw, is it just me or was the code on your blog pretty similiar to the stuff I sent to you a couple of months back? :D19:11:19
@janne.hess:helsinki-systems.dedas_j
In reply to @grahamc:nixos.org
or maybe you do immutable deployments and make new instances for every deployment
that's a nice icea
19:11:28
@janne.hess:helsinki-systems.dedas_j
In reply to @grahamc:nixos.org
or maybe you do immutable deployments and make new instances for every deployment
* that's a nice idea
19:11:30

There are no newer messages yet.


Back to Room ListRoom Version: 6