seerr, jellyfin: the rehearsal reads what its asserts judge (THE-122) #17

Merged
pit merged 3 commits from paperclip/THE-122-rehearsal-reads into main 2026-12-03 17:04:04 +00:00
Owner

The deploy (task 85) passed bazarr — the v-prefix fix held — and stopped at seerr's service rehearsal:

TASK [seerr : read the Node the Guest has] ***********
skipping: [seerr-guest]
TASK [seerr : it is the major the tree was built for] *
[ERROR] node answered "" ; the tree is built for major 22

node --version is a command, so check mode skips it, and the assert then judges an empty answer. jellyfin's dpkg-query read is the same shape and would stop the walk one Host later. Both reads now carry check_mode: false; the reads are safe in either mode.

make check is green. Merge; the merge starts the deploy again, and the walk continues at seerr, then jellyfin — the last Host.

The deploy (task 85) passed bazarr — the `v`-prefix fix held — and stopped at seerr's **service rehearsal**: ``` TASK [seerr : read the Node the Guest has] *********** skipping: [seerr-guest] TASK [seerr : it is the major the tree was built for] * [ERROR] node answered "" ; the tree is built for major 22 ``` `node --version` is a command, so check mode skips it, and the assert then judges an empty answer. jellyfin's `dpkg-query` read is the same shape and would stop the walk one Host later. Both reads now carry `check_mode: false`; the reads are safe in either mode. `make check` is green. Merge; the merge starts the deploy again, and the walk continues at seerr, then jellyfin — the last Host.
qbittorrent: refresh the package lists before the pin (THE-122)
All checks were successful
pr-checks / check (pull_request) Successful in 39s
ef761208df
The deploy's qbittorrent step asked apt for the pinned package's dependencies
against the Guest's cached lists, and five of them now answer 404 on the mirror
(`libngtcp2-16`, `libcurl3t64-gnutls`, `libpcre2-16-0`, three Qt6 libraries).
The package itself is still on the mirror; the lists are what aged. The install
now refreshes the cache first.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
bazarr: the version file carries the archive's v prefix (THE-122)
All checks were successful
pr-checks / check (pull_request) Successful in 39s
9201ccd1ca
The deploy passed qbittorrent — the cache refresh fixed the install — and
stopped at bazarr's Assert: `/opt/bazarr/VERSION` holds `v1.6.2`, while the
pin is `1.6.2`. The entry point's checksum matched; only the prefix differs.
The comparison strips the prefix, so the pin is still checked against the
archive's own file.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
seerr, jellyfin: the rehearsal reads what its asserts judge (THE-122)
All checks were successful
pr-checks / check (pull_request) Successful in 43s
8294d272de
The deploy reached seerr and stopped in the service rehearsal: the `node
--version` read is a command, check mode skipped it, and the assert judged an
empty answer. jellyfin's `dpkg-query` read has the same shape and would stop the
walk one Host later. Both reads now run in check mode, like the nzbget mount.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

Review started (round 1/5) on 8294d272de — reading the diff now.

**Review started** (round 1/5) on 8294d272de6fa19e985bf615f1ae00aaa88a4d63 — reading the diff now.
bot-minos approved these changes 2026-12-03 17:02:55 +00:00
bot-minos left a comment

repo=olympus/infra-media pr=17 head=8294d272de6fa19e985bf615f1ae00aaa88a4d63 round=1/5 verdict=merge
Recommendation: merge

Spec — 0 findings

Spec source: the PR #17 description (it states the contract) plus Paperclip ticket THE-122 (W1.4 deploy-on-merge, fetched 2026-12-03). No Forgejo issue is linked and THE-122 does not restate this contract, so the description is the spec.

