Skip to content

Commit e2f3094

Browse files
fix(cli): a config that fails to load is no longer reported as "Compile failed" (#35463)
Fixes #32439 repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`os dev` / `os start` / `os serve --dev` / `os environments bind --build` 在 `os compile` 子进程失败时的收尾行,以及 `os dev` 监听重编译的失败行,不再说 "Compile failed",改为 "objectstack.config did not load or compile — the reason is printed above; fix it before …"。 - 为什么改:配置在加载时被拒(例如许可证或 KMS 拒绝启动)也走这一行,运维人员读到 "Compile failed" 会去找代码错误;按裁决 D 只改为中性措辞,不做分类。 - 风险与回滚:只改文案,不改退出码、错误码和子进程输出;若有脚本匹配旧文案 "Compile failed" 会不再命中;仓内唯一一处(sql-perf bench)已在本 PR 改为匹配新文案。回滚即 revert 本 PR。 - 先看:`packages/cli/src/commands/dev.ts`(启动编译与监听重编译两处)、`packages/cli/src/commands/compile-child-failure-line.pin.test.ts`、`packages/cli/src/commands/serve.ts` 的 dev boot 一行。 - 两分钟验证:`pnpm --filter @objectstack/cli exec vitest run --project unit src/commands/compile-child-failure-line.pin.test.ts src/commands/dev-watch-compile-refusal.pin.test.ts`,预期 14 个测试全部通过。 - 需要你做的:无,席位落地。 ## What changes When the `os compile` child exits non-zero, the parent sees only the exit status. A syntax error in the config, a refusal thrown while it loads, and a refusal that prints and calls `process.exit(1)` all reach the same branch. The closing line there said `Compile failed — fix errors above …`, which sent an operator whose boot was refused at config load looking for a code error. Ruling-ref 6998194814, letter D (verbatim): "D. Neutral wording, no detection. The closing line printed when the `os compile` child exits non-zero stops asserting a code error. It says the config did not load or compile and that the reason is printed above." | Site | Before | After | |---|---|---| | `dev.ts` boot compile | `Compile failed — fix errors above before starting dev server` | `objectstack.config did not load or compile — the reason is printed above; fix it before starting dev server` | | `start.ts` | `… before starting the server` (+ `--artifact` hint) | same phrase, `fix it before starting the server`; hint unchanged | | `serve.ts` dev boot | `✗ Compile failed — fix errors above before starting the dev server.` | `✗ RELATIVE_CONFIG did not load or compile — the reason is printed above; fix it before starting the dev server.` (the config path this boot compiled) | | `environments/bind.ts` | `… before binding` | same phrase, `fix it before binding` | | `dev.ts` watch recompile | `✗ compile failed (Nms)` | `✗ objectstack.config did not load or compile (Nms)`, compile output after it as before | The watch recompile line is a fifth site the ruling's list did not name. It is printed on the same condition (the child exits non-zero) and made the same "compile failed" claim, so it is covered as the same closing line. It says nothing about "above", because its relayed output comes after it. `objectstack.config` names the file family on purpose. `os compile` with no positional auto-detects `objectstack.config.{ts,js,mjs}`, so naming `.ts` would be false for the other two. `serve.ts` knows the actual path and prints it. The one in-repo consumer that matched the old text, the boot-log check in `packages/qa/dogfood/bench/sql-perf/bench.mjs` (~line 194), now matches `did not load or compile` and keeps its own `fixture compile failed` message. The area granted this as a file-surface addendum. Not changed: exit statuses, error codes, the child's own output, and cloud. Per the ruling, a classifying fix (a new `os compile` exit status, a typed refusal code, cloud refusals that throw instead of exit) is out of scope here. ## Tests - New `src/commands/compile-child-failure-line.pin.test.ts`: a source pin over the four boot sites, for the reason `child-env-source-loader.pin.test.ts` gives (driving these sites means spawning the built CLI). For each site it checks that exactly one code line carries the neutral phrase, that the line carries that site's tail, that it sits in a `status !== 0` branch, and that it says neither "compile error" nor "refused". For each file it checks that no code line says "compile failed". - `dev-watch-compile-refusal.pin.test.ts` (the existing harness that drives the real `startWatchRecompile`) gains a top-level describe. Two fixtures exit 2 and 1, and for both the head line must say "objectstack.config did not load or compile" and must say none of "compile error", "refused", "compile failed". The file also gains 11 factory `vi.mock`s for dynamic loads that `check:test-source-alias`'s source reach finds through `dev.ts`, which the watch loop never calls (that gate judges an edited test file). - `child-env-source-loader.pin.test.ts`: the quoted transcript in the comment now shows the new line. Ablation (committed fix first, `scripts/ablation-replace.mjs`, anchor counts and blob hashes verified on disk, restore checked with `git diff HEAD` empty): 1. `dev.ts` watch line set back to `✗ compile failed (${dt}ms)`: 3 tests fail (both new watch cases, plus the source pin's dev.ts "no code line still says compile failed"), and 11 pass. 2. `start.ts` line set back to the old literal: 2 tests fail (start.ts neutral-line and start.ts stale-line), and 6 pass. These are vitest relative imports of `src/`, so no `dist/` is involved. ## Acceptance notes - `packages/qa/dogfood/bench/sql-perf/bench.mjs` (~line 194) matched `text.includes('Compile failed')`, and this PR would have made that match dead. It was changed in this PR to the new phrase under the granted file-surface addendum (commit `c041c7fe`). The bench's own error message is unchanged. - `docs/qa/platform-checklist/areas/cli.json` items[0].variants[6] quoted the old line. It now quotes the new dev.ts closing line under the granted file-surface addendum (commit `392fd9a2`); nothing else in that file changed. - `CHANGELOG.md` entries quoting the old text are release-owned and were not edited. ## Verification Readings below are on head `a45eef1c` unless marked otherwise. Head is now `c041c7fe`, which adds only the bench literal; its own readings are in the last block. <details><summary>Unit tests and typecheck</summary> - `pnpm --filter @objectstack/cli exec vitest run --project unit` over the three pin files: Test Files 3 passed (3), Tests 18 passed (18). Lock VERDICT command-exit 0. - `pnpm --filter @objectstack/cli typecheck`: VERDICT command-exit 0. `check:test-typecheck: OK`, with the debt held at 3 files, 28 errors and 6 pinned signatures. - Full CLI unit layer, on `efabd6ff`, which differs from head only in the watch harness's added `vi.mock` lines: Test Files 428 passed and 2 failed (430), Tests 6121 passed and 29 skipped. The 2 failures were suite-level throws: `packages/cli is not built (./dist/index.js is absent)`. After `pnpm --filter @objectstack/cli build`, those two files (`test/published-subpath-console.pin.test.ts`, `test/published-subpath-hook-body.pin.test.ts`) pass 2/2, 29/29 tests, VERDICT command-exit 0. - The `integration` layer was not run locally and is left to CI. The diff touches no integration file, no `bin/` and no spawn helper. </details> <details><summary>Derived gate families (dispatch-gates --commands, 73)</summary> - Reconciliation: `dispatch-gates --ran` reports 73 derived, 70 run, 3 NOT-MEASURED, 0 UNRUN, and every line carries its exit code. - 70 families exited 0. `check:test-source-alias` first went red on the edited watch harness, because its source reach finds 11 dynamic loads through `dev.ts`. Commit `a45eef1c` answers each with a factory mock, and the gate now exits 0. - NOT MEASURED: `check-plugin-teardown-shape --self-test` exited 3 (shallow clone; its pinned fixture commit is unreachable). `check:dual-build-cjs-loads` exited 3 (needs a full `pnpm build`). `check:i18n-coverage` exited 3 (COULD NOT MEASURE: 1 of 14 configs failed to lint, unrelated to this diff). CI's Lint and Repo Gates job runs all three. - `overlap-check`: VERDICT clean exit 0 against `origin/main` `9fea3168`, with 0 PR heads sharing a file. - `check:nul-bytes`: exit 0. `check:cli-command-ids`: exit 0 (no new segment opens with "os "). </details> <details><summary>Head c041c7f: the bench path</summary> - `dispatch-gates --commands packages/qa/dogfood/bench/sql-perf/bench.mjs` derives 46 families. The `--ran` reconciliation reports 46 derived, 44 run, 2 NOT-MEASURED, 0 UNRUN, all with exit codes. The 44 exited 0, including `check:nul-bytes`, `check:doc-authoring`, `check:issue-citations` and the spec source audits `check:liveness`, `check:empty-state`, `check:strictness-ledger` and `check:variant-docs`. NOT MEASURED, each exit 3: `check-plugin-teardown-shape --self-test` (shallow clone) and `check:dual-build-cjs-loads` (needs a full build). CI runs both. - The two pin files on `c041c7fe`: Test Files 2 passed (2), Tests 14 passed (14), lock VERDICT command-exit 0. - `overlap-check`: VERDICT clean exit 0, with 0 PR heads. </details> <details><summary>Head 392fd9a: merged origin/main, plus the checklist quote</summary> - `git merge --no-edit origin/main` (`609b6751`) gave merge commit `d3e973ed` with no conflicts and nothing pending regeneration. The PR's delta against main is still exactly its 10 files. - Gates derived for `docs/qa/platform-checklist/areas/cli.json`: 17 in total, 16 exit 0. `pnpm check:platform-checklist` exits 1 with one problem: `platform-core.json · platform-core.seed-mode-matrix: VARIANTS STALE — SeedMode … now has 0 members`. It was measured identically on a pristine `origin/main` `609b6751` (exit 1, same single problem), so it is not from this diff. `cli.json` draws no finding. - After the merge, per AGENTS.md §10, since the incoming commits moved `packages/spec` and `packages/cli`: `@objectstack/spec check:generated` passed 13 of 14 gates. Its `check:test-typecheck` crashed with "tsc failed without diagnostics" when run without the heap flag; run alone under the lock with `--max-old-space-size=4096` it exits 0 (52 files / 240 errors / 131 signatures held). - `@objectstack/cli typecheck` and build: VERDICT command-exit 0. - Full CLI unit layer (which includes both pin files): Test Files 431 passed (431), Tests 6156 passed (6156), VERDICT command-exit 0. - `overlap-check`: VERDICT clean exit 0 against `origin/main` `6f36818f`, 0 PR heads. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgTyMahdAdhXSzgy2nt)_ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTyMahdAdhXSzgy2nt --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 819c067 commit e2f3094

10 files changed

Lines changed: 141 additions & 8 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
fix(cli): a config that fails to load is no longer reported as "Compile failed"
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When the `os compile` child that `os dev`, `os start`, `os serve --dev` and `os environments bind --build` run exits non-zero, the closing line said `Compile failed — fix errors above …`. The parent sees only the child's exit status, so the same line followed a refusal raised while `objectstack.config.ts` loads (for example a licence or key-management refusal), and an operator went looking for a code error.
11+
12+
The line now says what is true of every way the child fails, a syntax error, a refusal thrown at load or a refusal that prints and exits: `objectstack.config did not load or compile — the reason is printed above; fix it before …`, with each command's own tail (`starting dev server`, `starting the server` with the `--artifact` hint, `starting the dev server.`, `binding`). The `os dev` watch recompile's failure line reads `✗ objectstack.config did not load or compile (Nms)` in place of `✗ compile failed (Nms)`, with the compile output after it as before. Nothing classifies the failure: exit statuses, error codes and the text the child prints are unchanged.
13+
14+
A script that matched `Compile failed` in this output should match `did not load or compile`.

‎docs/qa/platform-checklist/areas/cli.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"OS_DATABASE_URL / DATABASE_URL / TURSO_DATABASE_URL env (env wins over the default)",
144144
"-d :memory: (SQLite's own in-memory database — the replacement for the retired in-memory engine; nothing persists across restarts)",
145145
"--database-driver memory / OS_DATABASE_DRIVER=memory|mingo|in-memory / -d memory:// or mingo:// → REFUSED (the retired in-memory engine; see the negative for where each is refused and what it names)",
146-
"config-declared default datasource (the project config's default home wins over the unified default) — authored as a NAMED datasource plus a datasourceMapping rule { default: true, datasource: NAME } (readConfigDeclaredDefault); a datasource literally named `default` is refused by defineStack as reserved for the host's primary, and a mapping rule naming 'default' is declined, so neither can stand for this variant. The scratch stack's object must declare sharingModel (e.g. 'private'): without one the boot's compile refuses the stack on the error rule security-owd-unset (packages/lint/src/validate-security-posture.ts#SECURITY_OWD_UNSET) and `os dev` exits 1 with 'Compile failed — fix errors above before starting dev server' (packages/cli/src/commands/dev.ts)",
146+
"config-declared default datasource (the project config's default home wins over the unified default) — authored as a NAMED datasource plus a datasourceMapping rule { default: true, datasource: NAME } (readConfigDeclaredDefault); a datasource literally named `default` is refused by defineStack as reserved for the host's primary, and a mapping rule naming 'default' is declined, so neither can stand for this variant. The scratch stack's object must declare sharingModel (e.g. 'private'): without one the boot's compile refuses the stack on the error rule security-owd-unset (packages/lint/src/validate-security-posture.ts#SECURITY_OWD_UNSET) and `os dev` exits 1 with 'objectstack.config did not load or compile — the reason is printed above; fix it before starting dev server' (packages/cli/src/commands/dev.ts)",
147147
"legacy compat-read: an existing dev.db / standalone.db when no objectstack.db exists (resolved WITH one loud notice line; probe order objectstack.db → dev.db → standalone.db)"
148148
],
149149
"traps": ["stale-dist", "stale-console-bundle", "shared-browser-tab"],

