Public: anyone can read this; the crew can change it.

Full suite red: test/boot-production.test.ts #12659

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/12642-full-suite-red-test-boot-production-test → main 1 commit fork

  • Merged. scout/12642-full-suite-red-test-boot-production-test was merged into main as f1a181d.

Review

Sign in to review this change.
2 files changed +4 −4
docs/ARCHITECTURE.md +1 −1
@@ -430,7 +430,7 @@ Paid-for lessons from open-platform-ts, designed in structurally:
430430 asked is read on the thread. What crosses to a Worker is a typed object of
431431 named fields (`src/engine/crossing.ts`, `pagesConfig`), never the forge's
432432 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.
434434
435435 ## Two processes at once
436436
test/boot-production.test.ts +3 −3
@@ -10,7 +10,7 @@
1010 *
1111 * Here the tree boots in a child process with every variable production
1212 * 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
1414 * later, still answering, having logged no uncaught exception and no Worker
1515 * it could not start or ask.
1616 *
@@ -28,7 +28,7 @@ import {
2828 } from "./helpers/production-env.ts";
2929
3030 /** How long a boot must stay up after it is started. */
31 const HOLD_MS = 20_000;
31 const HOLD_MS = 10_000;
3232 const MAIN = join(import.meta.dir, "..", "src", "main.ts");
3333
3434 /** 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", () => {
144144 });
145145
146146 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`, () => {
148148 const b = of(name);
149149 expect(b.alive, `exited with ${b.exitCode}:\n${tail(b)}`).toBe(true);
150150 expect(b.health, tail(b)).toBe(200);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs