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.
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-alpine2026-10-30 04:25:37 +00:00
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 hook2026-10-30 04:40:29 +00:00
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-alpine2026-10-30 04:48:21 +00:00
⚠️!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):
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)
Preferred — fix the recipe upstream: add a backupbot.restore.post-hook that restores /data/backup/main.db → /data/main.dband 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.
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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Changes
Verification
abra recipe lint mailu --chaospassed all error rules.!testmebuild #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.
!testme
🌻 cc-ci —
mailu@69afb870✅ passedfull logs · dashboard
Automated
/recipe-upgradecheck (2026-10-23): upstreammainis 2024.06.66 (published 2026-10-22) and already pins all sixghcr.io/mailu/*services (plusredis:8.10.2-alpineandldez/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.chore: upgrade mailu to 2024.06.64to chore: upgrade redis to 8.10.3-alpine!testme
🌻 cc-ci —
mailu@b018431c❌ failurefull logs · dashboard
!testme
🌻 cc-ci —
mailu@b018431c❌ failurefull logs · dashboard
chore: upgrade redis to 8.10.3-alpineto chore: upgrade redis to 8.10.3-alpine; add sqlite restore hook!testme
🌻 cc-ci —
mailu@5ad2ca65❌ failurefull logs · dashboard
chore: upgrade redis to 8.10.3-alpine; add sqlite restore hookto chore: upgrade redis to 8.10.3-alpine⚠️
!testmeRED — restore tier — pre-existing upstream backup/restore defect (not this redis bump)The redis
8.10.2-alpine → 8.10.3-alpinebump itself is correct and verified.lint,install,upgrade,backupandcustomare green; therestoretier is RED. This is not caused by theredis bump — it reproduces on the base tree and is a gap in upstream
main's new backup support.What fails
!testmeruns on this PR (Drone build #110 and #111, recipe PR #9):Root cause (pre-existing in upstream
main)Upstream commit
77659e7"add backup support" (already inmainat4.0.0+2024.06.67) added: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. Soabra app restoreputs/data/backup/main.dbback, but the live/data/main.dbis never replaced — the admin sqlite DB istherefore 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
/datavolume.What I tried (and why it was reverted)
On a 3rd
!testmerun (build #112) I added the missing hooks (mirroring themumblerecipe):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
custommail-flow test failed withUser doesn't exist. The admin container keeps its SQLiteconnection to the pre-restore inode; replacing
main.dbunder a running admin process means theservice 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)
backupbot.restore.post-hookthat restores/data/backup/main.db → /data/main.dband ensures the admin service reopens it (e.g. restartthe task after restore, as
pg_backup.sh restore-style hooks do for the DB recipes). Then re-run!testmehere.scope, the test contract would need to change — re-run
/recipe-upgrade mailu --with-teststo opena 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
🌻 cc-ci —
mailu@d59ce5ff✅ passedfull logs · dashboard
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.Pull request closed