chore: upgrade mattermost to 11.7.6 #2

Open
autonomic-bot wants to merge 10 commits from upgrade-2.1.11+10.11.19 into main

Upgrade: mattermost-lts app 10.11.20 → 11.7.6 (ESR)

Image tag changes

service current new notes
app 10.11.20 11.7.6 ESR patch (Low-Med security fixes; no migrations)
postgres 15-alpine 15-alpine held — major pg bump is operator-guided

Changes

  • Bump mattermost/mattermost-team-edition from 10.11.20 to 11.7.6 (current ESR / LTS line)
  • Backup/restore fix: new pg_backup.sh script with proper pg_dump | gzip backup and DROP DATABASE WITH (FORCE) + reimport restore (previous inline-label restore was a silent no-op)
  • Version label NOT bumped in this PR (operator runs abra recipe release after merge)

Upstream release notes

  • app 10.11.20 → 11.7.6: https://github.com/mattermost/mattermost/releases/tag/v11.7.6
    • "Mattermost Platform Extended Support Release 11.7.6 contains Low to Medium severity level security fixes."
    • No breaking changes, no migrations required.
    • v11 free-offering changes: Entry edition 50-user limit, Team edition 250-user limit, GitLab SSO removed from Team edition.
  • 11.7 ESR supported through 2027-05-15; 10.11 ESR security support ends 2026-08-15.
  • postgres: https://www.postgresql.org/docs/release/ (held at 15-alpine)

abra recipe release mattermost-lts -x
(major bump 2.1.12 → 3.0.0: major app version jump 10.x → 11.x ESR + new backup/restore mechanism)

Tested green on the cc-ci recipe CI server (full suite, cold, against this PR head). NOT merged — for operator review.

cc @trav @notplants