‎packages/cli/src/commands/child-env-source-loader.pin.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Cannot find module './registry'
2020
* Require stack:
2121
* - packages/formula/src/index.ts
22-
* ✗ Compile failed — fix errors above before starting dev server
22+
* ✗ objectstack.config did not load or compile — the reason is printed above; fix it before starting dev server
2323
*
2424
* A **type-resolution directive leaking into runtime resolution**. Measured on
2525
* the three example apps, the failures map 1:1 onto each app's `paths` entries:
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* Pin: **the line a command prints when its `os compile` child exits non-zero
5+
* says the config did not load or compile, and that the reason is printed
6+
* above — never that the failure was a code error, never that it was a
7+
* refusal** (ruling record 6998194814, letter D).
8+
*
9+
* The parent sees only the child's exit status. A syntax error in the config, a
10+
* refusal thrown while it loads and a refusal that prints and calls
11+
* `process.exit(1)` all reach the same branch, so the one line printed there must
12+
* be true of each; the reason itself is on screen already, from the child. The
13+
* old line, "Compile failed — fix errors above", sent an operator whose boot was
14+
* refused at config load looking for a code error.
15+
*
16+
* Asserted over the command sources, for the reason `child-env-source-loader.pin.test.ts`
17+
* gives: driving these boot sites means spawning the built CLI, which this suite
18+
* cannot rely on and which is its dominant cost. The watch recompile's line is
19+
* driven for real in `dev-watch-compile-refusal.pin.test.ts`.
20+
*
21+
* Each site keeps its own tail. Per site the scan asserts: exactly one code line
22+
* carries the neutral phrase; it carries the site's tail; it sits in a
23+
* `status !== 0` branch (within the lines above it); and it says neither
24+
* "compile error" nor "refused". Per file: no code line says "compile failed".
25+
*/
26+
27+
import { describe, it, expect } from 'vitest';
28+
import { readFileSync } from 'node:fs';
29+
import { dirname, resolve } from 'node:path';
30+
import { fileURLToPath } from 'node:url';
31+
32+
const HERE = dirname(fileURLToPath(import.meta.url));
33+
34+
const PHRASE = 'did not load or compile — the reason is printed above;';
35+
36+
const SITES = [
37+
{ file: 'dev.ts', tail: 'fix it before starting dev server' },
38+
{ file: 'start.ts', tail: 'fix it before starting the server' },
39+
{ file: 'serve.ts', tail: 'fix it before starting the dev server.' },
40+
{ file: 'environments/bind.ts', tail: 'fix it before binding' },
41+
] as const;
42+
43+
const isComment = (line: string) => /^\s*(\/\/|\/?\*)/.test(line);
44+
45+
function codeLines(file: string): { text: string; index: number }[] {
46+
return readFileSync(resolve(HERE, file), 'utf8')
47+
.split('\n')
48+
.map((text, index) => ({ text, index }))
49+
.filter(({ text }) => !isComment(text));
50+
}
51+
52+
describe('os compile child failure line: neutral at every site (ruling record 6998194814)', () => {
53+
for (const { file, tail } of SITES) {
54+
it(`${file}: one neutral line, its own tail, in the status !== 0 branch`, () => {
55+
const lines = codeLines(file);
56+
const hits = lines.filter(({ text }) => text.includes(PHRASE));
57+
expect(hits.map((h) => h.text.trim()), file).toHaveLength(1);
58+
const [hit] = hits;
59+
expect(hit.text, file).toContain(tail);
60+
expect(hit.text, file).not.toMatch(/compile error|refused/i);
61+
62+
const above = lines.filter(({ index }) => index < hit.index && index >= hit.index - 8);
63+
expect(above.some(({ text }) => /\.status !== 0\b/.test(text)), `${file}: not in a status !== 0 branch`).toBe(true);
64+
});
65+
66+
it(`${file}: no code line still says "compile failed"`, () => {
67+
const stale = codeLines(file).filter(({ text }) => /\bcompile failed\b/i.test(text));
68+
expect(stale.map((s) => `${s.index + 1}: ${s.text.trim()}`), file).toEqual([]);
69+
});
70+
}
71+
});

