Hydra | 392 Members | |
| 110 Servers |
| Sender | Message | Time |
|---|---|---|
| 10 Jun 2022 | ||
| Hum, of course the minimal example works as expected. The only thing I can even think of is the pin. | 10:58:25 | |
But then it stresses me out that the same nix build runs fine locally. | 10:58:45 | |
| If anyone has any ideas as to what could lead to a NixOS test running locally but not on a Hydra instance (the last thing that comes to my mind would be performance differences), I'd be really happy. I'll put my example on github next week, hopefully a smarter person than me can see what's going on then. The gist of it is that I'm starting the postgres service, wait for it to be up, then change the user password. This works fine. But then doing anything after, like
| 14:17:48 | |
| This works just fine locally though, and I'm at a loss. | 14:18:01 | |
| * This same test works just fine locally though, and I'm at a loss. | 14:19:27 | |
| 19:21:26 | ||
| 11 Jun 2022 | ||
| kenran_: is KVM enabled on your Hydra instance? | 06:10:33 | |
| does anyone here know what the altnr of a jobsetevalinput is? | 19:51:00 | |
| Got it btw. This is used as when you have an input with the same name multiple times and it's part of the primary key. It's set to 0 normally | 22:38:58 | |
| 12 Jun 2022 | ||
| 08:32:08 | ||
| Perfect, something seems to set my umask to 18 in the evaluator… although there is no umask() call in the codebase :/ | 14:51:41 | |
grahamc (he/him): Btw, Hydra won't survive y2038 because timestamp has type integer (4 bytes) | 14:56:01 | |
| What is the correct way of building a nixosConfiguration? | 17:44:38 | |
In reply to @ulrikstrid:matrix.orgWhat do you mean exactly? A NixOS configuration with a hydra service? Your question sounds like it's about the flake output type. | 19:18:01 | |
In reply to @lewo:matrix.orgIt's in system-features, but that's probably not what you mean!? The machine is a VM in the cloud; I'll check tomorrow, but given that it takes 5 minutes to run this test I don't think it is :) | 19:19:24 | |
In reply to @kenran_:matrix.orgI manage my computers with flakes and want to have my hydra build the configurations and ideally I would deploy from that | 19:33:14 | |
kenran_: having kvm in system-features is not enough to ensure Nix have enough permissions on /dev/kvm (if nested KVM is provided by your cloud provider) | 19:36:15 | |
In reply to @ulrikstrid:matrix.orgOh, that sounds very nice! I'm interested in knowing more now, too! Is the building part just adding a hydraJobs.my-host.${system} = self.nixosConfigurations.my-host? | 19:36:28 | |
In reply to @lewo:matrix.orgAdding kvm to the system features is already wrong. Nix autodetects kvm and adds the feature | 19:36:46 | |
| kenran_: and if KVM is not available, it can be pretty hard to get NixOS test working. | 19:37:08 | |
In reply to @janne.hess:helsinki-systems.dehttps://github.com/NixOS/nix/blob/master/src/libstore/globals.cc#L128-L129 | 19:37:33 | |
In reply to @lewo:matrix.orgI probably know way too little about kvm, but I was under the impression (someone in the nixos channel told me) that they should be running even without "actual" kvm support. Surely you're right of course. I'm just trying to understand: does that explain why some versions of the tests work, but others don't? | 19:38:35 | |
| vm tests should run, just very very veeeeeryyyy slow | 19:39:07 | |
| KVM provide hardware acceleration of virtualization functions. So, if you don't have it, it can be really slow (order of magnitude)... | 19:39:50 | |
| * KVM provides hardware acceleration of virtualization functions. So, if you don't have it, it can be really slow (order of magnitude)... | 19:40:00 | |
In reply to @andreas.schraegle:helsinki-systems.deYeah, that's what I saw happening :D veeeeerry slow indeed! The same 5-minute test runs in like 15 seconds on my machine. | 19:40:09 | |
| So, fisrt, you need to be sure KVM is available. | 19:41:52 | |
| Ok, so thanks! I know what I can try first: this hydra instance is something I set up to test how things work, and if you can use it for some projects at work, and I'm loving it so far (except for those NixOS tests). I don't think the provider enables kvm for that kind of virtual machine, though, so I'll have to see what other options there are to set it up on. | 19:41:56 | |
| * Ok, so thanks! I know what I can try first: this hydra instance is something I set up to test how things work, and if we can use it for some projects at work, and I'm loving it so far (except for those NixOS tests). I don't think the provider enables kvm for that kind of virtual machine, though, so I'll have to see what other options there are to set it up on. | 19:42:15 | |
| And when that's done and the tests run: fine! If not, I can come here and try to pester you with questions again :) | 19:42:54 | |