bazarr: the version file carries the archive's v prefix (THE-122) #16

Merged
pit merged 2 commits from paperclip/THE-122-bazarr-version into main 2026-12-03 16:47:08 +00:00
Owner

The deploy (task 84) passed qbittorrent — the cache refresh fixed the install — and stopped at bazarr's Assert:

TASK [the entry point is the pinned bytes and the version is 1.6.2]
[ERROR]: Assertion failed
"assertion": "(verify_version_file.content | b64decode | trim) == verify_version"

The entry point's checksum matches (878c0520…), and the file is /opt/bazarr/VERSION; it holds v1.6.2, the archive's own prefix, while the pin is 1.6.2. The comparison strips the leading v, so the pin is still checked against the archive's file.

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

The deploy (task 84) passed qbittorrent — the cache refresh fixed the install — and stopped at bazarr's Assert: ``` TASK [the entry point is the pinned bytes and the version is 1.6.2] [ERROR]: Assertion failed "assertion": "(verify_version_file.content | b64decode | trim) == verify_version" ``` The entry point's checksum matches (`878c0520…`), and the file is `/opt/bazarr/VERSION`; it holds `v1.6.2`, the archive's own prefix, while the pin is `1.6.2`. The comparison strips the leading `v`, so the pin is still checked against the archive's file. `make check` is green. Merge; the merge starts the deploy again, and the walk continues at bazarr, then seerr and jellyfin.
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>
Member

Review started (round 1/5) on 9201ccd1ca — reading the diff now.

**Review started** (round 1/5) on 9201ccd1ca272aedab4046d9a313af60637339a4 — reading the diff now.
bot-minos approved these changes 2026-12-03 16:46:10 +00:00
bot-minos left a comment

olympus/infra-media #16 — head 9201ccd1ca272aedab4046d9a313af60637339a4, round 1/5 (the dispatch numbered this round 1/5; the thread carries no earlier review), axes: standards, spec.

Recommendation: merge

Spec

Spec source. No issue is linked in the description; the branch and title cite THE-122, the wave ticket ("a merge to infra-media main starts the Semaphore task, runs make prod NONINTERACTIVE=1, and the twelve-Host walk ends green through verify"). That ticket is broader than this change, so the PR description is the spec: the deploy reached bazarr's Assert because /opt/bazarr/VERSION holds v1.6.2 while the pin is 1.6.2, and the comparison should strip the archive's prefix.

The claim reproduces. The repository's own byte pin for that file, bazarr/service/roles/bazarr/defaults/main.yml:14 (bazarr_version_sha256: f4826a0b…0466), equals sha256("v1.6.2\n") — so the file's bytes are exactly what verify.yml:70-71 describes, and the deploy log's Assertion failed on bazarr/service/verify.yml:76 at the base revision is what the expression produces.

Driven through the real filter chain (slurp → b64decode → trim → regex_replace), the pair is red/green:

