| 3 Mar 2024 |
| @pharo.:matrix.org joined the room. | 20:40:41 |
| @pharo.:matrix.org left the room. | 20:41:30 |
ma27 | there's btw a rather trivial PR from me: https://github.com/NixOS/hydra/pull/1361
(fixes an integration test in flake.nix) | 21:30:30 |
| 4 Mar 2024 |
martiert | Any idea on what would be needed to get a hydra builder with local store cache to actually sign the store paths? I'm setting store_uri = daemon?secret_key=${age.....} in my services.hydra.extraConfig, but nothing is being signed. | 06:57:39 |
| knownasred joined the room. | 10:11:11 |
tomberek | I have a feeling that figuring out your issue would be best done live. | 17:50:09 |
tomberek | Feel free to ping me some evening (EST) or weekend. | 17:50:45 |
martiert | tomberek: available to help out some now? | 17:54:10 |
| 7 Mar 2024 |
void | In reply to @roberthensing:matrix.org with the latest bdwgc release we should get rid of the patch https://github.com/NixOS/nix/pull/9900 does this fix the problem?
euler | make[3]: Entering directory '/build/source/src/hydra-eval-jobs'
euler | g++ -DHAVE_CONFIG_H -I. -I../.. -std=c++2a -I/nix/store/sayhfgaika0srb3d06ykn01svkg56264-nix-unstable-evrim-2.19.3-dev/include/nix -I/nix/store/a6gcj4anazwgqpn5nx7aqcw7f290xs89-boehm-gc-nix-evrim-8.2.4-dev/include -I ../libhy\
dra -g -O2 -include nix/config.h -c -o hydra_eval_jobs-hydra-eval-jobs.o `test -f 'hydra-eval-jobs.cc' || echo './'`hydra-eval-jobs.cc
euler | hydra-eval-jobs.cc:92:56: error: 'PackageInfo' has not been declared
euler | 92 | static std::string queryMetaStrings(EvalState & state, PackageInfo & drv, const std::string & name, const std::string & subAttribute)
euler | | ^~~~~~~~~~~
euler | hydra-eval-jobs.cc: In function 'std::string queryMetaStrings(nix::EvalState&, int&, const std::string&, const std::string&)':
euler | hydra-eval-jobs.cc:111:21: error: request for member 'queryMeta' in 'drv', which is of non-class type 'int'
euler | 111 | Value * v = drv.queryMeta(name);
euler | | ^~~~~~~~~
euler | hydra-eval-jobs.cc: In function 'void worker(nix::EvalState&, nix::Bindings&, nix::AutoCloseFD&, nix::AutoCloseFD&)':
euler | hydra-eval-jobs.cc:184:17: error: 'PackageInfo' has not been declared
euler | 184 | PackageInfo::Outputs outputs = drv->queryOutputs(
euler | | ^~~~~~~~~~~
euler | hydra-eval-jobs.cc:198:58: error: invalid initialization of reference of type 'int&' from expression of type 'nix::DrvInfo'
euler | 198 | job["license"] = queryMetaStrings(state, *drv, "license", "shortName");
euler | | ^~~~
euler | hydra-eval-jobs.cc:92:70: note: in passing argument 2 of 'std::string queryMetaStrings(nix::EvalState&, int&, const std::string&, const std::string&)'
euler | 92 | static std::string queryMetaStrings(EvalState & state, PackageInfo & drv, const std::string & name, const std::string & subAttribute)
euler | | ~~~~~~~~~~~~~~^~~
euler | hydra-eval-jobs.cc:200:62: error: invalid initialization of reference of type 'int&' from expression of type 'nix::DrvInfo'
euler | 200 | job["maintainers"] = queryMetaStrings(state, *drv, "maintainers", "email");
euler | | ^~~~
euler | hydra-eval-jobs.cc:92:70: note: in passing argument 2 of 'std::string queryMetaStrings(nix::EvalState&, int&, const std::string&, const std::string&)'
euler | 92 | static std::string queryMetaStrings(EvalState & state, PackageInfo & drv, const std::string & name, const std::string & subAttribute)
euler | | ~~~~~~~~~~~~~~^~~
euler | hydra-eval-jobs.cc:246:59: error: 'outputs' was not declared in this scope; did you mean 'puts'?
euler | 246 | for (auto & [outputName, optOutputPath] : outputs) {
euler | | ^~~~~~~
euler | | puts
euler | make[3]: *** [Makefile:443: hydra_eval_jobs-hydra-eval-jobs.o] Error 1
| 16:49:53 |
void | tried to match nix flake with hydra flake but failed for 2.18 2.19 and 2.20, strange. | 16:50:19 |
void | for instance hydra branch -> nix-2.19 with nix 2.19-maintenance. | 16:50:46 |
void | cant have a working hydra atm. | 16:51:06 |
Robert Hensing (roberth) | void: looks like Hydra doesn't support that nix version | 16:51:07 |
Robert Hensing (roberth) | haven't seen those errors | 16:51:15 |
void | oh I have plenty. | 16:51:41 |
void |
euler | make[3]: Entering directory '/build/source/src/hydra-evaluator'
euler | g++ -DHAVE_CONFIG_H -I. -I../.. -std=c++2a -I/nix/store/sayhfgaika0srb3d06ykn01svkg56264-nix-unstable-evrim-2.19.3-dev/include/nix -I/nix/store/a6gcj4anazwgqpn5nx7aqcw7f290xs89-boehm-gc-nix-evrim-8.2.4-dev/include -Wall -I ..\
/libhydra -Wno-deprecated-declarations -g -O2 -include nix/config.h -c -o hydra_evaluator-hydra-evaluator.o `test -f 'hydra-evaluator.cc' || echo './'`hydra-evaluator.cc
euler | In file included from hydra-evaluator.cc:1:
euler | ../libhydra/db.hh: In member function 'std::string Connection::getFlags()':
euler | ../libhydra/db.hh:15:18: error: 'getEnv' was not declared in this scope; did you mean 'getenv'?
euler | 15 | auto s = getEnv("HYDRA_DBI").value_or("dbi:Pg:dbname=hydra;");
euler | | ^~~~~~
euler | | getenv
euler | In file included from hydra-evaluator.cc:2:
euler | ../libhydra/hydra-config.hh: In constructor 'HydraConfig::HydraConfig()':
euler | ../libhydra/hydra-config.hh:16:32: error: 'getEnv' was not declared in this scope; did you mean 'getenv'?
euler | 16 | auto hydraConfigFile = getEnv("HYDRA_CONFIG");
euler | | ^~~~~~
euler | | getenv
euler | ../libhydra/hydra-config.hh:17:32: error: 'pathExists' was not declared in this scope
euler | 17 | if (hydraConfigFile && pathExists(*hydraConfigFile)) {
euler | | ^~~~~~~~~~
euler | ../libhydra/hydra-config.hh:19:54: error: 'readFile' was not declared in this scope
euler | 19 | for (auto line : tokenizeString<Strings>(readFile(*hydraConfigFile), "\n")) {
euler | | ^~~~~~~~
euler | hydra-evaluator.cc: In member function 'void Evaluator::run()':
euler | hydra-evaluator.cc:470:25: error: 'createInterruptCallback' was not declared in this scope
euler | 470 | auto callback = createInterruptCallback([&]() { std::_Exit(1); });
euler | | ^~~~~~~~~~~~~~~~~~~~~~~
euler | make[3]: *** [Makefile:443: hydra_evaluator-hydra-evaluator.o] Error 1
euler | make[3]: Leaving directory '/build/source/src/hydra-evaluator'
| 16:51:53 |
void | none of the branches compiles. | 16:51:58 |
void | maybe Im doing something strange. | 16:52:05 |
void | the above is with nix-2.19 hydra, 2.19-maintenance nix branch. | 16:52:42 |
void | though those branches are there to match but I guess Im wrong. | 16:53:37 |
void | * thought those branches are there to match but I guess Im wrong. | 16:53:43 |
void | could you point me in the right direction of branches to use? | 16:55:20 |
void | nix.url = "git+http://gitea/nix/nix.git?ref=2.18-maintenance";
nix.inputs.nixpkgs.follows = "nixpkgs";
hydra.url = "git+http://gitea/nix/hydra.git?ref=nix-2.18"; #"path:/home/void/hydra"; #"github:NixOS/hydra";
hydra.inputs.nixpkgs.follows = "nixpkgs";
hydra.inputs.nix.follows = "nix"; #inputs.nixpkgs.follows = "nixpkgs";
| 16:55:35 |
void | * nix.url = "git+http://gitea/nix/nix.git?ref=2.18-maintenance";
nix.inputs.nixpkgs.follows = "nixpkgs";
hydra.url = "git+http://gitea/nix/hydra.git?ref=nix-2.18";
hydra.inputs.nixpkgs.follows = "nixpkgs";
hydra.inputs.nix.follows = "nix"; #inputs.nixpkgs.follows = "nixpkgs";
| 16:55:44 |
void | * could you point me in the right direction of which branches to use? | 16:56:16 |
Robert Hensing (roberth) | I don't know. I'd assume the inputs of the hydra flake provide a working combination | 16:57:27 |
Robert Hensing (roberth) | maintaining hydra is not my job unfortunately :/ | 16:57:53 |
void | Its OK, just seen your PackageInfo patch on nix that's why I thought you mite have an idea. | 16:58:47 |
ma27 | In reply to @void68:matrix.org the above is with nix-2.19 hydra, 2.19-maintenance nix branch. fwiw nix build on 2.19 (with the flake pointing to nix 2.19-maintenance) works fine for me though. | 17:03:42 |
ma27 | are you using the flake stuff or the nixpkgs package? | 17:03:52 |