‎packages/cli/src/commands/dev-watch-compile-refusal.pin.test.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ vi.mock('chokidar', () => ({
7676
// not for a server boot path it never reaches.
7777
vi.mock('./serve.js', () => ({ resolveAuthBaseUrl: () => undefined }));
7878

79+
// `check:test-source-alias` (its "source reach") follows this file's static reach
80+
// through `dev.ts`, past the relative `./serve.js` mock above, to these literal
81+
// dynamic loads inside function bodies. The watch loop under test calls none of
82+
// them; a factory answers each, so no case could pay a dist transform inside a
83+
// clocked window if one ever did.
84+
vi.mock('@objectstack/service-settings', () => ({}));
85+
vi.mock('@objectstack/metadata-protocol', () => ({}));
86+
vi.mock('@objectstack/metadata', () => ({}));
87+
vi.mock('@objectstack/plugin-hono-server', () => ({}));
88+
vi.mock('@objectstack/rest', () => ({}));
89+
vi.mock('@objectstack/service-datasource', () => ({}));
90+
vi.mock('@objectstack/cloud-connection', () => ({}));
91+
vi.mock('@objectstack/driver-turso', () => ({}));
92+
vi.mock('@objectstack/driver-sql', () => ({}));
93+
vi.mock('@objectstack/platform-objects/plugin', () => ({}));
94+
vi.mock('@objectstack/plugin-security', () => ({}));
95+
7996
import Dev from './dev.js';
8097

8198
interface WatchOpts {
@@ -274,3 +291,25 @@ describe('os dev watcher: a refused recompile shows the refusal (#23820)', () =>
274291
expect(landed).toEqual([]);
275292
});
276293
});
294+
295+
/**
296+
* The failure line is NEUTRAL (ruling record 6998194814, letter D): the watcher
297+
* sees only the child's exit status, and a refusal raised while the config loads
298+
* shares that status with a judged compile failure. So the line says the config
299+
* did not load or compile and asserts neither a code error nor a refusal. Both
300+
* exit statuses the measured shapes produce are driven: 2 (a throw at load, or a
301+
* syntax error) and 1 (a refusal that prints and exits, or a judged failure).
302+
*/
303+
describe('os dev watcher: the failure line says the config did not load or compile, never which', () => {
304+
for (const [mode, status] of [['refuse-stdout', 2], ['refuse-both', 1]] as const) {
305+
it(`exit ${status}: neutral head line, no "compile error", no "refused", no "compile failed"`, async () => {
306+
const { printed } = await recompileOnce(mode);
307+
const told = printed.join('\n---\n');
308+
expect(printed, told).toHaveLength(2);
309+
// The head line only: the relayed compile output below it is the child's text, not the watcher's.
310+
const head = printed[1].split('\n')[0];
311+
expect(head, told).toContain('objectstack.config did not load or compile');
312+
expect(head, told).not.toMatch(/compile error|refused|compile failed/i);
313+
});
314+
}
315+
});

‎packages/cli/src/commands/dev.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ export default class Dev extends Command {
663663
{ stdio: 'inherit' },
664664
);
665665
if (compileResult.status !== 0) {
666-
printError('Compile failed — fix errors above before starting dev server');
666+
// The line says the config did not load or compile, never which: the
667+
// parent sees only the child's exit status, and a syntax error, a thrown
668+
// refusal at load and a refusal that prints and exits 1 all land here
669+
// (ruling record 6998194814, letter D). The child printed the reason.
670+
printError('objectstack.config did not load or compile — the reason is printed above; fix it before starting dev server');
667671
process.exit(1);
668672
}
669673
}
@@ -1227,7 +1231,9 @@ export default class Dev extends Command {
12271231
.map((b) => b?.toString().replace(/^\s*\n/, '').trimEnd())
12281232
.filter(Boolean)
12291233
.join('\n');
1230-
console.log(chalk.red(` ✗ compile failed (${dt}ms)${output ? '\n' + output : ''}`));
1234+
// Neutral for the reason the boot compile's line is (ruling record
1235+
// 6998194814): a load failure and a judged compile failure share it.
1236+
console.log(chalk.red(` ✗ objectstack.config did not load or compile (${dt}ms)${output ? '\n' + output : ''}`));
12311237
// A failed compile writes no artifact — the running server still
12321238
// matches dist/objectstack.json, so no restart and no warning.
12331239
} else {

‎packages/cli/src/commands/environments/bind.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export default class EnvironmentsBind extends Command {
8484
{ stdio: 'inherit', env: process.env },
8585
);
8686
if (r.status !== 0) {
87-
printError('Compile failed — fix errors above before binding');
87+
// Neutral wording, never a classification (ruling record 6998194814).
88+
printError('objectstack.config did not load or compile — the reason is printed above; fix it before binding');
8889
this.exit(1);
8990
}
9091
}