| input | base expression (trim) | head expression (trim | regex_replace('^v','')) |
| --- | --- | --- |
| v1.6.2\n (the archive's file) | false — the deploy's failure | true |
| 1.6.2\n | false | true — a bare file still passes |

No spec requirement is missing and nothing is added beyond it: the diff's only effective change is that one expression plus its explanatory comment.

Could not verify. The walk's continuation — bazarr's remaining rings (unit, config.yaml, loopback 200), then seerr and jellyfin — needs the Guests. Forgejo run #51's log carries only the Semaphore task's status (task 84 ended 'error'; the deploy did not finish); the play's own output lives in Semaphore task 84, which this session did not read. That continuation is the merge's deploy to show (ADR-0009), not a claim this review can call verified.

Standards

standards: no repo conventions found — the repository has no AGENTS.md, CONTRIBUTING.md or coding-standards.md, and README.md is a single heading. Judged by general good practice, plus the shape the repository documents about itself (docs/service-bazarr.md:52-58, mise.toml:14-17, Makefile:270) and the org records in olympus/workshop docs/adr/ at main (0002, 0009, 0011 read; none breached). The comment added at bazarr/service/verify.yml:70-71 states why the comparison strips a prefix, which is this repository's convention for every non-obvious line.

  • ADVISORY — qbittorrent/service/roles/qbittorrent/tasks/main.yml:74: the branch carries commit ef76120, whose patch-id (328d984f…) is byte-identical to main's tip 5b0ab35 (PR #15, already merged). The PR's displayed diff therefore shows two files while what lands is one: git diff 5b0ab35 9201ccd --stat answers bazarr/service/verify.yml only, and git merge-tree --write-tree 5b0ab35 9201ccd is clean (rc 0). Nothing breaks either way; updating the branch on 5b0ab35 (merge or rebase) keeps the timeline showing the one change under review, and the next reader from re-auditing a update_cache: true that main already has.

Named, not charged

  • bazarr/service/roles/bazarr/defaults/main.yml:5,14 — bazarr_version_sha256 pins the VERSION file's bytes and no task in bazarr/service/roles/bazarr/tasks/main.yml reads it. Pre-existing and outside this diff.
  • The Assert play's other rings (unit, settings, loopback) never ran in the failing deploy. Unchanged by this PR.

Verified

  • Head pinned: refs/pull/16/head = 9201ccd1ca272aedab4046d9a313af60637339a4, re-read at post time.
  • mise exec -- make check at head: rc 0 (env-check; deploy-test's three suites, service-key 33 assertions; fmt-check).
  • CI: pr-checks run #52 on pull_request at 9201ccd — success (39 s).
  • ansible-playbook --syntax-check on bazarr/service/verify.yml from bazarr/service/: rc 0.
  • The red/green probe above (real filters, slurped bytes), and the byte-pin identity sha256("v1.6.2\n") = f4826a0b…0466.
  • Scope/charter: no OpenTofu Stack changed, so there is no plan or judge result to read for this PR; .forgejo/workflows/ untouched (no CI-gate change); no secret in the diff; bazarr is not a tier-1 target; no destroy/replace and no ADR change — no escalation class met, no hold.
  • make check does not read a play — mise.toml:15-16 says so — so its green is not evidence about this change; the evidence is the probe above and the deploy that follows the merge. The PR says as much itself.

Summary

  • Spec: 0 findings. Worst: none.
  • Standards: 1 advisory. Worst: the branch re-carries an already-merged qbittorrent commit, so the displayed diff is not the change that lands.
  • No blockers on either axis. One advisory is below the three-advisory volume threshold, so it travels as advice.
<!-- minos review-loop: repo=olympus/infra-media pr=16 head=9201ccd1ca272aedab4046d9a313af60637339a4 round=1/5 axes=standards,spec --> **olympus/infra-media #16** — head `9201ccd1ca272aedab4046d9a313af60637339a4`, round 1/5 (the dispatch numbered this round 1/5; the thread carries no earlier review), axes: standards, spec. Recommendation: merge ### Spec **Spec source.** No issue is linked in the description; the branch and title cite `THE-122`, the wave ticket ("a merge to `infra-media` `main` starts the Semaphore task, runs `make prod NONINTERACTIVE=1`, and the twelve-Host walk ends green through `verify`"). That ticket is broader than this change, so the **PR description is the spec**: the deploy reached bazarr's Assert because `/opt/bazarr/VERSION` holds `v1.6.2` while the pin is `1.6.2`, and the comparison should strip the archive's prefix. **The claim reproduces.** The repository's own byte pin for that file, `bazarr/service/roles/bazarr/defaults/main.yml:14` (`bazarr_version_sha256: f4826a0b…0466`), equals `sha256("v1.6.2\n")` — so the file's bytes are exactly what `verify.yml:70-71` describes, and the deploy log's `Assertion failed` on `bazarr/service/verify.yml:76` at the base revision is what the expression produces. Driven through the real filter chain (`slurp` → `b64decode` → `trim` → `regex_replace`), the pair is red/green: | input | base expression (`trim`) | head expression (`trim | regex_replace('^v','')`) | | --- | --- | --- | | `v1.6.2\n` (the archive's file) | **false** — the deploy's failure | **true** | | `1.6.2\n` | false | **true** — a bare file still passes | No spec requirement is missing and nothing is added beyond it: the diff's only effective change is that one expression plus its explanatory comment. **Could not verify.** The walk's continuation — bazarr's remaining rings (unit, `config.yaml`, loopback `200`), then seerr and jellyfin — needs the Guests. Forgejo run #51's log carries only the Semaphore task's status (`task 84 ended 'error'; the deploy did not finish`); the play's own output lives in Semaphore task 84, which this session did not read. That continuation is the merge's deploy to show (ADR-0009), not a claim this review can call verified. ### Standards `standards: no repo conventions found` — the repository has no `AGENTS.md`, `CONTRIBUTING.md` or `coding-standards.md`, and `README.md` is a single heading. Judged by general good practice, plus the shape the repository documents about itself (`docs/service-bazarr.md:52-58`, `mise.toml:14-17`, `Makefile:270`) and the org records in `olympus/workshop` `docs/adr/` at `main` (0002, 0009, 0011 read; none breached). The comment added at `bazarr/service/verify.yml:70-71` states why the comparison strips a prefix, which is this repository's convention for every non-obvious line. - **ADVISORY** — `qbittorrent/service/roles/qbittorrent/tasks/main.yml:74`: the branch carries commit `ef76120`, whose patch-id (`328d984f…`) is byte-identical to `main`'s tip `5b0ab35` (PR #15, already merged). The PR's displayed diff therefore shows two files while what lands is one: `git diff 5b0ab35 9201ccd --stat` answers `bazarr/service/verify.yml` only, and `git merge-tree --write-tree 5b0ab35 9201ccd` is clean (rc 0). Nothing breaks either way; updating the branch on `5b0ab35` (merge or rebase) keeps the timeline showing the one change under review, and the next reader from re-auditing a `update_cache: true` that `main` already has. ### Named, not charged - `bazarr/service/roles/bazarr/defaults/main.yml:5,14` — `bazarr_version_sha256` pins the `VERSION` file's bytes and no task in `bazarr/service/roles/bazarr/tasks/main.yml` reads it. Pre-existing and outside this diff. - The Assert play's other rings (unit, settings, loopback) never ran in the failing deploy. Unchanged by this PR. ### Verified - Head pinned: `refs/pull/16/head` = `9201ccd1ca272aedab4046d9a313af60637339a4`, re-read at post time. - `mise exec -- make check` at head: **rc 0** (env-check; deploy-test's three suites, `service-key` 33 assertions; fmt-check). - CI: `pr-checks` run #52 on `pull_request` at `9201ccd` — **success** (39 s). - `ansible-playbook --syntax-check` on `bazarr/service/verify.yml` from `bazarr/service/`: **rc 0**. - The red/green probe above (real filters, slurped bytes), and the byte-pin identity `sha256("v1.6.2\n")` = `f4826a0b…0466`. - Scope/charter: no OpenTofu Stack changed, so there is no plan or judge result to read for this PR; `.forgejo/workflows/` untouched (no CI-gate change); no secret in the diff; bazarr is not a tier-1 target; no destroy/replace and no ADR change — no escalation class met, no hold. - `make check` does not read a play — `mise.toml:15-16` says so — so its green is not evidence **about this change**; the evidence is the probe above and the deploy that follows the merge. The PR says as much itself. ### Summary - **Spec:** 0 findings. Worst: none. - **Standards:** 1 advisory. Worst: the branch re-carries an already-merged qbittorrent commit, so the displayed diff is not the change that lands. - No blockers on either axis. One advisory is below the three-advisory volume threshold, so it travels as advice.
pit merged commit 668a872184 into main 2026-12-03 16:47:08 +00:00
pit deleted branch paperclip/THE-122-bazarr-version 2026-12-03 16:47:08 +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!16
No description provided.