feat(packages): the rpm epoch in the version, and the installed advisories #76

Merged
christianmanivong merged 3 commits from feature/rpm-epoch-advisories into main 2026-11-12 11:27:36 +00:00
Owner

For NetOrk/netork#2394.

  • rpm -qa now reads %|EPOCH?{%{EPOCH}:}:{}|%{VERSION}-%{RELEASE}: gmp 1:6.2.0-13.el9, as dpkg hosts already report it. Checked on build-arm-01 (Oracle Linux 9.8). Without the epoch an Oracle/Red Hat fix 1:… read as newer than the installed build.
  • get_installed_advisory_cves() through napalm-device-types 4.37.0: as root, from the cache, 300 s budget; NotImplementedError for anything but dnf. Floor raised to napalm-device-types>=4.37.0.

ruff, mypy, pytest: 412 passed. With the floor at 4.37.0, test_the_reading_is_one_round_trip_as_the_login_user now expects dhcp_ntp_servers: [] (device-types 4.36.0). Closes #75.

For NetOrk/netork#2394. - `rpm -qa` now reads `%|EPOCH?{%{EPOCH}:}:{}|%{VERSION}-%{RELEASE}`: `gmp 1:6.2.0-13.el9`, as dpkg hosts already report it. Checked on build-arm-01 (Oracle Linux 9.8). Without the epoch an Oracle/Red Hat fix `1:…` read as newer than the installed build. - `get_installed_advisory_cves()` through napalm-device-types 4.37.0: as root, from the cache, 300 s budget; `NotImplementedError` for anything but dnf. Floor raised to `napalm-device-types>=4.37.0`. ruff, mypy, pytest: 412 passed. With the floor at 4.37.0, `test_the_reading_is_one_round_trip_as_the_login_user` now expects `dhcp_ntp_servers: []` (device-types 4.36.0). Closes #75.
christianmanivong added 1 commit 2026-11-12 11:10:07 +00:00
feat(packages): the rpm epoch in the version, and the installed advisories
driver / standard (pull_request) Failing after 15s
driver / lint (pull_request) Successful in 13s
driver / test (3.12) (pull_request) Failing after 39s
driver / types (pull_request) Failing after 47s
driver / test (3.13) (pull_request) Failing after 39s
driver / lowest (pull_request) Failing after 46s
driver / build (pull_request) Successful in 42s
driver / security (pull_request) Successful in 1m25s
CI / driver (pull_request) Failing after 2m35s
driver / publish (pull_request) Skipped
257efdef8e
On an rpm host a package's version now carries its epoch where it has
one (1:6.2.0-13.el9), as on a dpkg host: Oracle's and Red Hat's fixes
name it, and without it an epoch-1 fix read as newer than every
installed build. get_installed_advisory_cves() reads, as root and from
the cache, the CVEs the installed security advisories close, through
napalm-device-types 4.37.0; dnf only (NetOrk/netork#2394).
christianmanivong added 1 commit 2026-11-12 11:13:49 +00:00
test(time-sync): the reading carries dhcp_ntp_servers since device-types 4.36 (#75)
driver / standard (pull_request) Failing after 15s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m2s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 55s
driver / lowest (pull_request) Successful in 31s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Failing after 2m36s
driver / publish (pull_request) Skipped
1d377acc5f
christianmanivong added 1 commit 2026-11-12 11:24:44 +00:00
refactor(packages): the rpm query and its parse in _rpm.py, as dpkg's in _dpkg.py
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 16s
driver / test (3.13) (pull_request) Successful in 55s
driver / types (pull_request) Successful in 1m2s
driver / test (3.12) (pull_request) Successful in 1m5s
driver / lowest (pull_request) Successful in 31s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Successful in 2m16s
driver / publish (pull_request) Skipped
bc7162affd
linux.py stays under its recorded size (2039 -> 2034 lines).
christianmanivong merged commit 6e5b0ea2ec into main 2026-11-12 11:27:36 +00:00
christianmanivong deleted branch feature/rpm-epoch-advisories 2026-11-12 11:27:36 +00:00
Sign in to join this conversation.