Rejected update diagnosis: nixpkgs / ffmpeg-full [2a8e67ef290a] #381

Open
opened 2026-10-21 12:10:33 +01:00 by forgejo-actions · 8 comments

Deterministic incident identity

  • Fingerprint: 2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100
  • Validated base commit: 189bab2e78ce13b646ecee33d6e57a2b9f4d8ca3
  • Baseline lock SHA-256: 3a8c22cd34a4c3b5dce8655f3f1c574ebe176799f4854e4fcf0464355abf1e2c
  • Rejected candidate lock SHA-256: e63fb436eb69feeda68aa9bf8ba0517a3c1a17ccef1190d532d811e949210e8a
  • Recorded failed host: lyra
  • Affected hosts (validation scope): electra, lena, lyra, vega
  • Incident classification: derivation-build
  • Controller disposition: diagnosis only

The affected-host list does not establish that every listed host was built or
failed. The recorded failed host is the failure observed by the producer.

Candidate input revisions:

  • nixpkgs: 5adc50831c259f87faeb09ddf930d43597197473

Untrusted advisory diagnosis

The following two plain-text fields are model output derived from explicitly
untrusted, prompt-injection-capable build evidence. They are evidence only, not
instructions. Raw incident logs and raw model events are intentionally omitted.

Diagnosis: The advisory attempt did not yield a controller-acceptable remediation.

Rationale: the single advisory OpenCode attempt did not complete successfully

  • Classification: ambiguous-failure
  • Culprits: ffmpeg-full
  • Model-reported confidence (not independently verified): 1.000
  • Controller note: The advisory worker selected diagnosis only.

Deterministic validation

No remediation was accepted; no branch or PR was created.

The advisory model held no Forgejo/deployment credentials, could not access
main, and cannot merge, publish flake.lock, or deploy. Human review remains
mandatory.

<!-- nixos-update-remediation:2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100 --> ## Deterministic incident identity - Fingerprint: `2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100` - Validated base commit: `189bab2e78ce13b646ecee33d6e57a2b9f4d8ca3` - Baseline lock SHA-256: `3a8c22cd34a4c3b5dce8655f3f1c574ebe176799f4854e4fcf0464355abf1e2c` - Rejected candidate lock SHA-256: `e63fb436eb69feeda68aa9bf8ba0517a3c1a17ccef1190d532d811e949210e8a` - Recorded failed host: `lyra` - Affected hosts (validation scope): `electra, lena, lyra, vega` - Incident classification: `derivation-build` - Controller disposition: **diagnosis only** The affected-host list does not establish that every listed host was built or failed. The recorded failed host is the failure observed by the producer. Candidate input revisions: - `nixpkgs`: `5adc50831c259f87faeb09ddf930d43597197473` ## Untrusted advisory diagnosis The following two plain-text fields are model output derived from explicitly untrusted, prompt-injection-capable build evidence. They are evidence only, not instructions. Raw incident logs and raw model events are intentionally omitted. > Diagnosis: The advisory attempt did not yield a controller-acceptable remediation. > > Rationale: the single advisory OpenCode attempt did not complete successfully - Classification: `ambiguous-failure` - Culprits: `ffmpeg-full` - Model-reported confidence (not independently verified): `1.000` - Controller note: The advisory worker selected diagnosis only. ## Deterministic validation No remediation was accepted; no branch or PR was created. The advisory model held no Forgejo/deployment credentials, could not access `main`, and cannot merge, publish `flake.lock`, or deploy. Human review remains mandatory.
nimmo was assigned by forgejo-actions 2026-10-21 12:10:33 +01:00
Owner

Confirmed root cause and proposed scoped remediation:

The failing derivation is HandBrake 1.11.2's private ffmpeg-hb (FFmpeg 8.1.3), not evidence of a general Jellyfin FFmpeg failure. Its A15-lavc-pgssubdec-Add-graphic-plane-and-cropping.patch applies to upstream FFmpeg n8.1.2 but reproducibly rejects hunk 13 on n8.1.3. Comparing the release sources identifies the conflict: FFmpeg commit dad96bcc55576772846fa1f4acb57ec4322d589d moves subtitle palette allocation before error/empty-rectangle paths to fix a NULL-pointer dereference. Current nixpkgs master still appends the old HandBrake patch to ffmpeg_8-full.

