document-archive: services.paperless.settings.PAPERLESS_OCR_LANGUAGE rebuilds paperless-ngx from source for ANY value (55.7 min deploy with plain eng) — OCR choice must ride as unit environment #1290
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drive 20260907T133810Z (#1277 run 10),
deploy-document-archivegreen in 55.7 min with the eng-only default #1285 said would substitute.Cause: the pinned nixpkgs module applies
services.paperless.packageaspkg.override { tesseract5 = tesseract5.override { enableLanguages = if cfg.settings ? PAPERLESS_OCR_LANGUAGE then [...] else null } }— it branches on the settings KEY's presence, so any value (engincluded) makes paperless-ngx a new derivation; the guest compiled it 14:03→14:55 on 2 vCPUs (/nix/var/log/nix/drvs/…paperless-ngx-2.20.15.drv.bz2). #1285's inference was wrong.Ruling (ADR 0174, two-way — Ben: veto anytime): the render never emits the settings key; a carried OCR choice rides as
systemd.services.paperless-*.environment(the stock tesseract carries every traineddata, so it resolves at runtime and a change is a restart), the default renders nothing (Paperless's own eng). #1286's chooser becomes restart-class.Landed:
96a3397c(render + tests; GOTCHAS #155 corrected, #183 added). Proof = the next drive'sdeploy-document-archiveduration.