!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

232 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
4 Dec 2022
@rick:matrix.ciphernetics.nlRick (Mindavi)Maintainers could also setup their own testing with multiple versions of nixpkgs etc23:06:03
@rick:matrix.ciphernetics.nlRick (Mindavi)But yeah, it is a lot of work to do it properly23:06:17
@raitobezarius:matrix.orgraitobezariuseven if we do so, we cannot get the exact same environment as everyone23:06:22
@raitobezarius:matrix.orgraitobezariusI mean, I also run on nixpkgs unstable for my NC with nixos-upgrade (thug life), and I did not have any breakage with the patch level :'(23:06:44
@raitobezarius:matrix.orgraitobezarius(and I can see a log on 4th Dec for a NC unattended upgrade)23:07:32
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgWell, i would not have noticed any issues if something unrelated to nextcloud didn't cause a rollback from deploy-rs23:16:15
@raitobezarius:matrix.orgraitobezariuswhat do you mean?23:16:35
@raitobezarius:matrix.orgraitobezarius (if it caused a rollback, I would be very afraid that the older software would do stupid things while the DB is already migrated) 23:16:57
@raitobezarius:matrix.orgraitobezarius(because migrations are not necessarily two ways in all software and that's an unfortunate upstream thing)23:17:13
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgWhich is precisely why I propose more granular state versions, without the rollback I would never have noted23:18:19
@raitobezarius:matrix.orgraitobezariusI don't understand how granular state version would solve the problem23:18:43
@raitobezarius:matrix.orgraitobezariusAs long as you start changing state version, perform the migration then rollback, it would break everything in a lot of cases23:19:01
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgThey would give control over when to run whose migration 23:19:15
@raitobezarius:matrix.orgraitobezariusSure, but they will certainly not make the footgun disappear23:19:42
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgAfter all the upgrade in my cast completely ignored state versions 23:20:01
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgOne of the promises of nixos is safe rollback 23:20:59
@raitobezarius:matrix.orgraitobezariusIMHO, patch-level version are supposed to be backward-compatible on the DB schema level, so it's a upstream issue, but I guess that Nextcloud take liberty on what is patch-level and what is supposed to be backward-compatible and errors are human in the end23:21:16
@raitobezarius:matrix.orgraitobezarius
In reply to @ronnypfannschmidt:matrix.org
One of the promises of nixos is safe rollback
In that case, you don't need granular state version
23:21:26
@raitobezarius:matrix.orgraitobezariusYou need full state copies at each generation IMHO23:21:38
@raitobezarius:matrix.orgraitobezarius And rollback rollbacks the data 23:21:43
@raitobezarius:matrix.orgraitobezarius(but I do agree that the promise is not completely held)23:22:17
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgSafe rollback needs control over state transition, including db migration 23:22:27
@rick:matrix.ciphernetics.nlRick (Mindavi)For stateful things like DBs it is hard to do things right23:22:45
@raitobezarius:matrix.orgraitobezarius
In reply to @ronnypfannschmidt:matrix.org
Safe rollback needs control over state transition, including db migration
That's a necessary condition, not a sufficient one
23:23:02
@rick:matrix.ciphernetics.nlRick (Mindavi)And upstream has to support control over db migrations if you want to do anything about it23:23:20
@rick:matrix.ciphernetics.nlRick (Mindavi)Or you need to pin a specific version of the app to a specific stateVersion23:23:52
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgWell, the default nextcloud module does auto migration snd fake password uogrades, so it's problematic anyway 23:24:15
@rick:matrix.ciphernetics.nlRick (Mindavi)Which is how postgresql supports stateVersion23:24:24
@rick:matrix.ciphernetics.nlRick (Mindavi)But they don't break the db on patch releases...23:24:52
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgAs for specific versions, i pinned, didn't protect 23:24:58

Show newer messages


Back to Room ListRoom Version: 9