Add checks for atomic update compatibility - #1396
Conversation
danigm
left a comment
There was a problem hiding this comment.
This looks good, can you review the flake8 formatting errors?
It could be also nice to have some specific tests for this, but I can add that in later PR.
526b8ef to
5c1dce4
Compare
5c1dce4 to
b885709
Compare
|
Re-ran flake8 locally, should be fine now |
|
@mtravitzky the check looks good, but maybe we should tweak the default configuration, at least for now. It's probably not wise to set the badness to 10000 immediately, it could produce a lot of broken packages in Factory once this change lands on the rpm package. |
|
I'm not sure this check is valid, since it's completely valid to install things into |
No,
Programs which need a specific hierarchy in (For now there's still the "create-dirs-from-rpmdb" service which looks at the RPM database for directory creation, but it'll be removed in the future) |
What badness would you suggest? Something like 900? |
|
In the logrotate check we first set it to 100 and then recently raised it to 10000 once we were sure that Factory was clean. It's an arbitrary value but I think it works fine as a reference. |
b885709 to
d79fe0b
Compare
Sounds good, so that's what I just did 🙂 |
danigm
left a comment
There was a problem hiding this comment.
Looks good, just fix the comment to match the config new value
This checks for packages installing into locations which are illegal for compatibility with atomic updates. E.g. a package which installs into /var/ would get corrupted after a rollback from a newer snapshot.