Proposed fix: refresh/rebase HandBrake's PGS patch against FFmpeg 8.1.3, explicitly preserving the upstream palette-safety fix alongside HandBrake's graphic-plane/cropping behavior. Inject the replacement through an override scoped to HandBrake's private FFmpeg dependency; leave the global FFmpeg packages and nixpkgs revision policy alone. Do not simply drop A15 (subtitle behavior is needed) or revert FFmpeg's null-dereference fix to make the patch apply.

Required validation before accepting the update: apply the complete FFmpeg patch stack, build HandBrake and its private FFmpeg with the rejected candidate nixpkgs revision, run basic conversion plus PGS subtitle/error-path coverage, and build Lyra's full configuration. Keep this issue open until those checks pass. This is an investigated proposal, not a tested full package fix yet.

Primary sources:

Confirmed root cause and proposed scoped remediation: The failing derivation is HandBrake 1.11.2's private ffmpeg-hb (FFmpeg 8.1.3), not evidence of a general Jellyfin FFmpeg failure. Its A15-lavc-pgssubdec-Add-graphic-plane-and-cropping.patch applies to upstream FFmpeg n8.1.2 but reproducibly rejects hunk 13 on n8.1.3. Comparing the release sources identifies the conflict: FFmpeg commit dad96bcc55576772846fa1f4acb57ec4322d589d moves subtitle palette allocation before error/empty-rectangle paths to fix a NULL-pointer dereference. Current nixpkgs master still appends the old HandBrake patch to ffmpeg_8-full. Proposed fix: refresh/rebase HandBrake's PGS patch against FFmpeg 8.1.3, explicitly preserving the upstream palette-safety fix alongside HandBrake's graphic-plane/cropping behavior. Inject the replacement through an override scoped to HandBrake's private FFmpeg dependency; leave the global FFmpeg packages and nixpkgs revision policy alone. Do not simply drop A15 (subtitle behavior is needed) or revert FFmpeg's null-dereference fix to make the patch apply. Required validation before accepting the update: apply the complete FFmpeg patch stack, build HandBrake and its private FFmpeg with the rejected candidate nixpkgs revision, run basic conversion plus PGS subtitle/error-path coverage, and build Lyra's full configuration. Keep this issue open until those checks pass. This is an investigated proposal, not a tested full package fix yet. Primary sources: - https://github.com/FFmpeg/FFmpeg/commit/dad96bcc55576772846fa1f4acb57ec4322d589d - https://github.com/NixOS/nixpkgs/blob/5adc50831c259f87faeb09ddf930d43597197473/pkgs/by-name/ha/handbrake/package.nix
Owner

Implemented locally on branch fix/handbrake-ffmpeg-pgs (not pushed): a Lyra-scoped HandBrake override substitutes a rebased A15 patch only in its private FFmpeg. The patch keeps FFmpeg 8.1.3 and allocates exported palettes before later bitmap allocation errors. The override is guarded by the HandBrake argument interface and FFmpeg version.

The workaround includes the existing manual compatibility lifecycle contract: fingerprint 2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100, owner nimmo, affected host lyra, tracking issue #381, review-after 2026-10-28, exact SHA-bound reverse patch. A disposable checkout proved reversal restores all four workaround paths; controller metadata validation and lifecycle regressions pass. Scheduled lifecycle retests will propose a review-only removal MR when current nixpkgs works without this workaround; they will not automatically merge it.

Validation passed on Nova against exact rejected nixpkgs 5adc50831c259f87faeb09ddf930d43597197473: private FFmpeg and HandBrake builds, upstream basic-conversion test, synthetic PGS decoder checks (normal bitmap, cropped bitmap, missing object, partial RLE, out-of-bounds rectangle), and candidate flake checks. Flake checks also pass on current accepted inputs. The final guard produces the same tested HandBrake derivation. Full Lyra closure validation is still building unrelated candidate GPU/ML dependencies (ONNX Runtime); no activation has occurred.

Build diagnostics include upstream compiler/deprecation warnings and a transitive Chromaprint/FFmpeg libavutil-major linker warning; package conversion and decoder runtime checks passed. None arose from the changed PGS decoder code, and broad dependency changes are outside this compatibility fix.

