test(integration)+ci+docs: live OpenSearch/ClickHouse suites, CI service containers, STATUS.md (§56)
CI (SIAX Cloud) / integration (push) Failing after 22s
CI (SIAX Cloud) / security (push) Successful in 22s
Security Scan (SIAX Cloud) / security (push) Successful in 21s
CI (SIAX Cloud) / quality (push) Successful in 43s
CI (SIAX Cloud) / integration (pull_request) Failing after 3s
CI (SIAX Cloud) / security (pull_request) Successful in 17s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 16s
CI (SIAX Cloud) / quality (pull_request) Successful in 43s
CI (SIAX Cloud) / integration (push) Failing after 22s
CI (SIAX Cloud) / security (push) Successful in 22s
Security Scan (SIAX Cloud) / security (push) Successful in 21s
CI (SIAX Cloud) / quality (push) Successful in 43s
CI (SIAX Cloud) / integration (pull_request) Failing after 3s
CI (SIAX Cloud) / security (pull_request) Successful in 17s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 16s
CI (SIAX Cloud) / quality (pull_request) Successful in 43s
- tests/integration/: 10 tests against REAL OpenSearch 2.11 (tenant isolation, purpose/rights filters, generation rebuild/rollback, projection-disaster rebuild §68) + REAL ClickHouse 24.8 (tenant-isolated metric DSL, TTL schema, injection-surface refusals). Honest skip without env - and CI fails hard if the suites skip instead of running. - .gitea/workflows/ci.yml: new blocking 'integration' job with self-identifying service containers (st0re ci.yml's measured alias-collision discipline: run-unique cluster.name / credentials, getent-enumerated IP selection, no-match = hard fail). - STATUS.md: full 8-level Master-DoD classification per capability incl. the honest gaps blocking PRODUCTION_READY. - dependency-mode: NEXT_PHASE=phase-production-build is not a serving runtime (next build page-data collection must compile; guard re-arms at boot) - pinned by contract test. - docs/02-architecture.md: superseded the accurate-but-now-fixed 'every client runs against its mock' paragraph; .env.example: client URLs now actually read from env + new P0 backend vars. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
b46807da75
commit
c47e3b468e
@@ -27,8 +27,17 @@
|
||||
*/
|
||||
import { SiaxError } from "./errors";
|
||||
|
||||
/** True when this process is a production runtime. */
|
||||
/**
|
||||
* True when this process is a production runtime — i.e. it can SERVE
|
||||
* requests. `next build` runs page-data collection under NODE_ENV=production
|
||||
* while serving nothing; failing the BUILD for unset dependency URLs would
|
||||
* block the compile step, not protect any request path, so the Next build
|
||||
* phase (NEXT_PHASE=phase-production-build) is explicitly not a production
|
||||
* runtime. The guard re-arms the moment the built app boots (`next start`
|
||||
* clears NEXT_PHASE).
|
||||
*/
|
||||
export function isProductionRuntime(env: NodeJS.ProcessEnv = process.env): boolean {
|
||||
if (env.NEXT_PHASE === "phase-production-build") return false;
|
||||
return env.NODE_ENV === "production";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user