fix: a build Ubuntu is phasing in is not pending where apt holds it back, 4.58.1 (NetOrk/netork#3110) #148

Merged
christianmanivong merged 1 commits from fix/apt-phased-updates into main 2026-12-03 20:46:56 +00:00
Owner

A build Ubuntu is still phasing in is no longer pending where apt holds it back (NetOrk/netork#3110).

apt list --upgradable lists a phased build on every host, but apt upgrade installs it only on the share of hosts the rollout has reached. Seen on 2026-12-03: nftables / libnftables1 1.0.9-1ubuntu0.2 (Phased-Update-Percentage: 10 in noble-updates) showed as two pending updates on a host where apt would not install them.

  • APT_UPGRADABLE_COMMAND also runs a simulated apt-get upgrade (-s, Debug::NoLocking=1, no root) and marks the names apt defers for phasing __APT_PHASED:.
  • parse_apt_upgradable leaves those packages out (a foreign architecture's name:arch included).
  • A simulation that fails marks nothing: the listing stands as before.
  • 4.58.1, CHANGELOG.

Tests: tests/test_package_updates.py::TestPhasedUpdates, including the real command through sh with stand-in apt / apt-get. Full suite: 2403 passed.

A build Ubuntu is still phasing in is no longer pending where apt holds it back (NetOrk/netork#3110). `apt list --upgradable` lists a phased build on every host, but `apt upgrade` installs it only on the share of hosts the rollout has reached. Seen on 2026-12-03: nftables / libnftables1 1.0.9-1ubuntu0.2 (`Phased-Update-Percentage: 10` in noble-updates) showed as two pending updates on a host where apt would not install them. - `APT_UPGRADABLE_COMMAND` also runs a simulated `apt-get upgrade` (`-s`, `Debug::NoLocking=1`, no root) and marks the names apt defers for phasing `__APT_PHASED:`. - `parse_apt_upgradable` leaves those packages out (a foreign architecture's `name:arch` included). - A simulation that fails marks nothing: the listing stands as before. - 4.58.1, CHANGELOG. Tests: `tests/test_package_updates.py::TestPhasedUpdates`, including the real command through `sh` with stand-in `apt` / `apt-get`. Full suite: 2403 passed.
christianmanivong added 1 commit 2026-12-03 20:44:22 +00:00
fix: a build Ubuntu is phasing in is not pending where apt holds it back, 4.58.1 (NetOrk/netork#3110)
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 18s
driver / lowest (pull_request) Successful in 41s
driver / types (pull_request) Successful in 1m5s
driver / test (3.12) (pull_request) Successful in 1m17s
driver / test (3.13) (pull_request) Successful in 1m17s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 57s
CI / driver (pull_request) Successful in 1m56s
driver / publish (pull_request) Skipped
65fcebc499
apt list --upgradable lists a phased build on every host; apt upgrade
installs it only where the rollout has reached. APT_UPGRADABLE_COMMAND
now also simulates apt-get upgrade (no root, no lock) and marks what it
defers for phasing; parse_apt_upgradable leaves those packages out. A
failed simulation marks nothing, so the listing stands.
christianmanivong merged commit 80a5efc494 into main 2026-12-03 20:46:56 +00:00
christianmanivong deleted branch fix/apt-phased-updates 2026-12-03 20:46:56 +00:00
Sign in to join this conversation.