| 27 Jan 2022 |
Amanda (she/her) | ckie (they/them): nix holds a lock on the store. If you access it remotely, from the same machine, that lock gets double-locked, resulting in a hang | 01:01:34 |
@grahamc:nixos.org | bool isLocalhost()
{
return sshName == "localhost";
}
| 01:01:34 |
mei π& | ouch.. at least that sounds pretty easy to patch! | 01:01:52 |
Amanda (she/her) | nic explicitally checks that isLocalhost to bypass the double-lock problem | 01:02:07 |
Amanda (she/her) | * nix explicitally checks that isLocalhost to bypass the double-lock problem | 01:02:29 |
mei π& | you really are in a tight spot then | 01:02:47 |
@grahamc:nixos.org | yeah, you could patch hydra without much trouble =) | 01:02:54 |
mei π& | i'm not sure if that's sarcasm | 01:03:43 |
@grahamc:nixos.org | not sarcasm! | 01:03:51 |
mei π& | ah! the endless ambiguity between the offical hydra instance and hydra itself | 01:04:24 |
@grahamc:nixos.org | as far as I'm concerned, this channel is exclusively about the software Hydra, and not any specific deployment of Hydra | 01:04:49 |
mei π& | i didn't even notice what channel i was chatting in until the ambiguity arose | 01:05:21 |
mei π& | :P | 01:05:50 |
@grahamc:nixos.org | :) | 01:06:39 |
@grahamc:nixos.org | here, I think you can make that isLocalhost function this:
if (sshName.size() < 9) {
return false;
}
return (sshName.substr(sshName.size() - 9) == "localhost");
| 01:09:30 |
@grahamc:nixos.org | * here, I think you can make that isLocalhost function this:
if (sshName.size() < 9) {
return false;
}
return (sshName.substr(sshName.size() - 9) == "localhost");
then use "i686.localhost" and "x86.localhost"
| 01:11:40 |
@grahamc:nixos.org | Amanda (she/her): ^ | 01:15:52 |
| 31 Jan 2022 |
| @sjanssen:matrix.org joined the room. | 20:28:41 |
@sjanssen:matrix.org | is there a current working example of "Generated, Declarative Projects"? https://hydra.nixos.org/build/165366167/download/1/hydra/plugins/declarative-projects.html#generated-declarative-projects | 20:33:56 |
@sjanssen:matrix.org | this is what I'm trying: https://gist.github.com/spencerjanssen/786cc8c2b047faf92767917e0fb2dcc6 | 20:47:47 |
@sjanssen:matrix.org | consistently get a message error: access to canonical path '/nix/store/...-user-environment' is forbidden in restricted mode. I think it's failing because I'm trying to instantiate a nixpkgs? | 20:48:31 |
ajs124 | we use them, but we also patch hydra to disable restricted mode | 20:49:56 |
ajs124 | (not because of that, we just do that in general) | 20:50:06 |
@grahamc:nixos.org | π€ | 21:48:58 |
@grahamc:nixos.org | Spencer Janssen: I typically use https://github.com/DeterminateSystems/hydra-github-jobsets-generator | 21:49:38 |
@sjanssen:matrix.org | In reply to @grahamc:nixos.org Spencer Janssen: I typically use https://github.com/DeterminateSystems/hydra-github-jobsets-generator this is cool! Very similar to what I was trying to build myself | 22:04:40 |
@grahamc:nixos.org | Great! It isnβt perfect, I have a couple
branches in that repo working on some things. But yeah, cool :) | 22:05:25 |
@grahamc:nixos.org | Also theGitHub status code is WAY improved on hydra master btw | 22:06:18 |
@sjanssen:matrix.org | do you know if it should work with jobs that are flakes? Can I set inputs = {} and flake = "..." in config.json? | 22:06:30 |
@grahamc:nixos.org | { βflakeβ: true } I think | 22:07:52 |