-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etebase-server: 0.13.1 -> 0.14.2 #336721
etebase-server: 0.13.1 -> 0.14.2 #336721
Conversation
...upstream has updated its requirements in the latest release and it now only works with current pydantic.
Result of 2 packages built:
|
If it only works with a newer pydantic, it should be done in the same commit. |
It's two different logical changes, but I hereby grant the person merging this permission to squash as they see fit. :) If you believe that it's mandatory, @SuperSandro2000: Please cite & link the relevant contribution guidelines or clarify that this is just a personal opinion. Thank you! |
I think @SuperSandro2000 probably has this rule from the Commit conventions in mind:
Admittedly it is not 100 % clear that it applies here. |
Commits should generally be done in a way that each of them works and compiles (as already written above). Sometimes it is not avoidable or only doable with extra work, then I personally think it is fine to skip that. Why is that desirable? For example when git bisecting it can throw you off if a commit doesn't work and make your debugging harder than necessary.
No, it isn't. For the update to work we must unpin pydantic. If we would just merge the update commit without the unpin it would be rightfully wrong and a good candida for immediate revert. We also can't separate the changes or reorder them.
That is common git knowledge on how to write a good history. |
Thank both of you for your in-depth replies, I am trying to keep it short as my whole goal is to avoid discussions like these and get them into linter or ci checks where possible and rules into writing where necessary. I always agreed that this can be squashed on merge. I personally find it easier during reviews if each logical change is in a separate commit, what matters IMO is the merged history.
I understand that's an idea some of us hold but afaik that is neither true for present-day nixpkgs nor is it - technically - in the contribution guidelines (or is it? I'd love to learn :)). Personally I think it's important that each commit that is evaluated by hydra builds, not necessarily each commit. But if we need a rule for that (I think we do) we should either make it more easy to find or start an RFC about and ideally some tooling around it. And while we are at the topic of RFCs: I believe #336200 comes up with a good definition of nitpicking and this thread might be at least close to match :) |
Description of changes
The automated update in #318528 failed, as that still contains a python interpreter overridden to use pydantic_1. Upstream has upgraded to pydantic 2 and doesn't work with pydantic_1 anymore, so we drop the override and do the upgrade, which lets the tests pass.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.