!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

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

Load older messages


SenderMessageTime
12 Sep 2023
@piegames:matrix.org@piegames:matrix.orgJust a random idea, what if the automatic migration skipped all packages with open PRs at first to not make any conflicts? Then do one or two more such runs in the hope of catching some more packages, and then the assumption is that everything left is mostly old stuff that is allowed to conflict09:03:19
@rick:matrix.ciphernetics.nlRick (Mindavi)I thought the migration would take care of that by giving git enough hints? Or doesn't that work (well enough)?10:27:54
@piegames:matrix.org@piegames:matrix.orgWell yes but it still requires rebasing10:28:21
@piegames:matrix.org@piegames:matrix.orgNot sure how many PRs are even affected, and if it's worth it. Just an idea10:28:37
@infinisil:matrix.orginfinisil piegames: Hmm yeah I discussed this before, my main argument for not doing this is the complexity of doing so 10:32:42
@piegames:matrix.org@piegames:matrix.orgWhat complexity? (not rhetorical question)10:33:14
@infinisil:matrix.orginfinisilI wonder if it's worth it, because rebase PR's should be fairly quick on an individual basis, whereas implementing this requires searching through all PR's (automated of course), and then adding those to an exception list or something, having to decide when to do it anyways10:33:49
@piegames:matrix.org@piegames:matrix.orgThough I'd be interested in some numbers here, like how many pull requests and how many packages are affected by this anyways? How many of these pull requests are younger than three months?10:34:49
@infinisil:matrix.orginfinisilAnd how many PR's will not have to rebase because of this? I guess the turn-over rate is fairly high, just waiting some weeks probably gets a high percentage10:34:56
@profpatsch:augsburg.oneprofpatschpiegames: I had the same idea during nixcon, but honestly I think it’s totally feasible to require PRs to be rebased on top of master10:35:42
@profpatsch:augsburg.oneprofpatschSince that parallelizes well10:35:48
@qyliss:fairydust.spaceAlyssa Rosspresumably we could just use "Rebase and Merge" in the UI, as long as git can tell what's going on? 10:36:13
@profpatsch:augsburg.oneprofpatschofc long feature branches might hate that, but they can merge master back into themselves10:36:24
@qyliss:fairydust.spaceAlyssa Rossmakes the history (and especially bisects) easier too10:36:26
@piegames:matrix.org@piegames:matrix.org
In reply to @qyliss:fairydust.space
presumably we could just use "Rebase and Merge" in the UI, as long as git can tell what's going on?
This would be a deviation from us currently having merge commits everywhere.
10:37:06
@infinisil:matrix.orginfinisilI think the github UI allows either rebasing or merging10:37:29
@qyliss:fairydust.spaceAlyssa Ross we don't currently have merge commits everywhere 10:37:47
@infinisil:matrix.orginfinisil (by default rebase should be good, but as Profpatsch hints at, merging sometimes makes sense) 10:37:55
@qyliss:fairydust.spaceAlyssa Rosswe have a combination of all kinds of merges, based on what each committer thinks is best at the time10:38:12
@piegames:matrix.org@piegames:matrix.orgWhat would be needed here IMO is rebase + merge with trivial merge commit. 10:38:19
@qyliss:fairydust.spaceAlyssa Rossyeah we definitely want merge for e.g. staging-next10:38:21
@qyliss:fairydust.spaceAlyssa Ross what would be the point of the merge commit? 10:38:35
@qyliss:fairydust.spaceAlyssa Rossalso, if git can figure out renames on rebasing, I think it should be able to figure them out on merging too/10:38:53
@piegames:matrix.org@piegames:matrix.org
In reply to @qyliss:fairydust.space
what would be the point of the merge commit?
To associate the individual commits with the PR
10:39:06
@qyliss:fairydust.spaceAlyssa Rossthat's not something we do today10:39:19
@qyliss:fairydust.spaceAlyssa Ross(across the board, at least)10:39:31
@infinisil:matrix.orginfinisilI'm still thinking just ripping the band-aid off with a single commit is probably easiest tbh :) (and it is what's in the RFC fyi)10:39:36
@piegames:matrix.org@piegames:matrix.orghm, didn't know that10:39:39
@qyliss:fairydust.spaceAlyssa Rossyou can look up the PR for a commit using the API / GitHub web anyway10:39:53
@qyliss:fairydust.spaceAlyssa Rosseven if it was "Rebase and Merge"d10:39:58

Show newer messages


Back to Room ListRoom Version: 9