You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(publish-smoke): add a registry-mode healthy boot to the firing control
The pack-mode healthy fixture could not catch the mistake the predicate exists
to avoid. Measured, not foreseen: under a deliberately wrong `WARN|warn`
predicate the firing control stayed GREEN, because that fixture's only
warn-shaped line carries the glyph and never the word.
Registry mode installs the last published release, so a protocol-floor
conversion warning is normal there and arrives as a full `<ISO>Z WARN ...`
line. Asserting a healthy boot that spells WARN in full is what turns "do not
widen the severity set wholesale" into something this file can redden on.
The fixture is reconstructed rather than verbatim - the specimen's own boot
window with the four lines attributable to the defect removed - and its
docblock says so.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Copy file name to clipboardExpand all lines: packages/spec/scripts/publish-smoke-boot-failure.test.ts
+52Lines changed: 52 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,44 @@ const HEALTHY_BOOT = [
150
150
'',
151
151
].join('\n');
152
152
153
+
/**
154
+
* A healthy REGISTRY-mode boot window.
155
+
*
156
+
* ⚠ Unlike `HEALTHY_BOOT` this one is RECONSTRUCTED, not verbatim, and the
157
+
* distinction is load-bearing so it is stated rather than glossed: it is the
158
+
* specimen's own boot window (job `101626009369`) with the four lines
159
+
* attributable to the defect removed — the `AuthPlugin failed to load` line,
160
+
* both kernel degraded-capability lines, and `SharingServicePlugin: could not
161
+
* enumerate organizations`, which only failed because the plugin that creates
162
+
* `sys_organization` never loaded. What is KEPT is the one boot warning that is
163
+
* normal for registry mode: the canary installs the LAST PUBLISHED release, so
164
+
* an artifact whose protocol floor predates the runtime's spec is expected, and
165
+
* the ADR-0087 forward conversion says so at WARN.
166
+
*
167
+
* ⭐ This fixture exists because the pack-mode one could not do this job, and
168
+
* that was MEASURED rather than foreseen: under a deliberately wrong
169
+
* `WARN|warn` predicate the firing control below stayed GREEN, because
170
+
* `HEALTHY_BOOT`'s only warn-shaped line carries the `⚠` glyph and never the
171
+
* word. A healthy boot that spells `WARN` in full is what makes "⛔ do not
172
+
* widen the severity set wholesale" a thing this file can actually catch.
173
+
*/
174
+
constHEALTHY_REGISTRY_BOOT=[
175
+
'',
176
+
'◆ Development Mode',
177
+
' Loading objectstack.config.ts...',
178
+
'[LocalCryptoProvider] No OS_SECRET_KEY/OS_DEV_CRYPTO_KEY set — generated a new AES-256-GCM key and persisted it to /tmp/y/dev-crypto-key (mode 0600).',
179
+
' ↪ secret fields: LocalCryptoProvider wired (dev) — set OS_SECRET_KEY and swap for KMS/Vault in production',
180
+
'',
181
+
' ✓ Server is ready',
182
+
'',
183
+
' Plugins: 31 loaded',
184
+
'',
185
+
' ⚠ Boot diagnostics — 1 warning logged during startup:',
0 commit comments