Claim Evidence Result
seerr's rehearsal read is forced real seerr/service/roles/seerr/tasks/main.yml:41-43 confirmed
jellyfin's dpkg-query read is the same shape, and fixed the same way jellyfin/service/roles/jellyfin/tasks/main.yml:107-109 confirmed
the failure is the assert judging an empty answer reproduced under --check with ansible-core 2.21.5: node answered ""; the tree is built for major 22 — the same message the deploy log carries confirmed
the fix does not neuter the assert under --check, a wrong answer still fails: node answered "v18.19.1"; the tree is built for major 22; changed=0, so the rehearsal stays clean confirmed
jellyfin is the last Host Makefile:35 — HOSTS := ... bazarr seerr jellyfin; no Host after it is left with an unhandled read confirmed
make check is green mise exec -- make check exit 0, 182 assertions confirmed

No scope creep in effect: git diff origin/main HEAD is these two files, 6 added lines.

Standards — 2 advisories

ADVISORY — the branch is not rebased, so the PR diff carries two commits already on main. ef76120 (qbittorrent, #15) and 9201ccd (bazarr, #16) are ancestors of main 668a872, but the merge-base is 0d5993f. git diff origin/main...HEAD shows 4 files; git diff origin/main HEAD shows 2. bazarr/service/verify.yml:70-76 and qbittorrent/service/roles/qbittorrent/tasks/main.yml:71-74 are byte-identical to main. The merged tree is unaffected; the timeline misattributes them. Rebase onto main before merge.

ADVISORY — the pattern adopted here blocks a future jellyfin pin bump through make service. jellyfin/service/roles/jellyfin/tasks/main.yml:94-117: under --check the apt task at :94 installs nothing, while the read at :103 is now forced real, so the assert at :114 compares the installed version against the newly declared pin and goes red — and a red rehearsal applies nothing (Makefile:341,349). Probed: dpkg reports 10.8.13; the wave declares 10.9.11. Not introduced by this PR — nzbget/service/roles/nzbget/tasks/main.yml:49-54 and navidrome/.../main.yml:63-69 carry the same shape — but jellyfin now inherits it. A bump needs the play run directly, or the assert gated on ansible_check_mode as qbittorrent does at :95-99.

Convention check: the repo has no AGENTS.md/CONTRIBUTING.md/coding-standards.md, so the standard is its documented behaviour — docs/deploy.md:16 ("the rehearsal is the gate") and Makefile:230-235 define the rehearsal, and check_mode: false on a read that decides an assert is already the convention at nzbget/.../main.yml:32-34,54 and navidrome/.../main.yml:68-69. This change follows it; the two comments say why, which the neighbouring roles also do.

Verified, and what I could not

  • Verified: make check (exit 0); ansible-playbook --syntax-check on both site.yml plays (the check_mode keyword is accepted where it is placed); the failure and its fix reproduced locally with the pinned ansible-core, including that a false answer still fails; both commands (node --version, dpkg-query -W) are reads, so "safe in either mode" holds; HOSTS order and the service_rehearsal recipe in the Makefile.
  • Not verified: the live rehearsal against seerr (124) and jellyfin (100) — this review environment has no key for those Guests and no access to the Semaphore run (task 85). The mechanism was reproduced locally instead; the merge's deploy is the first live proof. The bazarr/qbittorrent hunks were not re-reviewed as this PR's work: they are already main's content.

Summary

Standards: 2 findings, both ADVISORY, 0 blockers — worst: the un-rebased branch (cosmetic, merged tree unaffected). Spec: 0 findings, no blocker. No blocker turns this verdict; the two advisories travel as advice.

repo=olympus/infra-media pr=17 head=8294d272de6fa19e985bf615f1ae00aaa88a4d63 round=1/5 verdict=merge Recommendation: merge ## Spec — 0 findings Spec source: the PR #17 description (it states the contract) plus Paperclip ticket THE-122 (W1.4 deploy-on-merge, fetched 2026-12-03). No Forgejo issue is linked and THE-122 does not restate this contract, so the description is the spec. | Claim | Evidence | Result | | --- | --- | --- | | seerr's rehearsal read is forced real | `seerr/service/roles/seerr/tasks/main.yml:41-43` | confirmed | | jellyfin's `dpkg-query` read is the same shape, and fixed the same way | `jellyfin/service/roles/jellyfin/tasks/main.yml:107-109` | confirmed | | the failure is the assert judging an empty answer | reproduced under `--check` with ansible-core 2.21.5: `node answered ""; the tree is built for major 22` — the same message the deploy log carries | confirmed | | the fix does not neuter the assert | under `--check`, a wrong answer still fails: `node answered "v18.19.1"; the tree is built for major 22`; `changed=0`, so the rehearsal stays clean | confirmed | | jellyfin is the last Host | `Makefile:35` — `HOSTS := ... bazarr seerr jellyfin`; no Host after it is left with an unhandled read | confirmed | | `make check` is green | `mise exec -- make check` exit 0, 182 assertions | confirmed | No scope creep in effect: `git diff origin/main HEAD` is these two files, 6 added lines. ## Standards — 2 advisories **ADVISORY — the branch is not rebased, so the PR diff carries two commits already on `main`.** `ef76120` (qbittorrent, #15) and `9201ccd` (bazarr, #16) are ancestors of `main` `668a872`, but the merge-base is `0d5993f`. `git diff origin/main...HEAD` shows 4 files; `git diff origin/main HEAD` shows 2. `bazarr/service/verify.yml:70-76` and `qbittorrent/service/roles/qbittorrent/tasks/main.yml:71-74` are byte-identical to `main`. The merged tree is unaffected; the timeline misattributes them. Rebase onto `main` before merge. **ADVISORY — the pattern adopted here blocks a future jellyfin pin bump through `make service`.** `jellyfin/service/roles/jellyfin/tasks/main.yml:94-117`: under `--check` the `apt` task at :94 installs nothing, while the read at :103 is now forced real, so the assert at :114 compares the *installed* version against the *newly declared* pin and goes red — and a red rehearsal applies nothing (`Makefile:341,349`). Probed: `dpkg reports 10.8.13; the wave declares 10.9.11`. Not introduced by this PR — `nzbget/service/roles/nzbget/tasks/main.yml:49-54` and `navidrome/.../main.yml:63-69` carry the same shape — but jellyfin now inherits it. A bump needs the play run directly, or the assert gated on `ansible_check_mode` as qbittorrent does at `:95-99`. Convention check: the repo has no `AGENTS.md`/`CONTRIBUTING.md`/`coding-standards.md`, so the standard is its documented behaviour — `docs/deploy.md:16` ("the rehearsal is the gate") and `Makefile:230-235` define the rehearsal, and `check_mode: false` on a read that decides an assert is already the convention at `nzbget/.../main.yml:32-34,54` and `navidrome/.../main.yml:68-69`. This change follows it; the two comments say why, which the neighbouring roles also do. ## Verified, and what I could not - Verified: `make check` (exit 0); `ansible-playbook --syntax-check` on both `site.yml` plays (the `check_mode` keyword is accepted where it is placed); the failure and its fix reproduced locally with the pinned ansible-core, including that a false answer still fails; both commands (`node --version`, `dpkg-query -W`) are reads, so "safe in either mode" holds; `HOSTS` order and the `service_rehearsal` recipe in the Makefile. - Not verified: the live rehearsal against seerr (124) and jellyfin (100) — this review environment has no key for those Guests and no access to the Semaphore run (task 85). The mechanism was reproduced locally instead; the merge's deploy is the first live proof. The bazarr/qbittorrent hunks were not re-reviewed as this PR's work: they are already `main`'s content. ## Summary Standards: 2 findings, both ADVISORY, 0 blockers — worst: the un-rebased branch (cosmetic, merged tree unaffected). Spec: 0 findings, no blocker. No blocker turns this verdict; the two advisories travel as advice.
pit merged commit 275467b912 into main 2026-12-03 17:04:04 +00:00
pit deleted branch paperclip/THE-122-rehearsal-reads 2026-12-03 17:04:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-media!17
No description provided.