feat: add root check, singleton lock, RHEL/Fedora upgrade auto-installer & container tests for AlmaLinux 9 and Arch Linux

This commit is contained in:
soda64 committed 2026-10-02 13:12:01 +02:00
1 parent 507a3fd310
commit 44c9423166
10 files changed
+711 -27

No files matched your search

+6 -2
View File
@@ -12,9 +12,13 @@
- [x] Slice 4 — major release upgrade & configuration engine
- [x] Slice 5 — packaging & distribution (.tar.gz, .deb, .rpm)
- [x] Slice 6 — documentation (man page, README, user/admin/developer guides)
- [x] Slice 7 — safety guardrails: root privilege check on mutating commands & singleton concurrency flock
- [x] Slice 8 — upgrade dependency auto-installation (ELevate/Leapp/dnf-plugins-core) & container test suites (AlmaLinux 9, Arch Linux)
## Notes for a fresh session
- Project: Multi-distribution Linux system updater in Python.
- Process: Software Factory 4-gate workflow.
- All 4 Gates APPROVED on 2026-10-02.
- Scope: Debian/Ubuntu, RHEL 8/9/Fedora, Arch Linux. Pre-flight health checks with auto-remediation. Routine update + major release-upgrade. Selective package updates (--packages) + target release upgrade (--target-release). Pure Python standard library (compatible with Python >= 3.6). Packaging for .tar.gz, .deb, and .rpm. MAN page (Section 8) + user, admin, developer documentation.
- All 4 Gates APPROVED on 2026-10-02. Slices 1–8 fully implemented, tested, and verified.
- Scope: Debian/Ubuntu, RHEL 8/9/Fedora/CentOS/Rocky/AlmaLinux, Arch Linux. Pre-flight health checks with auto-remediation. Routine update + major release-upgrade. Selective package updates (--packages) + target release upgrade (--target-release). Pure Python standard library (compatible with Python >= 3.6). Packaging for .tar.gz, .deb, and .rpm. MAN page (Section 8) + user, admin, developer documentation.
- Safety: Root privilege checks on mutating operations (`update`, `release-upgrade`, `clean`), while non-root is allowed for inspection (`health`, `check`, `--dry-run`). Advisory flock singleton lock (`/var/run/linux-updater.pid` with fallback to `/tmp/linux-updater-<uid>.pid`). Automatic dependency management for major upgrades (ELevate `leapp-upgrade` on AlmaLinux/Rocky, `dnf-plugins-core` on Fedora) with clear English error reporting and troubleshooting guidance.
- Test suites: 47 local unit tests pass (100%). Podman container integration test suite (`tests/containers/run_tests.sh`) successfully verified across Debian 12, Ubuntu 22.04, Fedora 40, AlmaLinux 8, AlmaLinux 9, and Arch Linux.