!zghijEASpYQWYFzriI:nixos.org

Hydra

394 Members
111 Servers

Load older messages


SenderMessageTime
26 Jul 2021
@gytis-ivaskevicius:matrix.orgGytis IvaskeviciusWelp, its confirmed. The more I try - the more I fail. I guess ill write some sort of derivation which depends on everything :/13:02:34
@andreas.schraegle:helsinki-systems.deajs124You can't. Not all of nixpkgs evaluates.13:04:14
@grahamc:nixos.org@grahamc:nixos.org Gytis Ivaskevicius: the only way to really do that would be use hydra's evaluator to get a list of derivations and then walk them and bulid 13:18:51
@gytis-ivaskevicius:matrix.orgGytis IvaskeviciusIs it documented anywhere?13:24:30
@sternenseemann:systemli.orgsterni Gytis Ivaskevicius: nix-shell -p hydra-unstable --run "hydra-eval-jobs -I. pkgs/top-level/release.nix" although keep in mind this doesn't technically even evaluate all of nixpkgs 17:45:21
@sternenseemann:systemli.orgsternibut most of it17:45:23
@sternenseemann:systemli.orgsterniand most likely everything you care about17:45:38
27 Jul 2021
@mrtrk:matrix.orgMarco Turchetto joined the room.14:39:47
@mrtrk:matrix.orgMarco TurchettoHi, I'm trying to integrate hydra with GitLab, the intended outcome is to have a project for merge requests and a jobset for every merge request, I have tried with the GitlabPulls.pm plugin but I'm starting to think that is not really what I need14:55:39
@grahamc:nixos.org@grahamc:nixos.org🤔 I've never used the Pulls plugin, but I've got an upcoming project that involves it15:25:01
@grahamc:nixos.org@grahamc:nixos.orgIt looks like you have to use declarative jobsets to use this plugin. This plugin provides an inputs to the declarative jobsets, your nix code would iterate over the pulls in that input, and return a list of jobsets15:27:19
@grahamc:nixos.org@grahamc:nixos.orgbut it is not clear how to actually do that15:27:30
@grahamc:nixos.org@grahamc:nixos.orglike, a bare bones example would be super helpful here 🙃15:27:50
@mrtrk:matrix.orgMarco TurchettoOh, ok nothing was having sense because I was not aware of the "declarative projects"...15:27:59
@grahamc:nixos.org@grahamc:nixos.orgunderstandable15:28:37
@grahamc:nixos.org@grahamc:nixos.orgthe docs are not easy to follow but https://github.com/NixOS/hydra/blob/master/doc/manual/src/projects.md#generated-declarative-projects15:29:19
@mrtrk:matrix.orgMarco TurchettoSo in the end I still need to have a separate repository (or a hydra-fetchable) which contains a nix file that evaluates the list of jobsets? I'm really confused15:47:17
@mrtrk:matrix.orgMarco TurchettoI still don't get how many levels of indirection we have, this plugin needs some config file, can I store it inside some file, and then create a declarative project that uses that file?15:51:46
@mrtrk:matrix.orgMarco TurchettoThere is a reason why I cannot delete a jobset from a project?16:24:47
@casey:hubns.netcransomif the project was created declaratively, you won't be able to delete them.16:40:33
@mrtrk:matrix.orgMarco TurchettoRedacted or Malformed Event16:42:20
@mrtrk:matrix.orgMarco Turchetto So I managed to create a declarative project that is using the GitlabPulls, but it seems that the plugin it broken, when I declare the project I must set a "Declarative spec file" but if I set it I get this error
Jul 27 18:43:53 hydra-staging hydra-evaluator[149715]: read_file '/nix/store/p8mjch1a8wg3ir2ac1vj4g2i2cmlhd35-gitlab-pulls-sorted.json/dummi_declarative_file!!!' - open: Not a directory at /nix/store/ayql17hvhbbwy0rj2q6zql0n9bfvsddc-hydra-2021-05-03/bin/.hydra-eval-jobset-wrapped line 571.
16:48:56
@mrtrk:matrix.orgMarco TurchettoThe plugin correctly generate the jobs.json and puts it into the store, but for some reason I cannot use it, maybe there has been some changes on hydra that has made the plugin not working?16:50:43
@mrtrk:matrix.orgMarco TurchettoWith some hacks I have managed to make the jobs file work, but it seems that the plugin is half broken, the jobs format is invalid17:29:04
29 Jul 2021
@mrtrk:matrix.orgMarco Turchetto

Still battling with the Gitlab integration for hydra, now I have this error:

Jul 29 18:32:49 hydra-staging hydra-evaluator[468509]: starting evaluation of jobset ‘backend-merge-requests:MR14 (jobset#216)’ (last checked 50 s ago)
Jul 29 18:32:52 hydra-staging hydra-evaluator[470816]: fatal: ambiguous argument 'merge-requests/14/head': unknown revision or path not in the working tree.
Jul 29 18:32:52 hydra-staging hydra-evaluator[470816]: Use '--' to separate paths from revisions, like this:
Jul 29 18:32:52 hydra-staging hydra-evaluator[470816]: 'git <command> [<revision>...] -- [<file>...]'
Jul 29 18:32:52 hydra-staging hydra-evaluator[470806]: command `git rev-parse merge-requests/14/head' failed with exit status 32768 in /var/lib/hydra/scm/git/9d106752ea6f76ffa4e159a0717fee642f108c915ce15f9a33399d05f33d2ef7 at /nix/store/k06bxk2a0fklr4dqnxya2bnkgxa52wgj-hydra-2021-05-03/libexec/hydra/lib/Hydra/Helper/Nix.pm line 411.

The jobset git input configuration is the following

"gitlab": {                                                                                                      
        "emailresponsible": 0,
        "type": "git",
        "value": "git@gitlab.domain.com:backend/backend.git merge-requests/14/head"
      },

which for some reason is not working 🧐

16:39:49
@grahamc:nixos.org@grahamc:nixos.orgit sounds like git isn't fetching those refs by default, so it can't access them16:44:47
31 Jul 2021
@ma27:nicht-so.sexyma27does anybody want to help me to get https://github.com/NixOS/hydra/pull/743 forward? (I'd mainly need reviews or testers, the code is mostly ready, I'd resolve the merge conflicts as soon as other's have the capacity to push this forward)21:31:23
1 Aug 2021
@jamie:memes.nzJamie joined the room.08:05:17
@lukegb:zxcvbnm.ninjalukegb (he/him)https://github.com/NixOS/hydra/pull/825 would be nice, too21:48:43
6 Aug 2021
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from continuouswave to cw (? days since last shower).18:10:38

Show newer messages


Back to Room ListRoom Version: 6