!zghijEASpYQWYFzriI:nixos.org

Hydra

380 Members
110 Servers

Load older messages


SenderMessageTime
19 Aug 2022
@linus:schreibt.jetzt@linus:schreibt.jetztoh actually https://github.com/NixOS/nix/milestone/6?closed=1 is a better overview.11:04:06
@grahamc:nixos.org@grahamc:nixos.orgPerl has very little code that justifies being written in C++, I'm pretty sure it was picked for the website because it both had a popular web framework and the Nix contributors had experience13:48:52
@grahamc:nixos.org@grahamc:nixos.org * Hydra has very little code that justifies being written in C++, I'm pretty sure it was picked for the website because it both had a popular web framework and the Nix contributors had experience13:48:58
@grahamc:nixos.org@grahamc:nixos.org * Hydra has very little code that justifies being written in C++, I'm pretty sure Perl was picked for the website because it both had a popular web framework and the Nix contributors had experience13:49:02
21 Aug 2022
@samueldr:matrix.orgsamueldram I alone in thinking it is a surprising behaviour when executing hydra with foreman that evals being affected by the ambiant NIX_PATH is surprising?04:47:45
@samueldr:matrix.orgsamueldr the eval used import <nixpkgs> {}, and nixpkgs was an input of the build (a git checkout) 04:48:44
@samueldr:matrix.orgsamueldr it ended-up trying to import <nixos-config> for its overlay, and failing on a further path import disallowed by restricted eval 04:49:13
@samueldr:matrix.orgsamueldr btw, I'm using a foreman-started hydra as a sort of better UX around nix-build for a complex project... it's hard to get a good bird's eye view of what is going on 04:51:44
@k900:0upti.meK900
In reply to @k900:0upti.me
OK whomst do I poke here to get https://github.com/NixOS/hydra/pull/1243 merged
Not to be too annoying but bump
07:12:01
@greaka:greaka.degreaka changed their display name from greaka ⚡️ to greaka .09:25:58
@samueldr:matrix.orgsamueldr ignore the fact that it's not a valid way to evaluate Nixpkgs 21:18:26
@samueldr:matrix.orgsamueldr * ignoring the fact that it's not a valid way to evaluate Nixpkgs 21:18:32
@samueldr:matrix.orgsamueldram I missing something obvious with hydra jobset inputs?21:19:04
@samueldr:matrix.orgsamueldr
$ 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»
``
21:19:13
@samueldr:matrix.orgsamueldr *
$ 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

21:19:25
@samueldr:matrix.orgsamueldrimage.png
Download image.png
21:19:50
@samueldr:matrix.orgsamueldr 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:matrix.orgsamueldr
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:matrix.orgsamueldr 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:matrix.orgsamueldr * 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:matrix.orgsamueldr *
$ 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:stratum0.orgValodim left the room.07:48:01
@kayla.fire:matrix.orgkayla (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.fire:matrix.orgkayla (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.fire:matrix.orgkayla (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.fire:matrix.orgkayla (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
@callmeecho:matrix.orgEcho joined the room.00:48:41
@andreas.schraegle:helsinki-systems.deajs124
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.fire:matrix.orgkayla (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:matrix.orgkha13d joined the room.20:26:29

Show newer messages


Back to Room ListRoom Version: 6