Skip to content

feat(lifecycle): problems probe proves the timer on a 2nd N+1 boot (T893d) - #190

Merged
bketelsen merged 3 commits into
mainfrom
murbella/t893d-problems-reboot
Nov 6, 2026
Merged

bketelsen merged 3 commits into
mainfrom
murbella/t893d-problems-reboot

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Implements Brian's decision T893d for snosi#1229: preset-reconcile enables a timer that an update adds, and the timer starts on the next boot. The update path of the problems probe now proves the timer on a 2nd boot of N+1.

Change

  • Update path: installed-n stage problems problems-reboot. The new problems-reboot boot runs the same guest problems mode and records only the static facts (timer, preset-reconcile, account, journal, core_pattern, boot timing). It injects nothing: the host refuses a reboot record whose injected, collector_runs, problems, details or listing is not null. The host also requires a new boot id and the N+1 digest, and keeps the record as problems-reboot.json.
  • Timer check, update path: the 1st N+1 boot must show the timer enabled, with active or inactive. The 2nd boot must show it enabled/active. problems.txt adds a 7th line: reboot timer=…/… preset_reconcile=….
  • Fresh path: no change (1 boot, enabled/active required).
  • Guest unit size: the new phase took the guest unit to exactly 54000, the test bound. I moved 3 long qa.py docstrings into comments, which the payload drops. The unit is now 53152.
  • Docs: an amendment section in ADR-0017, plus the README and docs/quality.md.

Tests

  • python -m pytest -q: 1634 passed.
  • New tests: test_report_update_passes_a_timer_that_starts_on_the_2nd_boot (inactive on the 1st boot, active on the 2nd → ok) and test_report_update_requires_the_timer_active_on_the_2nd_boot (7 cases → missing-timer), plus tests for the phase and record shape, the guest reboot mode, the run.sh plan and the report arguments.
  • Revert test: I put back the old timer rule ("timer": record["timer"]["enabled"] == "enabled" and record["timer"]["active"] == "active") and ran pytest tests/test_problems_probe.py -k update. 2 tests failed: test_report_update_passes_a_timer_that_starts_on_the_2nd_boot and test_report_update_requires_the_timer_active_on_the_2nd_boot[first1-second1].

Dev runs

From this PR at 3ae0fdb0 (trigger=dev, lab-dev lease T893, no publish, no tag move):

Product Run Result
Snow dev-snow-bootc-lifecycle-slgls PASS: verified_problems_probe;problems=ok;fsverity_known_defect=7.2.12+deb14-amd64
Floe dev-snow-bootc-lifecycle-vf8fv PASS: verified_problems_probe;problems=ok
Sundog dev-snow-bootc-lifecycle-sv67g PASS: verified_problems_probe;problems=ok;fsverity_known_defect=7.2.12+deb14-amd64

In all 3 runs the timer is enabled/inactive on the 1st N+1 boot and enabled/active on the 2nd. A first try (z8mrg, l6drl, wv4c4) failed preflight_mismatch:iso_index because the signed ISO index moved. The update manifests now name snosi-installer_20261105202508_x86-64.iso (signature checked with the pinned key F37282A3…). The results are in docs/plans/2026-11-05-problems-probe-runs.md. frostyard/snosi#1229 is closed on T893d.

…893d)

Brian decided (T893d, snosi#1229): preset-reconcile enables a timer that
an update adds and it starts on the next boot. The update path of the
problems probe now reboots N+1 once more (phase problems-reboot), which
records the static facts only and injects nothing. The timer check on
the update path accepts enabled/inactive on the 1st N+1 boot (enabled
only) and requires enabled/active on the 2nd. The fresh path does not
change.

The guest unit was at its 54000 test bound with the new phase, so 3 long
qa.py docstrings move to comments (the payload drops comments): 53152.
The signed SHA256SUMS moved again; the first reruns z8mrg, l6drl and
wv4c4 failed preflight_mismatch:iso_index before any boot. The new index
is signed by the pinned key F37282A3; the lane checks the ISO hash.
@bketelsen
bketelsen merged commit ff73dbe into main Nov 6, 2026
4 checks passed
@bketelsen
bketelsen deleted the murbella/t893d-problems-reboot branch November 6, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants