!zghijEASpYQWYFzriI:nixos.org

Hydra

396 Members
112 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@grahamc:nixos.org@grahamc:nixos.orgdoes anyone intend on reviewing #1044 (perlcritic level 3)? I'd love some eyes on it, but if not I'm inclined to just press the button16:32:43
@janne.hess:helsinki-systems.dedas_jI can take a look but I can't guarantee I'll spot all issues ;)16:35:17
@grahamc:nixos.org@grahamc:nixos.orgof course not16:36:42
@rick:matrix.ciphernetics.nlRick (Mindavi)I looked earlier, but it looks different now :p, don't see any obvious issues but I've never written perl16:37:02
@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

Show newer messages


Back to Room ListRoom Version: 6