fix: deploy workflow clones wrong repo and runs swapoff #609

Merged
jmiller merged 2 commits from fix/606-607-wiki-api-bugs into main 2026-06-11 23:23:08 +00:00
Owner

Summary

Fixes two critical deploy pipeline issues that prevented new code from being deployed:

1. swapoff -a crashes MySQL

The deploy script ran sudo swapoff -a && sudo swapon -a to "clear swap" before building. This forced 1.5GB+ of swap contents into already-full RAM, triggering OOM kills that took down MySQL.

2. Wrong source repo

The deploy cloned MokoGitea (upstream fork) instead of MokoGitea-APP (our customized repo). The built image had different code and a different git describe tag (stable+167 vs our version), which caused s6 crash loops.

Changes

  • .mokogitea/workflows/deploy-mokogitea.yml: Remove swapoff, fix clone URL, add git remote set-url for existing server clones
  • CHANGELOG.md: Updated with all fixes from this session
  • Server remote already fixed manually
## Summary Fixes two critical deploy pipeline issues that prevented new code from being deployed: ### 1. `swapoff -a` crashes MySQL The deploy script ran `sudo swapoff -a && sudo swapon -a` to "clear swap" before building. This forced 1.5GB+ of swap contents into already-full RAM, triggering OOM kills that took down MySQL. ### 2. Wrong source repo The deploy cloned `MokoGitea` (upstream fork) instead of `MokoGitea-APP` (our customized repo). The built image had different code and a different git describe tag (`stable+167` vs our version), which caused s6 crash loops. ## Changes - `.mokogitea/workflows/deploy-mokogitea.yml`: Remove swapoff, fix clone URL, add `git remote set-url` for existing server clones - `CHANGELOG.md`: Updated with all fixes from this session - Server remote already fixed manually
jmiller added 2 commits 2026-06-11 23:14:40 +00:00
fix: remove swapoff from deploy workflow, update changelog and MCP metadata fields
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
a8b3f45522
- Remove `swapoff -a && swapon -a` from deploy-mokogitea.yml that caused
  MySQL crashes during deploys by forcing swap contents into already-full RAM
- Add element_name, display_name, description, license_name, language
  fields to MCP gitea_metadata_update tool
- Update CHANGELOG with all fixes from this session

Co-Authored-By: Moko Consulting <hello@mokoconsulting.tech>
fix: deploy workflow clones wrong repo and runs swapoff
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Branch Policy Check / Verify merge target (pull_request) Failing after 1s
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 7s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 22s
PR RC Release / Build RC Release (pull_request) Failing after 21s
Generic: Project CI / Lint & Validate (pull_request) Successful in 32s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 2m20s
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report Issues (pull_request) Has been cancelled
d66d96adaf
- Remove swapoff -a that crashes MySQL during deploys
- Fix source repo URL from MokoGitea to MokoGitea-APP
- Add git remote set-url to correct existing clones on server
- Update CHANGELOG with all session fixes

Co-Authored-By: Moko Consulting <hello@mokoconsulting.tech>
jmiller merged commit 553abbb9d0 into main 2026-06-11 23:23:08 +00:00
jmiller deleted branch fix/606-607-wiki-api-bugs 2026-06-11 23:23:08 +00:00
Sign in to join this conversation.