| 21 Aug 2022 |
samueldr |  Download image.png | 21:19:50 |
samueldr | assuming the inputs work like NIX_PATH does, I would expect this to eval at least up to failing within the eval of Nixpkgs stuff | 21:20:36 |
samueldr | hydra-eval-jobs returned exit code 1:
error: file 'nixpkgs/default.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
error: worker error: error: file 'nixpkgs/default.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
| 21:20:42 |
samueldr | relatedly, I'm trying to simulate another more involved issue where similarly import <some-url-to-tarball> within hydra will try to import the raw tarball, but when provided as NIX_PATH to a norma Nix eval it unpacks it before making it available | 21:24:33 |
samueldr | * relatedly, I'm trying to simulate another more involved issue where similarly import <some-url-to-tarball> within hydra will try to import the raw tarball, but when provided as NIX_PATH to a normal Nix eval it unpacks it before making it available | 21:44:00 |
samueldr | * $ NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/1905f5f2e55e0db0bb6244cfe62cb6c0dbda391d.tar.gz nix repl
Welcome to Nix 2.7.0. Type :? for help.
nix-repl> import <nixpkgs/default.nix>
«lambda @ /nix/store/1iblaav6dxrc5b39b3gbdnbl47sfjxrq-source/pkgs/top-level/impure.nix:15:1»
This is "working" as expected in a Nix eval | 22:05:19 |
| 22 Aug 2022 |
| Valodim left the room. | 07:48:01 |
kayla (she/they) | I'd like to be able to use declarative jobsets in hydra to spawn jobsets for all unmerged branches(essentially the parsed result of git branch --no-merge main).
I figure [dynamic]runCommand will be useful for this but I've not been able to figure out a path of least resistance?
(eg, how to get the branch information without inflating evaluation time by a lot, in the case of large repositories). I've tried to go though the git protocol api docs but they seem to be broken on the site right now.
Has anyone else done this with a generic git host and hydra?
Alternatively, is there a way to get branch merged information when doing git ls-remote? | 21:37:06 |
kayla (she/they) | * I'd like to be able to use declarative jobsets in hydra to spawn jobsets for all unmerged branches(essentially the parsed result of git branch --no-merge main).
I figure [dynamic]runCommand will be useful for this but I've not been able to figure out a path of least resistance?
(eg, how to get the branch information without inflating evaluation time by a lot, in the case of large repositories). I've tried to go though the git protocol api docs but they seem to be broken on the site right now.
Has anyone else done this with a 'generic' git host and hydra?
Alternatively, is there a way to get branch merged information when doing git ls-remote? | 21:41:30 |
kayla (she/they) | * I'd like to be able to use declarative jobsets in hydra to spawn jobsets for all unmerged branches(essentially the parsed result of git branch --no-merge main).
I figure [dynamic]runCommand will be useful for this but I've not been able to figure out a path of least resistance?
(eg, how to get the branch information without inflating evaluation time by a lot, in the case of large repositories). I've tried to go though the git protocol api docs but they seem to be broken on the site right now.
Has anyone else done this with a 'generic' git host and hydra?
Alternatively, is there a way to get branch merged information when doing git ls-remote?
Edit: seems like I might be looking for git clone --filter=tree:0 <url> | 22:01:53 |
kayla (she/they) | * I'd like to be able to use declarative jobsets in hydra to spawn jobsets for all unmerged branches(essentially the parsed result of git branch --no-merge main).
I figure [dynamic]runCommand will be useful for this but I've not been able to figure out a path of least resistance?
(eg, how to get the branch information without inflating evaluation time by a lot, in the case of large repositories). I've tried to go though the git protocol api docs but they seem to be broken on the site right now.
Has anyone else done this with a 'generic' git host and hydra?
Alternatively, is there a way to get branch merged information when doing git ls-remote?
Edit: not complete but, seems like I might be looking for git clone --filter=tree:0 <url>, but | 22:16:55 |
| 23 Aug 2022 |
| Echo joined the room. | 00:48:41 |
ajs124 | In reply to @kayla.fire:matrix.org
I'd like to be able to use declarative jobsets in hydra to spawn jobsets for all unmerged branches(essentially the parsed result of git branch --no-merge main).
I figure [dynamic]runCommand will be useful for this but I've not been able to figure out a path of least resistance?
(eg, how to get the branch information without inflating evaluation time by a lot, in the case of large repositories). I've tried to go though the git protocol api docs but they seem to be broken on the site right now.
Has anyone else done this with a 'generic' git host and hydra?
Alternatively, is there a way to get branch merged information when doing git ls-remote?
Edit: not complete but, seems like I might be looking for git clone --filter=tree:0 <url>, but doesn't one of those plugin sort of already do that? gitrefs maybe? | 09:38:43 |
kayla (she/they) | In reply to@andreas.schraegle:helsinki-systems.de doesn't one of those plugin sort of already do that? gitrefs maybe? The plugins I'm aware of are GitInput Github{Pulls,Refs,Status} and GitLab{Pulls,Status} and GiteaStatus(https://github.com/NixOS/hydra/tree/master/src/lib/Hydra/Plugin).
As far as I can tell there isn't yet a GitRefs plugin that does this generically for any git-host?
I've been trying to pass parameters (deepClone) to the GitInput input but I'm not getting the branch information i've been looking for yet. | 11:57:57 |
| kha13d joined the room. | 20:26:29 |
kha13d | hey folks - i'm experimenting with Hydra locally, following the instructions here: https://github.com/NixOS/hydra#building-and-developing | 20:31:57 |
kha13d | i created a project + flake based jobset. it picks up the hydraJobs from the flake, but they fail with the following message | 20:39:43 |
kha13d | " Aborted: [31;1merror:[0m unexpected end-of-file (log, raw, tail)" | 20:39:50 |
kha13d | if I click on logs, i get: "error: you are not privileged to build input-addressed derivations" | 20:40:10 |
Sandro | nix.trustedUsers is set to [ "@wheel" ] | 22:10:55 |
kha13d | thanks Sandro 🐧! that seems to have done it | 22:29:23 |
Sandro | * nix.trustedUsers is set to [ "@wheel" ]? | 22:33:01 |
kha13d | Sandro 🐧: actually i think @wheel didn't do it; it was the fact that i added my own username to trusted-users | 23:01:27 |
kha13d | afaict wheel is mainly a BSD thing? :) | 23:01:40 |
Sandro | NixOS uses it, too | 23:22:00 |
| 24 Aug 2022 |
kha13d | ah gotcha. i happen to be running this on popos, which apparently doesn’t | 00:59:32 |
Amanda (she/her) | It may name it sudo or similar. | 10:53:47 |
Amanda (she/her) | Did something change recently with hydra's evaluation logic? This is the second week in a row my weekly update caused an OOM | 11:29:01 |
Amanda (she/her) | Just doign the evaluation mind you, the actual building is offloaded | 11:29:55 |
kha13d | In reply to @amanda:camnet.site It may name it sudo or similar. yep, it does | 13:42:38 |