Repository navigation
Validate deployment ports and native database readiness - #6
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.