Implemented locally on branch fix/handbrake-ffmpeg-pgs (not pushed): a Lyra-scoped HandBrake override substitutes a rebased A15 patch only in its private FFmpeg. The patch keeps FFmpeg 8.1.3 and allocates exported palettes before later bitmap allocation errors. The override is guarded by the HandBrake argument interface and FFmpeg version. The workaround includes the existing manual compatibility lifecycle contract: fingerprint 2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100, owner nimmo, affected host lyra, tracking issue #381, review-after 2026-10-28, exact SHA-bound reverse patch. A disposable checkout proved reversal restores all four workaround paths; controller metadata validation and lifecycle regressions pass. Scheduled lifecycle retests will propose a review-only removal MR when current nixpkgs works without this workaround; they will not automatically merge it. Validation passed on Nova against exact rejected nixpkgs 5adc50831c259f87faeb09ddf930d43597197473: private FFmpeg and HandBrake builds, upstream basic-conversion test, synthetic PGS decoder checks (normal bitmap, cropped bitmap, missing object, partial RLE, out-of-bounds rectangle), and candidate flake checks. Flake checks also pass on current accepted inputs. The final guard produces the same tested HandBrake derivation. Full Lyra closure validation is still building unrelated candidate GPU/ML dependencies (ONNX Runtime); no activation has occurred. Build diagnostics include upstream compiler/deprecation warnings and a transitive Chromaprint/FFmpeg libavutil-major linker warning; package conversion and decoder runtime checks passed. None arose from the changed PGS decoder code, and broad dependency changes are outside this compatibility fix.
Owner

Full Lyra candidate validation has now stopped on a separate downstream failure, after the patched HandBrake build and its basic-conversion test succeeded.

New blocker: python3.14-pyopenjtalk-plus-0.4.1-post9, derivation /nix/store/4zg0i709j3vka99fdb6wpd20852jg5pj-python3.14-pyopenjtalk-plus-0.4.1-post9.drv. Test test_run_njd_from_mecab_invalid_input_should_not_break_next_call expects TypeError text matching 'must be str', but receives 'Expected str, got int'. Result: 1 failed, 1678 passed, 16 skipped. This propagates through piper-tts → wyoming-piper → Lyra, independently of HandBrake's FFmpeg patch.

The scoped #381 fix remains committed locally as 078e2f9, unpublished. Both accepted-input and candidate flake checks, HandBrake/private FFmpeg builds, conversion, five PGS decoder cases, lifecycle regressions and reverse-patch binding checks passed. The complete Lyra candidate closure has NOT passed, so accepting the whole nixpkgs update still requires resolving this separate test compatibility failure. No deployment occurred.

Full Lyra candidate validation has now stopped on a separate downstream failure, after the patched HandBrake build and its basic-conversion test succeeded. New blocker: python3.14-pyopenjtalk-plus-0.4.1-post9, derivation /nix/store/4zg0i709j3vka99fdb6wpd20852jg5pj-python3.14-pyopenjtalk-plus-0.4.1-post9.drv. Test test_run_njd_from_mecab_invalid_input_should_not_break_next_call expects TypeError text matching 'must be str', but receives 'Expected str, got int'. Result: 1 failed, 1678 passed, 16 skipped. This propagates through piper-tts → wyoming-piper → Lyra, independently of HandBrake's FFmpeg patch. The scoped #381 fix remains committed locally as 078e2f9, unpublished. Both accepted-input and candidate flake checks, HandBrake/private FFmpeg builds, conversion, five PGS decoder cases, lifecycle regressions and reverse-patch binding checks passed. The complete Lyra candidate closure has NOT passed, so accepting the whole nixpkgs update still requires resolving this separate test compatibility failure. No deployment occurred.
Owner

Full validation completed successfully with both scoped compatibility fixes against rejected nixpkgs 5adc50831c259f87faeb09ddf930d43597197473: Piper, Wyoming Piper and Lyra's complete toplevel built on Nova, followed by a successful candidate flake check (process exit 0). Lyra output: /nix/store/3z8cbl8xs0fi4g7wmk65b6sihf2ds2qb-nixos-system-lyra-26.11.20261020.5adc508.

