slack-migration-to-mattermost-phase-2-setup-and-import
Made by JeffDeploy and import Mattermost migration bundles. Use when validating handoff ZIPs, provisioning Mattermost, running mmctl import, configuring Nginx/WebSockets, or driving cutover.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
2Updates, enhancements, and release notes for this skill.
Updated: slack-migration phase 2, cutover gates fail when the import is missing data
The handoff-vs-import reconciliation recorded drift-detected but always exited 0, and the cutover and staging scripts only checked the exit code, so production cutover wrote success with 12 of 10,000 posts imported. It now exits 1 on any count difference, the smoke test fails on partial counts, and both sides count top-level posts the same way.
- Reconciliation exits non-zero on drift, so cutover stops instead of reporting success
- The smoke test fails on partial imports, not only empty ones
- Handoff and database counts use the same top-level-post basis
Checked on synthetic handoffs and a local Postgres.
- reconcile-handoff-vs-import.py. Exits 1 on any drift and lists each difference; the readiness summary shows it as a blocking error.
- run-import-smoke-tests.py. Fails when any observed count is below the handoff, not only when it is zero. Post and attachment counts use top-level posts (
RootId = ''), matching how the phase 1 handoff counts, so threaded workspaces no longer show false drift. Deactivated users and archived channels are counted.
Slack → Mattermost Phase 2: staging-first cutovers with written-down Go/No-Go gates
Phase 2 covers everything between the Phase 1 handoff bundle and everyone using the new Mattermost: provisioning an Ubuntu + PostgreSQL + Nginx host behind Cloudflare (optional R2 file storage, Tunnel for SSH), running mmctl bulk import with handoff-vs-import reconciliation, rehearsing the cutover in staging first, and a Go/No-Go gate that blocks cutover on failed checks and asks for a named rollback owner. Abort criteria are written down before you start.
- operate.sh runs each step as its own command: intake, render-config, edge, provision, deploy, verify-live, staging, restore, ready, cutover, and rollback
- Row-count reconciliation between handoff manifest and mmctl import
- Staging rehearsal is mandatory
- Go/No-Go readiness gate (./operate.sh ready) that blocks cutover on failed config, staging, or other checks, with the rollback owner named in config.env
- Stack: Ubuntu + PostgreSQL + Nginx with WebSocket upgrade, behind Cloudflare, with optional R2 file storage
- Written-down abort criteria: no improvising at 11pm on cutover night
Self-hosted Slack migrations often fail after extraction, somewhere between "the server's up" and "everyone's using it." This skill exists to make that middle part boring.
What Phase 2 covers
- Intake validation: the Phase 1 handoff bundle is checked against its sha256 in
handoff.json, and the validator confirms the import JSONL, thedata/directory, and every referenced manifest are present.