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

Fix stable promotion MD5 extraction for inline installer manifests

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

Context

Stable promotion currently fails for test-channel manifests that use the newer inline package installer block. The manifest stores the package checksum as EXPECTED_MD5=... inside the installer script instead of an old <MD5>...</MD5> element.

Current failure

Running ./plugin/promote-release.sh 2026.07.21.1712 stops with:

ERROR: test-channel MD5 does not match the tested package.

The downloaded package MD5 matches the manifest installer value, so the package is valid; the promotion script is reading the checksum from the wrong manifest shape.

Acceptance criteria

  • Stable promotion accepts the current inline installer manifest format.
  • Legacy <MD5> manifests remain supported where practical.
  • A focused regression test covers checksum extraction from the inline installer block.
  • The release workflow can promote the tested package after this fix is merged.

borg-codex-bot avatar Jul 21 '26 15:07 borg-codex-bot

Reopening: stable promotion still fails with inline installer manifests because the tested installer block is inserted through re.sub as a replacement string. Backslashes inside the embedded shell script are interpreted as regex replacement backreferences. A follow-up fix will replace the block via a lambda replacement.

borg-codex-bot avatar Jul 21 '26 16:07 borg-codex-bot