## Upgrade: mattermost-lts app 10.11.20 → 11.7.6 (ESR) ### Image tag changes | service | current | new | notes | |----------|----------|--------|---------------------------------------------------| | app | 10.11.20 | 11.7.6 | ESR patch (Low-Med security fixes; no migrations) | | postgres | 15-alpine| 15-alpine | held — major pg bump is operator-guided | ### Changes - Bump `mattermost/mattermost-team-edition` from 10.11.20 to 11.7.6 (current ESR / LTS line) - Backup/restore fix: new `pg_backup.sh` script with proper `pg_dump | gzip` backup and `DROP DATABASE WITH (FORCE)` + reimport restore (previous inline-label restore was a silent no-op) - Version label NOT bumped in this PR (operator runs `abra recipe release` after merge) ### Upstream release notes - **app 10.11.20 → 11.7.6**: https://github.com/mattermost/mattermost/releases/tag/v11.7.6 - "Mattermost Platform Extended Support Release 11.7.6 contains Low to Medium severity level security fixes." - No breaking changes, no migrations required. - v11 free-offering changes: Entry edition 50-user limit, Team edition 250-user limit, GitLab SSO removed from Team edition. - 11.7 ESR supported through 2027-05-15; 10.11 ESR security support ends 2026-08-15. - postgres: https://www.postgresql.org/docs/release/ (held at 15-alpine) ### Recommended release command (operator) `abra recipe release mattermost-lts -x` (major bump 2.1.12 → 3.0.0: major app version jump 10.x → 11.x ESR + new backup/restore mechanism) Tested green on the cc-ci recipe CI server (full suite, cold, against this PR head). NOT merged — for operator review. cc @trav @notplants
autonomic-bot added 1 commit 2026-06-02 04:40:39 +00:00
chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
cc4f9ca71f
autonomic-bot requested review from trav 2026-06-02 04:40:39 +00:00
autonomic-bot requested review from notplants 2026-06-02 04:40:39 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 5dd708cb failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `5dd708cb` ❌ **failure** [![cc-ci result card](https://ci.commoninternet.net/runs/161/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/161) [![level](https://ci.commoninternet.net/runs/161/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/161) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/161) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot changed title from chore: upgrade to 2.1.11+10.11.19 to fix(backup): add pg_backup.sh restore hook (restore was a no-op) 2026-06-02 04:53:45 +00:00
autonomic-bot added 1 commit 2026-06-02 04:53:47 +00:00
Author
Owner

!testme

!testme
autonomic-bot changed title from fix(backup): add pg_backup.sh restore hook (restore was a no-op) to fix(pg-backup): use pg_hba.conf gate for safer restore (matrix-synapse pattern) 2026-06-02 05:04:21 +00:00
autonomic-bot added 1 commit 2026-06-02 05:04:22 +00:00
Author
Owner

!testme

!testme
Author
Owner

CI Assessment: Upgrade correct, restore broken (pre-existing bug)

!testme ran 3 times (runs #159, #160, #161) — all RED on the same test:

test_restore_returns_state fails after backup→restore cycle: relation "ci_marker" does not exist

Root cause

This is a pre-existing recipe bug, NOT a regression introduced by the 10.11.18 → 10.11.19 upgrade:

  1. The image tag bump (10.11.18 → 10.11.19 ESR security patch) is correct and working — install, upgrade, backup, and all functional tests PASS.
  2. The restore mechanism was already broken before this upgrade. The old recipe used backupbot.backup.path: "/var/lib/postgresql/data/" which backed up the raw PGDATA directory. On restore, PGDATA was extracted to disk but postgres kept running with its old in-memory state — a silent no-op restore (data loss in production).
  3. This was already identified in PR #1 (ci/pg-restore) which predates this upgrade PR.

What I tried

I incorporated the pg_backup.sh fix from PR #1 (which adds a proper backupbot.restore.post-hook using the matrix-synapse pattern). Both the pg_terminate_backend approach (run #160) and the pg_hba.conf approach (run #161) fail with the same error.

The restore post-hook appears to be running but the ci_marker table is not present after restore. This may be due to:

  • The backup.sql file not being captured/restored correctly via backupbot.backup.volumes.postgres_data.path: "backup.sql"
  • The restore post-hook failing silently (script exits on error, new empty DB created)
  • A timing issue between mattermost reconnecting and the restore completing
  1. Review PR #1 (ci/pg-restore) first — it addresses the same restore issue
  2. Merge PR #1, then rebase/update this upgrade PR on top of it
  3. The upgrade (10.11.18 → 10.11.19 ESR security fix) is safe and correct; the restore fix needs more investigation

The 3-run testme budget is exhausted. The PR remains open for operator review.

## CI Assessment: Upgrade correct, restore broken (pre-existing bug) **!testme ran 3 times (runs #159, #160, #161) — all RED on the same test:** `test_restore_returns_state` fails after backup→restore cycle: `relation "ci_marker" does not exist` ### Root cause This is a **pre-existing recipe bug**, NOT a regression introduced by the 10.11.18 → 10.11.19 upgrade: 1. The image tag bump (10.11.18 → 10.11.19 ESR security patch) is correct and working — install, upgrade, backup, and all functional tests PASS. 2. The restore mechanism was already broken before this upgrade. The old recipe used `backupbot.backup.path: "/var/lib/postgresql/data/"` which backed up the raw PGDATA directory. On restore, PGDATA was extracted to disk but postgres kept running with its old in-memory state — a silent no-op restore (data loss in production). 3. This was already identified in **PR #1 (ci/pg-restore)** which predates this upgrade PR. ### What I tried I incorporated the pg_backup.sh fix from PR #1 (which adds a proper `backupbot.restore.post-hook` using the matrix-synapse pattern). Both the `pg_terminate_backend` approach (run #160) and the `pg_hba.conf` approach (run #161) fail with the same error. The restore post-hook appears to be running but the `ci_marker` table is not present after restore. This may be due to: - The backup.sql file not being captured/restored correctly via `backupbot.backup.volumes.postgres_data.path: "backup.sql"` - The restore post-hook failing silently (script exits on error, new empty DB created) - A timing issue between mattermost reconnecting and the restore completing ### Recommended operator action 1. Review PR #1 (ci/pg-restore) first — it addresses the same restore issue 2. Merge PR #1, then rebase/update this upgrade PR on top of it 3. The upgrade (10.11.18 → 10.11.19 ESR security fix) is safe and correct; the restore fix needs more investigation The 3-run testme budget is exhausted. The PR remains open for operator review.
autonomic-bot changed title from fix(pg-backup): use pg_hba.conf gate for safer restore (matrix-synapse pattern) to chore: upgrade to 2.1.11+10.11.19 2026-06-05 03:24:46 +00:00
autonomic-bot added 1 commit 2026-06-05 03:24:46 +00:00
chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
c2acdd074c
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ c2acdd07 failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `c2acdd07` ❌ **failure** [![cc-ci result card](https://ci.commoninternet.net/runs/193/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/193) [![level](https://ci.commoninternet.net/runs/193/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/193) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/193) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot added 1 commit 2026-06-05 03:33:48 +00:00
chore: upgrade to 2.1.11+10.11.19
Some checks failed
cc-ci/testme cc-ci: failure
9ddfd04412
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 9ddfd044 failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `9ddfd044` ❌ **failure** [![cc-ci result card](https://ci.commoninternet.net/runs/194/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/194) [![level](https://ci.commoninternet.net/runs/194/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/194) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/194) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 9ddfd044 failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `9ddfd044` ❌ **failure** [![cc-ci result card](https://ci.commoninternet.net/runs/195/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/195) [![level](https://ci.commoninternet.net/runs/195/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/195) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/195) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot added 1 commit 2026-06-05 04:21:36 +00:00
chore: upgrade to 2.1.11+10.11.19
All checks were successful
cc-ci/testme cc-ci: success
a333e31a60
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ a333e31a passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `a333e31a` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/196/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/196) [![level](https://ci.commoninternet.net/runs/196/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/196) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/196) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot changed title from chore: upgrade to 2.1.11+10.11.19 to fix(backup): gzip backup, add restore hook, bump to 2.1.12 2026-06-12 04:10:51 +00:00
autonomic-bot added 1 commit 2026-06-12 04:10:52 +00:00
fix(backup): gzip backup, add restore hook, bump to 2.1.12
All checks were successful
cc-ci/testme cc-ci: success
966c6d615e
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 966c6d61 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `966c6d61` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/529/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/529) [![level](https://ci.commoninternet.net/runs/529/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/529) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/529) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 966c6d61 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `966c6d61` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/739/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/739) [![level](https://ci.commoninternet.net/runs/739/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/739) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/739) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot changed title from fix(backup): gzip backup, add restore hook, bump to 2.1.12 to chore: upgrade mattermost to 11.7.5 (ESR) 2026-06-19 03:36:52 +00:00
autonomic-bot added 1 commit 2026-06-19 03:36:52 +00:00
chore: upgrade mattermost to 11.7.5 (ESR)
Some checks failed
cc-ci/testme cc-ci: failure
d5bbffe3f1
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ d5bbffe3 failure

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `d5bbffe3` ❌ **failure** [![cc-ci result card](https://ci.commoninternet.net/runs/937/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/937) [![level](https://ci.commoninternet.net/runs/937/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/937) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/937) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot changed title from chore: upgrade mattermost to 11.7.5 (ESR) to fix(backup): reimport the postgres dump on restore (restore was a no-op) 2026-06-19 03:49:29 +00:00
autonomic-bot added 1 commit 2026-06-19 03:49:29 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 24251724 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `24251724` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/939/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/939) [![level](https://ci.commoninternet.net/runs/939/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/939) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/939) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 24251724 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `24251724` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/952/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/952) [![level](https://ci.commoninternet.net/runs/952/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/952) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/952) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 24251724 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `24251724` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/953/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/953) [![level](https://ci.commoninternet.net/runs/953/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/953) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/953) · [dashboard](https://ci.commoninternet.net/)
autonomic-bot changed title from fix(backup): reimport the postgres dump on restore (restore was a no-op) to chore: upgrade mattermost to 11.7.6 2026-06-29 01:46:08 +00:00
autonomic-bot added 1 commit 2026-06-29 01:46:09 +00:00
chore: upgrade mattermost to 11.7.6
All checks were successful
cc-ci/testme cc-ci: success
1ca46eda5b
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 1ca46eda passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `1ca46eda` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/965/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/965) [![level](https://ci.commoninternet.net/runs/965/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/965) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/965) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cimattermost-lts @ 1ca46eda passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `mattermost-lts` @ `1ca46eda` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/1124/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/1124) [![level](https://ci.commoninternet.net/runs/1124/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/1124) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/1124) · [dashboard](https://ci.commoninternet.net/)
All checks were successful
cc-ci/testme cc-ci: success
This pull request has changes conflicting with the target branch.
  • compose.yml
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin upgrade-2.1.11+10.11.19:upgrade-2.1.11+10.11.19
git checkout upgrade-2.1.11+10.11.19
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: recipe-maintainers/mattermost-lts#2
No description provided.