






















@@ -218,7 +218,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
218218runStartupSessionMigration.mockClear();
219219});
220220221-it("falls back to loader-level runtime-deps staging after failed pre-start staging", async () => {
221+it("loads startup plugins in verify-only mode after failed pre-start staging", async () => {
222222repairBundledRuntimeDepsPackagePlanAsync.mockRejectedValueOnce(new Error("offline registry"));
223223const log = createLog();
224224const { prepareGatewayPluginBootstrap } = await import("./server-startup-plugins.js");
@@ -245,7 +245,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
245245pluginLookUpTable: expect.objectContaining({
246246manifestRegistry: pluginManifestRegistry,
247247}),
248-installBundledRuntimeDeps: true,
248+installBundledRuntimeDeps: false,
249249}),
250250);
251251expect(repairBundledRuntimeDepsPackagePlanAsync).toHaveBeenCalledOnce();
@@ -296,7 +296,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
296296}),
297297);
298298expect(loadGatewayStartupPlugins).toHaveBeenCalledWith(
299-expect.objectContaining({ installBundledRuntimeDeps: true }),
299+expect.objectContaining({ installBundledRuntimeDeps: false }),
300300);
301301});
302302@@ -321,7 +321,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
321321}),
322322);
323323expect(loadGatewayStartupPlugins).toHaveBeenCalledWith(
324-expect.objectContaining({ installBundledRuntimeDeps: true }),
324+expect.objectContaining({ installBundledRuntimeDeps: false }),
325325);
326326});
327327@@ -491,7 +491,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
491491);
492492});
493493494-it("falls back to loader-level runtime-deps staging after failed pre-start scan", async () => {
494+it("keeps startup plugin loading verify-only after failed pre-start scan", async () => {
495495repairBundledRuntimeDepsPackagePlanAsync.mockRejectedValueOnce(
496496new Error("unsupported runtime dependency spec"),
497497);
@@ -518,7 +518,7 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {
518518expect.stringContaining("unsupported runtime dependency spec"),
519519);
520520expect(loadGatewayStartupPlugins).toHaveBeenCalledWith(
521-expect.objectContaining({ installBundledRuntimeDeps: true }),
521+expect.objectContaining({ installBundledRuntimeDeps: false }),
522522);
523523expect(loadGatewayStartupPlugins.mock.calls[0]?.[0]).not.toHaveProperty(
524524"bundledRuntimeDepsInstaller",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。