!zghijEASpYQWYFzriI:nixos.org

Hydra

375 Members
110 Servers

Load older messages


SenderMessageTime
3 Mar 2024
@pharo.:matrix.org@pharo.:matrix.org joined the room.20:40:41
@pharo.:matrix.org@pharo.:matrix.org left the room.20:41:30
@ma27:nicht-so.sexyma27

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:matrix.orgmartiert 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
@redblueflame:matrix.orgknownasred joined the room.10:11:11
@tomberek:matrix.orgtomberekI have a feeling that figuring out your issue would be best done live.17:50:09
@tomberek:matrix.orgtomberekFeel free to ping me some evening (EST) or weekend.17:50:45
@martiert:matrix.orgmartierttomberek: available to help out some now?17:54:10
7 Mar 2024
@void68:matrix.orgvoid
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
@void68:matrix.orgvoidtried to match nix flake with hydra flake but failed for 2.18 2.19 and 2.20, strange.16:50:19
@void68:matrix.orgvoidfor instance hydra branch -> nix-2.19 with nix 2.19-maintenance.16:50:46
@void68:matrix.orgvoidcant have a working hydra atm.16:51:06
@roberthensing:matrix.orgRobert Hensing (roberth) void: looks like Hydra doesn't support that nix version 16:51:07
@roberthensing:matrix.orgRobert Hensing (roberth)haven't seen those errors16:51:15
@void68:matrix.orgvoidoh I have plenty.16:51:41
@void68:matrix.orgvoid
                                                                                                                                                        
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
@void68:matrix.orgvoidnone of the branches compiles.16:51:58
@void68:matrix.orgvoidmaybe Im doing something strange.16:52:05
@void68:matrix.orgvoidthe above is with nix-2.19 hydra, 2.19-maintenance nix branch.16:52:42
@void68:matrix.orgvoidthough those branches are there to match but I guess Im wrong.16:53:37
@void68:matrix.orgvoid * thought those branches are there to match but I guess Im wrong.16:53:43
@void68:matrix.orgvoidcould you point me in the right direction of branches to use?16:55:20
@void68:matrix.orgvoid
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
@void68:matrix.orgvoid *
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
@void68:matrix.orgvoid * could you point me in the right direction of which branches to use?16:56:16
@roberthensing:matrix.orgRobert Hensing (roberth)I don't know. I'd assume the inputs of the hydra flake provide a working combination16:57:27
@roberthensing:matrix.orgRobert Hensing (roberth)maintaining hydra is not my job unfortunately :/16:57:53
@void68:matrix.orgvoidIts OK, just seen your PackageInfo patch on nix that's why I thought you mite have an idea.16:58:47
@ma27:nicht-so.sexyma27
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:nicht-so.sexyma27are you using the flake stuff or the nixpkgs package?17:03:52

Show newer messages


Back to Room ListRoom Version: 6