Skip to content

Validate deployment ports and native database readiness - #6

Merged
shellharbor merged 8 commits into
mainfrom
codex/deployment-preflight-readiness
Oct 28, 2026
Merged

shellharbor merged 8 commits into
mainfrom
codex/deployment-preflight-readiness

Conversation

@shellharbor

@shellharbor shellharbor commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Deployment could accept invalid, duplicate or occupied ports and fail after creating resources. Native DB access assumed a fixed bridge IP, and startup used a fixed delay and installer help text.

Validate ports before project/DB changes; make native routing configurable; probe reachability/authentication from PHP; wait for actual FPM/nginx/Redis health; and start cron after install/restore. Preserve archive compatibility and DB ownership safeguards. Apply public-root configuration without replacing nginx's mounted file, reload it, and route removed PHP scripts through Moodle while preserving slash arguments. Install declared production dependencies from Moodle's lockfile using a pinned, verified Composer PHAR, then verify API dependency autoloading. See docs/PREFLIGHT.md and ADR-0005.

Validation: 108 Linux regressions passed (120 discovered, 12 opt-in skipped), four generated Compose variants and six proxy states passed, both real PostgreSQL/MySQL host-gateway probes passed, and all six HTTP/HTTPS component scenarios passed, including clean GitHub component integration. ShellCheck/Ruff/YAML/actionlint/zizmor/docs checks passed. Added port/native/readiness, dependency refusal/checksum, inode/protocol, single-file-mount reload, PHP self-DNS and retired PHP-path regressions.

Full E2E passed 4/4 at implementation ff1fbf2: https://github.com/shellharbor/mooship/actions/runs/38787890321 (Moodle 4.5/5.3 x PostgreSQL/MySQL). It verifies login, Redis sessions, cron, native-routing PHP probes, SMTP to Mailpit, backups/retention, systemd timers, doctor, and the 5.3 router/API/shims. A real fresh local 5.3 install also returns valid OpenAPI JSON/HTTP 200 with the actual dependency helper. These synthetic HTTP runners do not verify production DNS/TLS or host-installed DB administration. Dependency Review separately fails because repository Dependency Graph is disabled; all 20 other PR checks passed on this implementation.

@shellharbor
shellharbor merged commit d864b7f into main Oct 28, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants