Epic 6.3: Deployment Architecture - Config, Shutdown, Dockerfile#52
Merged
Deepfreezechill merged 3 commits intomainfrom Apr 7, 2026
Merged
Epic 6.3: Deployment Architecture - Config, Shutdown, Dockerfile#52Deepfreezechill merged 3 commits intomainfrom
Deepfreezechill merged 3 commits intomainfrom
Conversation
- DeployConfig: frozen dataclass, env-based with validation (port, transport, log level) - GracefulShutdownHandler: signal-aware, drains in-flight tasks, timeout, idempotent - Multi-stage Dockerfile: python:3.13-slim, non-root user, HEALTHCHECK, STOPSIGNAL - .dockerignore: excludes tests, frontend, secrets, build artifacts - 26 new tests (1,910 total passed) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🔒 Phase Gate Enforcement — 🚫 FAIL
Verdict: FAIL
|
- Expand .dockerignore: add docs/, showcase/, crypto patterns, caches - Add 13 new adversarial tests (39 total): port boundaries, boolean parsing, non-integer env, empty env, task exception during drain, auto-cancel during shutdown, zero hooks/tasks, timeout minimum, Dockerfile instruction checks, wiring verification for DeployConfig, /health route, shutdown handler - Verify config log_level normalization (lowercase → UPPER) - Verify shutdown timeout minimum (0 rejected, -1 rejected) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…s, HEALTHCHECK - Wire GracefulShutdownHandler into uvicorn lifecycle via serve_with_shutdown() with finally block guaranteeing shutdown runs after server.serve() - Move /health endpoint OUTSIDE BearerTokenMiddleware for K8s probe access - Set uvicorn timeout_graceful_shutdown to half of shutdown budget - Change Dockerfile OPENSPACE_SHUTDOWN_TIMEOUT from 30 to 8 (fits Docker 10s) - Replace HEALTHCHECK with real HTTP /health endpoint check (not false-positive import) - Add 2 new tests: /health-outside-auth, shutdown-after-uvicorn, Docker timeout alignment - 41 deployment tests, 1925 total passed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Deepfreezechill
pushed a commit
that referenced
this pull request
Apr 7, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Epic 6.3: Deployment Architecture
What
Add production deployment infrastructure: centralized config, graceful shutdown, Dockerfile.
New Files
Metrics