borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Monitor bundled Apprise releases and create deduplicated update issues

Open borg-codex-bot opened this issue 1 month ago • 1 comments

Goal and current state

Monitor upstream Apprise releases and create actionable update issues so bundled notification dependencies do not become outdated unnoticed. Apprise is currently pinned to 2.1.0 in plugin/apprise-requirements.lock and bundled into the plugin.

The existing Dependency security workflow audits the locked Python dependencies weekly and during CI/release preparation. It does not report ordinary new Apprise versions or create update issues. Preserve those audits and complement them with version monitoring.

Scope

  • Add a daily GitHub Actions monitor on main, with a manual workflow_dispatch entrypoint.
  • Read the bundled Apprise version from the existing lockfile; do not maintain a duplicate version pin.
  • Query official upstream release/package metadata. Detect newer stable versions, exclude prereleases and withdrawn package releases, and distinguish an available update from a mandatory migration. A new version creates a review task, not an automatic compatibility decision.
  • Include relevant public security information and links when available; preserve the existing vulnerability audit for Apprise and its locked dependencies. Do not present a failed lookup as an all-clear result.
  • Create or update English GitHub issues exclusively as borg-codex-bot, verifying process identity before every mutation and the author after creation. Keep bot credentials in a protected main-only job; do not expose them to PR code. Any required environment/credential setup remains a maintainer action.
  • Include the bundled and available versions, authoritative release links, published security references where applicable, and a checklist for compatibility review, lock/hash refresh, tests and the existing test-channel/stable release process.
  • Deduplicate by component and upstream version/advisory identity, including previously closed or deliberately deferred issues. Update existing findings only when meaningful new information arrives. Unchanged successful runs produce no new issues or repeated comments.
  • Surface network, rate-limit, metadata-validation and authentication errors in workflow results. Never silently skip monitoring failures.

Validation and acceptance

  • Tests cover a newer stable release, no update, prereleases/withdrawn releases, version ordering, malformed/unavailable metadata, duplicate findings, intentional deferral and changed security information.
  • Verify bot authorization failures cannot write issues and that untrusted upstream text is treated as data.
  • Focused local tests and workflow validation pass, followed by full PR CI.
  • Document sources, schedule, issue lifecycle, failure handling and maintainer setup.
  • After the workflow is merged and configured on main, verify a live monitor run and its deduplication behavior. If no update is available, record that result and retain automated fixture coverage for issue creation.

Boundaries and related work

This is an internal maintenance workflow (release-note::no). It must not automatically update dependencies, install anything on Unraid, create a plugin release, or bypass maintainer testing and release approval. No package rebuild is required solely to introduce monitoring.

The private Python runtime replacing Python 3 for Unraid has not yet been implemented. Its monitoring is a mandatory completion criterion of #548, to be enabled when its actual supplier, version and build metadata are defined. Reuse this monitoring approach where practical without inventing a runtime source or delaying Apprise monitoring until Python is bundled.

borg-codex-bot avatar Nov 04 '26 10:11 borg-codex-bot

Activation and live verification completed after PR #700 was merged.

  • Main/controller commit: 5970d55d3bc0e112b92d43e02cd52bd91880e17d.
  • The maintainer configured dependency-monitor. Read-only API verification confirmed Selected branches and tags with exactly branch main and no tags, reviewers or wait timer. No repository settings were changed by the agent.
  • First protected apply run: https://github.com/borgforge/borg-backup-ui/actions/runs/41820986738 - success.
  • Second protected apply run: https://github.com/borgforge/borg-backup-ui/actions/runs/41821177317 - success.
  • Both runs used the same main commit, passed the protected-job and actual borg-codex-bot identity checks, and returned the same summary:
{"bundled":"2.1.0","creates":0,"deferred_or_closed":0,"findings":0,"latest_stable":"2.1.0","mode":"apply","updates":0}

The second run confirmed repeat no-change behavior with zero issue mutations. No eligible newer stable Apprise version or public advisory affecting the bundled version was returned by the sources, so live issue creation/update was not exercised. Creation, updates, alias grouping, deferral and duplicate handling are covered by the automated fixture tests in PR #700; no synthetic public finding was created for this check.

The merged workflow is scheduled daily at 06:41 UTC, subject to GitHub scheduler availability. Existing dependency audits remain active. Python runtime monitoring remains in #548. The post-merge activation criteria of #699 are satisfied.

borg-codex-bot avatar Nov 04 '26 11:11 borg-codex-bot