chore: upgrade redis to 8.10.3-alpine #9

Closed
autonomic-bot wants to merge 0 commits from upgrade-69afb87 into main
Owner

Changes

  • Update the Redis sidecar from 8.10.2-alpine to 8.10.3-alpine.
  • Fix the existing SQLite restore gap: the backupbot post-hook verifies the restored snapshot and copies it into the live database through SQLite's backup API. This preserves the database inode seen by Mailu's open connections.
  • Bump recipe semver from 4.0.0 to 4.0.1 (the Mailu image stays 2024.06.67).

Verification

  • abra recipe lint mailu --chaos passed all error rules.
  • Full !testme build #122 passed install, upgrade, backup, restore, and custom mail-flow checks. The restore test verifies the seeded mailbox returns, and the custom tier verifies the running service can use it.

The October 30 report's restore failure is resolved without weakening the test.

## Changes - Update the Redis sidecar from 8.10.2-alpine to 8.10.3-alpine. - Fix the existing SQLite restore gap: the backupbot post-hook verifies the restored snapshot and copies it into the live database through SQLite's backup API. This preserves the database inode seen by Mailu's open connections. - Bump recipe semver from 4.0.0 to 4.0.1 (the Mailu image stays 2024.06.67). ## Verification - `abra recipe lint mailu --chaos` passed all error rules. - Full `!testme` build [#122](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/122) passed install, upgrade, backup, restore, and custom mail-flow checks. The restore test verifies the seeded mailbox returns, and the custom tier verifies the running service can use it. The October 30 report's restore failure is resolved without weakening the test.
autonomic-bot added 1 commit 2026-10-16 03:16:38 +00:00
autonomic-bot requested review from trav 2026-10-16 03:16:38 +00:00
autonomic-bot requested review from notplants 2026-10-16 03:16:38 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-ci — mailu @ 69afb870 ✅ passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mailu` @ `69afb870` ✅ **passed** [![cc-ci result card](https://ci.autonomic.zone/runs/62/summary.png)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/62) [![level](https://ci.autonomic.zone/runs/62/badge.svg)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/62) [full logs](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/62) · [dashboard](https://ci.autonomic.zone/)
Author
Owner

Automated /recipe-upgrade check (2026-10-23): upstream main is 2024.06.66 (published 2026-10-22) and already pins all six ghcr.io/mailu/* services (plus redis:8.10.2-alpine and ldez/traefik-certs-dumper:v2.11.4). This PR's target (2024.06.64) is therefore superseded / older than main; it would conflict with (or regress past) the .66 bump already merged upstream. No new upgrade PR was opened because the recipe is up-to-date. Left open for you to close/supersede — nothing was merged, pushed, or closed.

Automated `/recipe-upgrade` check (2026-10-23): upstream `main` is **2024.06.66** (published 2026-10-22) and already pins all six `ghcr.io/mailu/*` services (plus `redis:8.10.2-alpine` and `ldez/traefik-certs-dumper:v2.11.4`). This PR's target (2024.06.64) is therefore **superseded / older than main**; it would conflict with (or regress past) the .66 bump already merged upstream. No new upgrade PR was opened because the recipe is up-to-date. Left open for you to close/supersede — nothing was merged, pushed, or closed.
autonomic-bot changed title from chore: upgrade mailu to 2024.06.64 to chore: upgrade redis to 8.10.3-alpine 2026-10-30 04:25:37 +00:00
autonomic-bot added 1 commit 2026-10-30 04:25:38 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-ci — mailu @ b018431c ❌ failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mailu` @ `b018431c` ❌ **failure** [![cc-ci result card](https://ci.autonomic.zone/runs/110/summary.png)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/110) [![level](https://ci.autonomic.zone/runs/110/badge.svg)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/110) [full logs](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/110) · [dashboard](https://ci.autonomic.zone/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-ci — mailu @ b018431c ❌ failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mailu` @ `b018431c` ❌ **failure** [![cc-ci result card](https://ci.autonomic.zone/runs/111/summary.png)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/111) [![level](https://ci.autonomic.zone/runs/111/badge.svg)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/111) [full logs](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/111) · [dashboard](https://ci.autonomic.zone/)
autonomic-bot changed title from chore: upgrade redis to 8.10.3-alpine to chore: upgrade redis to 8.10.3-alpine; add sqlite restore hook 2026-10-30 04:40:29 +00:00
autonomic-bot added 1 commit 2026-10-30 04:40:29 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-ci — mailu @ 5ad2ca65 ❌ failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mailu` @ `5ad2ca65` ❌ **failure** [![cc-ci result card](https://ci.autonomic.zone/runs/112/summary.png)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/112) [![level](https://ci.autonomic.zone/runs/112/badge.svg)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/112) [full logs](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/112) · [dashboard](https://ci.autonomic.zone/)
autonomic-bot changed title from chore: upgrade redis to 8.10.3-alpine; add sqlite restore hook to chore: upgrade redis to 8.10.3-alpine 2026-10-30 04:48:21 +00:00
autonomic-bot added 1 commit 2026-10-30 04:48:21 +00:00
Author
Owner

⚠️ !testme RED — restore tier — pre-existing upstream backup/restore defect (not this redis bump)

The redis 8.10.2-alpine → 8.10.3-alpine bump itself is correct and verified. lint, install,
upgrade, backup and custom are green; the restore tier is RED. This is not caused by the
redis bump
— it reproduces on the base tree and is a gap in upstream main's new backup support.

What fails

!testme runs on this PR (Drone build #110 and #111, recipe PR #9):

restore: tests.mailu.test_restore.test_restore_returns_mailbox
  AssertionError: seeded mailbox 'citest@…' not found in config-export after restore;
  the /data (sqlite) volume was not restored. users present: []

Root cause (pre-existing in upstream main)

Upstream commit 77659e7 "add backup support" (already in main at 4.0.0+2024.06.67) added:

  • a sqlite backup pre-hook (backup_sqlite.py → /data/backup/main.db),
  • backupbot.backup.volumes.mailu.path=backup (back up only that snapshot subdir),

but it shipped no backupbot.restore.post-hook. So abra app restore puts
/data/backup/main.db back, but the live /data/main.db is never replaced — the admin sqlite DB is
therefore not restored. The cc-ci restore test asserts the correct contract (data survives a
backup→restore), so this is a real recipe gap, not a stale assertion. The redis upgrade is
unrelated: redis is a single-node cache and the failure is entirely in the admin /data volume.

What I tried (and why it was reverted)

On a 3rd !testme run (build #112) I added the missing hooks (mirroring the mumble recipe):

backupbot.backup.post-hook: "rm -f /data/backup/main.db"
backupbot.restore.post-hook: "mv /data/backup/main.db /data/main.db"

Manually on a dev deploy this did restore the sqlite DB (created a user → backup → deleted it →
restore → user present again). But in CI it did not make the tier green: after the restore the
custom mail-flow test failed with User doesn't exist. The admin container keeps its SQLite
connection to the pre-restore inode; replacing main.db under a running admin process means the
service the imap/dovecot userdb queries still sees the old DB. A correct fix needs a service
restart (or stop-before-restore / reopen)
in addition to the hook — that is backup/restore design
work beyond a redis bump, so I reverted it. This PR is now exactly the verified redis change.

Operator options (no tests were modified)

  1. Preferred — fix the recipe upstream: add a backupbot.restore.post-hook that restores
    /data/backup/main.db → /data/main.db and ensures the admin service reopens it (e.g. restart
    the task after restore, as pg_backup.sh restore-style hooks do for the DB recipes). Then re-run
    !testme here.
  2. If you decide the new snapshot-only backup design is intentional and automatic restore is out of
    scope, the test contract would need to change — re-run /recipe-upgrade mailu --with-tests to open
    a cc-ci test PR. Note this would stop asserting that restored mail data survives, so option 1 is
    the safer one for a mail server.

Nothing was merged; the recipe PR is open for operator review. The unrelated open PRs (#3
add-backupbot-labels, and this one's earlier history) were left untouched.

## ⚠️ `!testme` RED — restore tier — pre-existing upstream backup/restore defect (not this redis bump) The redis `8.10.2-alpine → 8.10.3-alpine` bump itself is correct and verified. `lint`, `install`, `upgrade`, `backup` and `custom` are green; the **`restore` tier** is RED. This is **not caused by the redis bump** — it reproduces on the base tree and is a gap in upstream `main`'s new backup support. ### What fails `!testme` runs on this PR (Drone build #110 and #111, recipe PR #9): ``` restore: tests.mailu.test_restore.test_restore_returns_mailbox AssertionError: seeded mailbox 'citest@…' not found in config-export after restore; the /data (sqlite) volume was not restored. users present: [] ``` ### Root cause (pre-existing in upstream `main`) Upstream commit `77659e7` "add backup support" (already in `main` at `4.0.0+2024.06.67`) added: - a sqlite **backup** pre-hook (`backup_sqlite.py` → `/data/backup/main.db`), - `backupbot.backup.volumes.mailu.path=backup` (back up only that snapshot subdir), but it shipped **no `backupbot.restore.post-hook`**. So `abra app restore` puts `/data/backup/main.db` back, but the live `/data/main.db` is never replaced — the admin sqlite DB is therefore not restored. The cc-ci restore test asserts the correct contract (data survives a backup→restore), so this is a **real recipe gap**, not a stale assertion. The redis upgrade is unrelated: redis is a single-node cache and the failure is entirely in the admin `/data` volume. ### What I tried (and why it was reverted) On a 3rd `!testme` run (build #112) I added the missing hooks (mirroring the `mumble` recipe): ``` backupbot.backup.post-hook: "rm -f /data/backup/main.db" backupbot.restore.post-hook: "mv /data/backup/main.db /data/main.db" ``` Manually on a dev deploy this did restore the sqlite DB (created a user → backup → deleted it → restore → user present again). But in CI it did **not** make the tier green: after the restore the `custom` mail-flow test failed with `User doesn't exist`. The admin container keeps its SQLite connection to the pre-restore inode; replacing `main.db` under a running admin process means the service the imap/dovecot userdb queries still sees the old DB. A correct fix needs a **service restart (or stop-before-restore / reopen)** in addition to the hook — that is backup/restore design work beyond a redis bump, so I **reverted it**. This PR is now exactly the verified redis change. ### Operator options (no tests were modified) 1. **Preferred — fix the recipe upstream:** add a `backupbot.restore.post-hook` that restores `/data/backup/main.db → /data/main.db` **and** ensures the admin service reopens it (e.g. restart the task after restore, as `pg_backup.sh restore`-style hooks do for the DB recipes). Then re-run `!testme` here. 2. If you decide the new snapshot-only backup design is intentional and automatic restore is out of scope, the test contract would need to change — re-run `/recipe-upgrade mailu --with-tests` to open a cc-ci test PR. Note this would stop asserting that restored mail data survives, so option 1 is the safer one for a mail server. Nothing was merged; the recipe PR is open for operator review. The unrelated open PRs (#3 `add-backupbot-labels`, and this one's earlier history) were left untouched.
autonomic-bot added 1 commit 2026-11-02 18:20:05 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-ci — mailu @ d59ce5ff ✅ passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mailu` @ `d59ce5ff` ✅ **passed** [![cc-ci result card](https://ci.autonomic.zone/runs/122/summary.png)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/122) [![level](https://ci.autonomic.zone/runs/122/badge.svg)](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/122) [full logs](https://drone.ci.autonomic.zone/recipe-maintainers/cc-ci/122) · [dashboard](https://ci.autonomic.zone/)
Author
Owner

Upstreamed to git.coopcloud.tech/coop-cloud/mailu and released as 4.0.1+2024.06.67: https://git.coopcloud.tech/coop-cloud/mailu/src/tag/4.0.1+2024.06.67 — closing.

Upstreamed to git.coopcloud.tech/coop-cloud/mailu and released as `4.0.1+2024.06.67`: https://git.coopcloud.tech/coop-cloud/mailu/src/tag/4.0.1+2024.06.67 — closing.
autonomic-bot closed this pull request 2026-11-09 20:13:19 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: recipe-maintainers/mailu#9