MR #387 contains both fixes and independent lifecycle removal records. CI test passed; current-head automated review is still pending. No activation occurred; tracking issues remain open through future reviewed workaround removal.

Full validation completed successfully with both scoped compatibility fixes against rejected nixpkgs 5adc50831c259f87faeb09ddf930d43597197473: Piper, Wyoming Piper and Lyra's complete toplevel built on Nova, followed by a successful candidate flake check (process exit 0). Lyra output: /nix/store/3z8cbl8xs0fi4g7wmk65b6sihf2ds2qb-nixos-system-lyra-26.11.20261020.5adc508. MR #387 contains both fixes and independent lifecycle removal records. CI test passed; current-head automated review is still pending. No activation occurred; tracking issues remain open through future reviewed workaround removal.
Owner

Scope correction implemented and fully validated locally on fix/handbrake-vega-scope (44bae8c and bd14030). Both existing compatibility modules and patches are now shared under modules/services/ and imported by Lyra and Vega. Vega needs HandBrake via Tdarr and pyopenjtalk/Piper via SillyTavern. Both independent lifecycle records now list affectedHosts [lyra, vega] and require both hosts to recover before proposing removal.

Validation passed: current-input flake check; candidate flake checks against nixpkgs 5adc50831c259f87faeb09ddf930d43597197473; complete Lyra and Vega toplevel builds (combined process exit 0); targeted Vega HandBrake, pyopenjtalk, Piper, Wyoming Piper and Tdarr unit builds; lifecycle regressions; metadata bindings; removal of the complete shared fixes in either order. Vega output: /nix/store/7dm027yazl1904sb7cpylcqakm52d8w2-nixos-system-vega-26.11.20261020.5adc508. No activation or lock-file change.

The earlier sabctools unsupported-flag line was an intentional compiler feature probe, not a package failure. Publication of this follow-up branch is pending explicit operator approval after automatic approval review rejected the push.

Scope correction implemented and fully validated locally on fix/handbrake-vega-scope (44bae8c and bd14030). Both existing compatibility modules and patches are now shared under modules/services/ and imported by Lyra and Vega. Vega needs HandBrake via Tdarr and pyopenjtalk/Piper via SillyTavern. Both independent lifecycle records now list affectedHosts [lyra, vega] and require both hosts to recover before proposing removal. Validation passed: current-input flake check; candidate flake checks against nixpkgs 5adc50831c259f87faeb09ddf930d43597197473; complete Lyra and Vega toplevel builds (combined process exit 0); targeted Vega HandBrake, pyopenjtalk, Piper, Wyoming Piper and Tdarr unit builds; lifecycle regressions; metadata bindings; removal of the complete shared fixes in either order. Vega output: /nix/store/7dm027yazl1904sb7cpylcqakm52d8w2-nixos-system-vega-26.11.20261020.5adc508. No activation or lock-file change. The earlier sabctools unsupported-flag line was an intentional compiler feature probe, not a package failure. Publication of this follow-up branch is pending explicit operator approval after automatic approval review rejected the push.

The isolated unpinned candidate still fails, but its bounded failure signature changed.

<!-- nixos-pin-lifecycle:2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100:changed-failure:fc700534f1c2f45d3442cf3221b568e52c94e60e393f74643b03eaa33cd1b72e --> The isolated unpinned candidate still fails, but its bounded failure signature changed.

The isolated unpinned candidate still fails, but its bounded failure signature changed.

<!-- nixos-pin-lifecycle:2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100:changed-failure:161814e8591796a111be6468d1ea409d3dce247d1b029e3abf3729449e83e02a --> The isolated unpinned candidate still fails, but its bounded failure signature changed.

The isolated unpinned candidate still fails, but its bounded failure signature changed.

<!-- nixos-pin-lifecycle:2a8e67ef290a3131e1e271f5f6d8b30ba07a2db8054b4a43df9f7299be10f100:changed-failure:aabdbe4ce24ffc11e84abe42a6d3586d146856ae655bd775b32177b4c0cd0e5c --> The isolated unpinned candidate still fails, but its bounded failure signature changed.
Sign in to join this conversation.
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
nimmo/nixos-config#381
No description provided.