| 26 Jul 2021 |
Gytis Ivaskevicius | Welp, 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 |
ajs124 | You can't. Not all of nixpkgs evaluates. | 13:04:14 |
@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 | Is it documented anywhere? | 13:24:30 |
sterni | 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 |
sterni | but most of it | 17:45:23 |
sterni | and most likely everything you care about | 17:45:38 |
| 27 Jul 2021 |
| Marco Turchetto joined the room. | 14:39:47 |
Marco Turchetto | Hi, 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 need | 14:55:39 |
@grahamc:nixos.org | 🤔 I've never used the Pulls plugin, but I've got an upcoming project that involves it | 15:25:01 |
@grahamc:nixos.org | It 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 jobsets | 15:27:19 |
@grahamc:nixos.org | but it is not clear how to actually do that | 15:27:30 |
@grahamc:nixos.org | like, a bare bones example would be super helpful here 🙃 | 15:27:50 |
Marco Turchetto | Oh, ok nothing was having sense because I was not aware of the "declarative projects"... | 15:27:59 |
@grahamc:nixos.org | understandable | 15:28:37 |
@grahamc:nixos.org | the docs are not easy to follow but https://github.com/NixOS/hydra/blob/master/doc/manual/src/projects.md#generated-declarative-projects | 15:29:19 |
Marco Turchetto | So 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 confused | 15:47:17 |
Marco Turchetto | I 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 |
Marco Turchetto | There is a reason why I cannot delete a jobset from a project? | 16:24:47 |
cransom | if the project was created declaratively, you won't be able to delete them. | 16:40:33 |
Marco Turchetto | Redacted or Malformed Event | 16:42:20 |
Marco 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 |
Marco Turchetto | The 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 |
Marco Turchetto | With some hacks I have managed to make the jobs file work, but it seems that the plugin is half broken, the jobs format is invalid | 17:29:04 |
| 29 Jul 2021 |
Marco 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 | it sounds like git isn't fetching those refs by default, so it can't access them | 16:44:47 |
| 31 Jul 2021 |
ma27 | does 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 joined the room. | 08:05:17 |
lukegb (he/him) | https://github.com/NixOS/hydra/pull/825 would be nice, too | 21:48:43 |
| 6 Aug 2021 |
| Rev. CornWallace III (novus ordo seclorum) changed their display name from continuouswave to cw (? days since last shower). | 18:10:38 |