!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

222 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture51 Servers

Load older messages


SenderMessageTime
27 Sep 2023
@infinisil:matrix.orginfinisilIn particular I'm thinking of https://github.com/NixOS/nixpkgs/pull/211832#issuecomment-1732153092 here17:35:54
@piegames:matrix.org@piegames:matrix.orgBtw this has a hard dependency of going through a merge bot for everything17:36:14
@infinisil:matrix.orginfinisil The first step should be to disallow definitions in all-packages.nix when they should be in pkgs/by-name instead. But if we just put that in a CI check, it would fail regularly for probably some days as people merge all-packages.nix changes in 17:36:48
@k900:0upti.meK900
In reply to@piegames:matrix.org
Btw this has a hard dependency of going through a merge bot for everything
Not necessarily
17:36:57
@k900:0upti.meK900But I also don't think this is too bad, generally17:37:13
@piegames:matrix.org@piegames:matrix.orgOh I absolutely do want a merge bot, and soon pretty please17:37:49
@infinisil:matrix.orginfinisilThe idea given here should help for some cases: https://github.com/NixOS/nixpkgs/issues/25678817:38:34
@infinisil:matrix.orginfinisilI'll probably go for that regarding RFC 14017:38:41
@infinisil:matrix.orginfinisilIn short: Run both the old and new CI checks, on both the base and merged state, then figure out when it makes sense to fail the check based on that17:39:33
@piegames:matrix.org@piegames:matrix.orgWhy so complicated? GitHub actions already always run on the merged code (IIRC), so simply pin the version in the repo and you're done?17:40:54
@infinisil:matrix.orginfinisil piegames: Because the CI check might be outdated 17:41:32
@infinisil:matrix.orginfinisilCI check runs successfully, master branch updates with stricter checks, PR gets merged, master is broken17:41:50
@infinisil:matrix.orginfinisilWith a strategy as described, you can kind of guarantee that any new PRs won't break master if merged17:43:29
@piegames:matrix.org@piegames:matrix.orgAh. Yeah, merge bot. Or have a bot that forces a rebase after any CI changes17:43:46
@infinisil:matrix.orginfinisilHard to have a good definition for CI changes though. The entire repo can influence CI17:44:41
@piegames:matrix.org@piegames:matrix.org
In reply to @infinisil:matrix.org
CI check runs successfully, master branch updates with stricter checks, PR gets merged, master is broken
Also, this is not the problem desribed in your issue, as far as I read it
17:45:11
@infinisil:matrix.orginfinisilBut maybe one could tag commits with "if this gets merged, the CI checks for all PR's need to be re-triggered"17:45:31
@piegames:matrix.org@piegames:matrix.org
In reply to @infinisil:matrix.org
Hard to have a good definition for CI changes though. The entire repo can influence CI
CI is a derivation and if it changes? ^^
17:45:38
@infinisil:matrix.orginfinisil
In reply to @piegames:matrix.org
Also, this is not the problem desribed in your issue, as far as I read it
True, it's applicable in the same way though
17:45:57
@infinisil:matrix.orginfinisilHmm let me see if it's possible to somehow re-trigger checks17:47:07
@infinisil:matrix.orginfinisilThough, poor ofborg could just die from that..17:47:17
@infinisil:matrix.orginfinisilOkay maybe we could be very specific with it. Only re-trigger CI for PR's that touch all-packages.nix17:47:59
@piegames:matrix.org@piegames:matrix.orgHow about making stricter checks soft-fail for a while at first instead?17:48:52
@infinisil:matrix.orginfinisilThat's kind of what https://github.com/NixOS/nixpkgs/issues/256788 is about17:49:30
@piegames:matrix.org@piegames:matrix.orgI must admit that I am completely lost in the issue text, after reading it twice17:51:02
@infinisil:matrix.orginfinisilYeah sorry I admit it's really hard to read..17:51:15
@infinisil:matrix.orginfinisilJust a wall of text 😅17:51:24
@infinisil:matrix.orginfinisilFor the nixcon presentation it was fun trying to come up with visual explanations of things, I'll try the same here :)18:08:28
@infinisil:matrix.orginfinisil piegames: https://github.com/NixOS/nixpkgs/issues/256788#issuecomment-1737965650 19:33:48
@piegames:matrix.org@piegames:matrix.orghttps://github.com/NixOS/nixpkgs/issues/256788#issuecomment-1737979351 yeah I think this was the actual cause for my confusion19:48:32

Show newer messages


Back to Room ListRoom Version: 9