Files
stack/tests/bib/test_iom_alert.py
kert 759d8d515e
Some checks failed
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Infra CI / mc (push) Successful in 11s
Deploy / report (push) Successful in 12s
CI / test (push) Has been cancelled
CI / lint (push) Failing after 31s
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / mc (push) Has been skipped
Infra CI / notebooks (push) Failing after 12s
Infra CI / zotero (push) Successful in 12s
Infra CI / docs (push) Successful in 1m12s
Infra CI / api (push) Successful in 21s
feat(bib): nightly refresh-iom + auto cms-update issue (#343)
Wires the existing idempotent `stack bib refresh-iom` command behind
a systemd user timer (daily 03:30) and auto-files a Gitea issue when
watch-iom detects a futurepdf.pdf SHA-256 change.

- src/bib/iom_alert.py — file_iom_change_alert() opens an issue
  tagged 'cms-update', creating the label first if needed.
- src/cli/bib.py — refresh-iom gains --file-issue/--no-file-issue
  (default True). Calls the alert helper when changed=True.
- tests/bib/test_iom_alert.py — 4 unit tests.

Systemd user units (host-specific, not in repo):
- ~/.config/systemd/user/bib-refresh-iom.service
- ~/.config/systemd/user/bib-refresh-iom.timer (OnCalendar=03:30)

Out of scope: adaptive 6h-after-change scheduling; Slack alternative.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 19:03:08 -04:00

2.5 KiB