!zghijEASpYQWYFzriI:nixos.org

Hydra

368 Members
110 Servers

Load older messages


SenderMessageTime
13 Feb 2024
@k900:0upti.meK900You can just point Hydra at a git+ssh or git+https URL17:53:50
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.org

Then I'm perhaps missing how I'd deal with results/check back report

I'm used to Jenkins or forge native ci tools

18:00:24
@k900:0upti.meK900Hydra doesn't really integrate back into your forge18:00:39
@k900:0upti.meK900Any forge18:00:41
@k900:0upti.meK900If you want to do real CI, you probably want to use Gitea's built-in whatever it has18:01:07
@k900:0upti.meK900 And just run nix build with a bunch of builders 18:01:14
@ma27:nicht-so.sexyma27
In reply to @ronnypfannschmidt:matrix.org

Anyone aware of a example configuration for running hydera against a own repository on a self hosted forge?

I have a gitea instance and I'd like to run nix ci for my flakes on it

hydra can give you status checks (check mark vs red x) in your gitea repo.
there's PR support for github, but nobody has ported it to other solutions so far.
18:03:26
@ma27:nicht-so.sexyma27 https://github.com/NixOS/hydra/blob/c1bd50a80db45930cdfc1975903d1f76cca1053a/doc/manual/src/projects.md?plain=1#L371-L405 18:04:40
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgi understand, then i'll have to use act-runner on gitea after upgrading things18:13:45
@antifuchs:asf.computer@antifuchs:asf.computer
In reply to @antifuchs:asf.computer
why that seems to land unescaped on a bash cmdline is ... not clear to me, and it seems scary
whoops, the script that does this is written by me in the jobsets job. Helps to do cat <<'EOF' instead of <<EOF
19:59:14
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @toonn:matrix.org
magic_rb: No clue TBH but wouldn't the URI for a path be file://<your path>?
I bypassed it, made an empty repo on sourcehut
20:06:58
14 Feb 2024
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de changed their profile picture.19:41:34
15 Feb 2024
@dustee:matrix.orgdustee how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? 09:14:23
@dustee:matrix.orgdustee * how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? i tried Flake URI = path:/nix/config#nixos-my-server-02 09:15:40
@dustee:matrix.orgdustee * how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? i tried Flake URI = path:/nix/config#nixos-my-server-02 but evaluation fails 09:15:49
@dustee:matrix.orgdusteeid like for hydra to build all the things necessary for that host so i will have them available the next time i rebuild switch09:17:15
@dustee:matrix.orgdusteecould i maybe extend my flake with hydraJob somehow? but still dont know what to put in there09:18:08
@dustee:matrix.orgdustee * could i maybe extend my flake with hydraJob and then target the flake repo with hydra? but still dont know what to put in the hydraJob09:19:19
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @dustee:matrix.org
could i maybe extend my flake with hydraJob somehow? but still dont know what to put in there
Just put nixosConfigurations.yourhost.config.system.build.toplevel there into an attrset at the yourhost key
09:22:13
@dustee:matrix.orgdusteethanks, just need to figure out how to do that with flake-parts ...09:45:05
@dustee:matrix.orgdustee i think it works but im getting a bunch of forbidden in restricted mode errors, is it possible to disable restricted mode in hydra? 10:35:11
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors when its trying to pull in inputs, is it possible to disable restricted mode in hydra? 10:35:40
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this url is problematic error: access to URI 'git+https://.... 10:39:16
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://.... 10:39:30
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1?ref=main&rev=43d1... 10:41:53
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1?ref=main&rev=43d1... is forbidden in restricted mode 10:42:11
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode 10:42:40
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode. And this command works nix build --restrict-eval /nix/config#nixosConfigurations.myhost.config.system.build.toplevel 11:19:03
@dustee:matrix.orgdustee * i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode. But this command works nix build --restrict-eval /nix/config#nixosConfigurations.myhost.config.system.build.toplevel 11:19:27
@ajs124:ajs124.de@ajs124:ajs124.de joined the room.11:23:51

Show newer messages


Back to Room ListRoom Version: 6