‎packages/cli/src/commands/serve.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3784,7 +3784,8 @@ export default class Serve extends Command {
37843784
if (compiled.status !== 0) {
37853785
console.error(
37863786
`${compiled.stdout ?? ''}${compiled.stderr ?? ''}\n`
3787-
+ chalk.red(` ✗ Compile failed — fix errors above before starting the dev server.\n`)
3787+
// Neutral wording, never a classification (ruling record 6998194814).
3788+
+ chalk.red(` ✗ ${relativeConfig} did not load or compile — the reason is printed above; fix it before starting the dev server.\n`)
37883789
+ chalk.dim(` A dev boot over ${hmrArtifactPath} compiles ${relativeConfig} into it first, so the`)
37893790
+ chalk.dim('\n metadata it serves is the config this boot evaluates.'),
37903791
);

‎packages/cli/src/commands/start.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ export default class Start extends Command {
274274
{ stdio: ['ignore', 2, 'inherit'], env: process.env },
275275
);
276276
if (compileResult.status !== 0) {
277-
printError('Compile failed — fix errors above before starting the server');
277+
// Neutral wording, never a classification (ruling record 6998194814).
278+
printError('objectstack.config did not load or compile — the reason is printed above; fix it before starting the server');
278279
console.error(chalk.yellow(' Hint: run `objectstack start --artifact <path>` to skip the compile step.'));
279280
process.exit(1);
280281
}

‎packages/qa/dogfood/bench/sql-perf/bench.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async function bootServer(databaseUrl, label, extraEnv = {}) {
191191
for (;;) {
192192
if (server.exited) throw new Error(`server exited during boot; see ${logFile}`);
193193
const text = readFileSync(logFile, 'utf8');
194-
if (text.includes('Compile failed')) throw new Error(`fixture compile failed; see ${logFile}`);
194+
if (text.includes('did not load or compile')) throw new Error(`fixture compile failed; see ${logFile}`);
195195
if (text.includes('Server is ready')) break;
196196
if (Date.now() - started > args.bootTimeoutMs) throw new Error(`server not ready within ${args.bootTimeoutMs} ms; see ${logFile}`);
197197
await new Promise((r) => setTimeout(r, 500));

0 commit comments

Comments
 (0)