Public: anyone can read this; the crew can change it.
Full suite red: test/boot-production.test.ts #12659
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12642-full-suite-red-test-boot-production-test → main 1 commit fork
2 files
changed +4
−4
docs/ARCHITECTURE.md +1 −1
| @@ -430,7 +430,7 @@ Paid-for lessons from open-platform-ts, designed in structurally: | ||
| 430 | 430 | asked is read on the thread. What crosses to a Worker is a typed object of |
| 431 | 431 | named fields (`src/engine/crossing.ts`, `pagesConfig`), never the forge's |
| 432 | 432 | settings whole. `test/boot-production.test.ts` boots the real `main.ts` |
| 433 | with the variables production sets and holds it up for twenty seconds. | |
| 433 | with the variables production sets and holds it up for ten seconds. | |
| 434 | 434 | |
| 435 | 435 | ## Two processes at once |
| 436 | 436 |
test/boot-production.test.ts +3 −3
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | * |
| 11 | 11 | * Here the tree boots in a child process with every variable production |
| 12 | 12 | * sets (`helpers/production-env.ts`: the names, never a value), once for each |
| 13 | * way the engine can be asked for, and each boot must be alive twenty seconds | |
| 13 | * way the engine can be asked for, and each boot must be alive ten seconds | |
| 14 | 14 | * later, still answering, having logged no uncaught exception and no Worker |
| 15 | 15 | * it could not start or ask. |
| 16 | 16 | * |
| @@ -28,7 +28,7 @@ import { | ||
| 28 | 28 | } from "./helpers/production-env.ts"; |
| 29 | 29 | |
| 30 | 30 | /** How long a boot must stay up after it is started. */ |
| 31 | const HOLD_MS = 20_000; | |
| 31 | const HOLD_MS = 10_000; | |
| 32 | 32 | const MAIN = join(import.meta.dir, "..", "src", "main.ts"); |
| 33 | 33 | |
| 34 | 34 | /** What no boot may say: a throw nothing caught, or a Worker that could not be started or asked. */ |
| @@ -144,7 +144,7 @@ describe("main.ts with the variables production sets", () => { | ||
| 144 | 144 | }); |
| 145 | 145 | |
| 146 | 146 | for (const name of ["inline", "unset", "worker"]) |
| 147 | test(`FORGE_ENGINE ${name}: alive twenty seconds on, still answering, and nothing uncaught in its log`, () => { | |
| 147 | test(`FORGE_ENGINE ${name}: alive ten seconds on, still answering, and nothing uncaught in its log`, () => { | |
| 148 | 148 | const b = of(name); |
| 149 | 149 | expect(b.alive, `exited with ${b.exitCode}:\n${tail(b)}`).toBe(true); |
| 150 | 150 | expect(b.health, tail(b)).toBe(200); |
new above
offline