27 lines
2.6 KiB
Markdown
27 lines
2.6 KiB
Markdown
# Status: linux-system-updater
|
||
|
||
- Gate 1 — Spec & Product: APPROVED 2026-10-02
|
||
- Gate 2 — Architecture: APPROVED 2026-10-02
|
||
- Gate 3 — Program Design: APPROVED 2026-10-02
|
||
- Gate 4 — Slice Plan: APPROVED 2026-10-02
|
||
|
||
## Slices
|
||
- [x] Slice 1 — tracer bullet: minimal end-to-end wire (CLI + detector + tests)
|
||
- [x] Slice 2 — pre-flight health & auto-remediation engine
|
||
- [x] Slice 3 — package managers (apt, dnf, pacman) & routine updates
|
||
- [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. 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.
|
||
- Physical VM Testbed: 100% verified across 5 full Proxmox VE KVM virtual machines (`alma-crash`, `arch-crash`, `debian-crash`, `fedora-crash`, `ubuntu-crash`). All targets completed package installation (.deb, .rpm, .tar.gz), pre-flight health checks, live system updates, physical KVM reboots, post-reboot health verification, and clean rollback to baseline snapshots.
|
||
- Gitea Repository: `https://gitea.wired.synology.me/soda64/linux-updater.git` on branch `main`.
|