chrony: 4.5 -> 4.6.1; move to by-name#346858
Conversation
fpletz
left a comment
There was a problem hiding this comment.
Code changes look good but Darwin fails on ofborg.
GetPsyched
left a comment
There was a problem hiding this comment.
These changes should be broken down to multiple commits, in no particular order:
- Version bump
- Running nixfmt
- Refactoring the derivation
- Adding yourself as a maintainer
- Moving the package to by-name
It works on aarch64-darwin, but not x86_64-darwin. Do you know how to change them to something newer if I'm not explicitly using any framework? |
fpletz
left a comment
There was a problem hiding this comment.
@GetPsyched's review is valid. Though all the refactoring that doesn't change any outputs like nixfmt and the by-name move can be done in one commit.
|
So, essentially, I have to do all the work from scratch? |
|
@vifino The convention is to not squash, but I think it's good like this and I appreciate the effort to split it into independent commits! This notably aligns with the commit conventions:
There's also this:
But this doesn't apply here, and I'm pretty sure there's no other guidelines that would imply having to squash the commits in this PR more, so I'd like to ask @fpletz to reconsider blocking on this. If there's a good reason to squash more in certain cases, we should discuss it separately and then amend the guidelines so we can refer to it, as suggested in C4 (search for "value judgments"). |
|
Independently of the above though, we do have a new codeowner validator CI check, which is now detecting a problem with this PR: You'll need to change this line to fix that: Line 229 in bf3905a This would fit well into the first commit (you can do |
|
Hey @infinisil, thank you for elaborating on this! Just so we're on the same page: My annoyance with the request to split it into multiple (fine-detailed) commits was that I essentially needed to redo the work in it's entirety for - to me - questionable benefits, since I had (incorrectly) assumed that it would be squashed - not rebased - just judging from a quick glance at the nixpkgs commit history. In my personal experience, reviewing the changes requires to look at the entire diff - if not the whole file/derivation - as skipping a "run the formatter" commit in the review process could yield.. bad outcomes. @fpletz was actually chiming in to tell me that I don't need to as many individual commits as initially requested, trying to save me work, not squashing down fine-grained commits. However, after I resigned to the fact that the only way I can get this approved is by redoing all the changes, I followed my interpretation of the initial demands as best as I could, yielding the current state (which took me about an hour). |
I assume I'd only change the path, correct? |
|
@vifino Ah I see, thanks for the clarification, and sorry for the misinterpretation, @fpletz! I do think there is a case to be made for granular commits to a degree, not just for the sake reviews, but also history, as it makes reverting, bisecting and blaming nicer (could use Sounds like we need to clarify the guidelines on this to hint at the right balance :) Edit: #347586 |
Yup! |
|
Updated the |
Yup, that was my intention. Some degree of separation in the commits does makes sense but we don't have to be too pedantic about it. Generally, I don't like nitpicking in PRs and tend to just force push my nitpicks rather than put the burden on the PR author to fix minor issues. My personal interpretation of the rules is that we should make it easy to revert or backport something that later turns out to break something. Changes like formatting or the by-name move most probably won't get reverted so that's fine. The version bump might if we find issues with the release that can't be trivially fixed. Anyway, thanks everyone for chiming in here and @vifino for separating the commits. 🎉 |
https://chrony-project.org/news.html
Now runs the testsuite sans one broken test.
Enabled it for Darwin and removed OpenBSD, where it never ran.
Moved to by-name and ran nixfmt.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.