!zghijEASpYQWYFzriI:nixos.org

Hydra

389 Members
112 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Jun 2022
@kenran_:matrix.orgkenran_(Mind you I'm also a first-time Hydra user, so there might be gaps in my understanding, but so far everything is working in my end.)08:10:58
@jackdk:matrix.orgjackdk But because the flake completely specifies its inputs, ISTM that you don't need the separate spec.json to declare which inputs you want in NIX_PATH or whatever 08:11:53
@kenran_:matrix.orgkenran_ If you have private repos, then the hydra user on your server needs access via SSH. I've just added a special GitLab user and SSH key pair on the server in /var/lib/hydra (I think that was the path). 08:12:35
@kenran_:matrix.orgkenran_
In reply to @jackdk:matrix.org
But because the flake completely specifies its inputs, ISTM that you don't need the separate spec.json to declare which inputs you want in NIX_PATH or whatever
Yeah, that sounds about right. I've never used spec.json; feels like hydraJobs make that obsolete for flake projects.
08:13:16
@jackdk:matrix.orgjackdk Yeah it looks like spec.json does everything flakes do, but worse. Consider https://github.com/qfpl/reflex-workshop/blob/master/spec.json : it says "go evaluate release.nix from input reflex-workshop, setting <nixpkgs> and <reflex-workshop> in NIX_PATH. The attrset that the evaluation returns defines the jobs to actually run. 08:16:50
@kenran_:matrix.orgkenran_Ah yes. Just use the flake output type and enjoy :)08:17:27
@kenran_:matrix.orgkenran_

Sadly the NixOS tests I've written fail in my Hydra instance and I don't know why. I'll wait and see if anyone answers in the NixOS channel first, then re-post here in full detail. In essence all my tests use a postgresql service which after some time leads to

machine # [  336.433468] postgresql-pre-start[896]: Success. You can now start the database server using:
machine # [  336.452698] postgresql-pre-start[896]:     /nix/store/6cn4h4icjjvg9yqx8iy55hvmqbq0jj2j-postgresql-10.21/bin/pg_ctl -D /var/lib/postgresql/10.0 -l logfile start
machine # [  337.181043] systemd[1]: postgresql.service: Failed with result 'timeout'.
08:19:20
@kenran_:matrix.orgkenran_Locally they're running just fine, so I'm at a loss. It's a flake project with everything pinned down and supposedly reproducible.08:19:46
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @roberthensing:matrix.org
evaluation hasn't started for 13h; seems like something is wrong https://hydra.nixos.org/jobset/nixos/trunk-combined
it came through ✅
13:49:28
8 Jun 2022
@tim:stratum0.orgdadada (they/them) changed their display name from dadada / Tim (they/er) to dadada.19:22:46
9 Jun 2022
@v0id:nltrix.net@v0id:nltrix.net left the room.23:04:16
10 Jun 2022
@kenran_:matrix.orgkenran_ I'm trying to create a minimal example for my Hydra/PostgreSQL problem mentioned above now, mainly just using a postgresql_10 service and waiting for the unit to come up. This is what usually seems to fail on my Hydra, but not locally. 10:31:10
@kenran_:matrix.orgkenran_Hum, of course the minimal example works as expected. The only thing I can even think of is the pin.10:58:25
@kenran_:matrix.orgkenran_ But then it stresses me out that the same nix build runs fine locally. 10:58:45

Show newer messages


Back to Room ListRoom Version: 6