@camstack/server 1.2.150 → 1.2.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -737,6 +737,29 @@ class AddonRegistryService {
737
737
  await spawnRunnerPlan(this.buildAddonGroupPlan(isolatedInfraIds));
738
738
  }
739
739
  await spawnRunnerPlan(this.buildAddonGroupPlan(allIds.filter((id) => !isolatedBuiltins.has(id))));
740
+ // Spawn returns when the child process exists. The UDS handshake that
741
+ // puts `data-store-provider` in this process's `getCollection` lands
742
+ // on a later tick — waiting immediately after the infra spawn (1.2.151)
743
+ // deadlocked: onModuleInit never yielded to the UDS read, the 30 s
744
+ // timeout aborted bootstrap, the starter crash-looped. The general
745
+ // spawn plan above is a sequence of `await`s, so the handshake can
746
+ // land; this wait is the remainder. A timeout must NOT throw: aborting
747
+ // boot is a crash loop, and the in-process builtins then skip the
748
+ // empty door the same way 1.2.150 did.
749
+ if (isolatedInfraIds.length > 0) {
750
+ try {
751
+ await (0, system_1.waitUntilReady)(() => this.capabilityRegistry.getCollection('data-store-provider').length > 0, {
752
+ timeoutMs: 30_000,
753
+ intervalMs: 50,
754
+ what: 'isolated data-store-provider engine',
755
+ });
756
+ }
757
+ catch (err) {
758
+ this.logger.error('Isolated data-store-provider engine did not register in time', {
759
+ meta: { error: (0, types_1.errMsg)(err), addonIds: isolatedInfraIds },
760
+ });
761
+ }
762
+ }
740
763
  // In-process boot for `@camstack/system` builtins. Core builtins stay
741
764
  // resident on the hub process — they provide the storage / settings
742
765
  // / logging infrastructure every forked runner depends on, reachable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.150",
3
+ "version": "1.2.152",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -42,7 +42,7 @@
42
42
  "@camstack/addon-pipeline-orchestrator": "1.2.104",
43
43
  "@camstack/addon-post-analysis": "1.2.118",
44
44
  "@camstack/sdk": "1.2.30",
45
- "@camstack/system": "1.2.119",
45
+ "@camstack/system": "1.2.120",
46
46
  "@camstack/types": "1.2.102",
47
47
  "@camstack/ui-library": "1.2.70",
48
48
  "@fastify/compress": "^9.0.0",