

























@@ -119,7 +119,11 @@ describe("sessionsCleanupCommand", () => {
119119staleKeys: Set<string>;
120120cappedKeys: Set<string>;
121121budgetEvictedKeys: Set<string>;
122+dmScopeRetiredKeys: Set<string>;
122123}) => {
124+if (params.dmScopeRetiredKeys.has(params.key)) {
125+return "retire-dm-scope";
126+}
123127if (params.missingKeys.has(params.key)) {
124128return "prune-missing";
125129}
@@ -181,6 +185,7 @@ describe("sessionsCleanupCommand", () => {
181185beforeCount: 3,
182186afterCount: 1,
183187missing: 0,
188+dmScopeRetired: 0,
184189pruned: 0,
185190capped: 2,
186191diskBudget: {
@@ -245,6 +250,7 @@ describe("sessionsCleanupCommand", () => {
245250beforeCount: 3,
246251afterCount: 1,
247252missing: 0,
253+dmScopeRetired: 0,
248254pruned: 2,
249255capped: 0,
250256diskBudget: null,
@@ -286,6 +292,7 @@ describe("sessionsCleanupCommand", () => {
286292beforeCount: 2,
287293afterCount: 1,
288294missing: 0,
295+dmScopeRetired: 0,
289296pruned: 1,
290297capped: 0,
291298diskBudget: {
@@ -305,6 +312,7 @@ describe("sessionsCleanupCommand", () => {
305312staleKeys: new Set<string>(),
306313cappedKeys: new Set<string>(),
307314budgetEvictedKeys: new Set<string>(),
315+dmScopeRetiredKeys: new Set<string>(),
308316},
309317],
310318appliedSummaries: [],
@@ -347,6 +355,7 @@ describe("sessionsCleanupCommand", () => {
347355beforeCount: 1,
348356afterCount: 0,
349357missing: 1,
358+dmScopeRetired: 0,
350359pruned: 0,
351360capped: 0,
352361diskBudget: null,
@@ -357,6 +366,7 @@ describe("sessionsCleanupCommand", () => {
357366staleKeys: new Set<string>(),
358367cappedKeys: new Set<string>(),
359368budgetEvictedKeys: new Set<string>(),
369+dmScopeRetiredKeys: new Set<string>(),
360370},
361371],
362372appliedSummaries: [],
@@ -393,6 +403,7 @@ describe("sessionsCleanupCommand", () => {
393403beforeCount: 2,
394404afterCount: 1,
395405missing: 0,
406+dmScopeRetired: 0,
396407pruned: 1,
397408capped: 0,
398409unreferencedArtifacts: {
@@ -412,6 +423,7 @@ describe("sessionsCleanupCommand", () => {
412423staleKeys: new Set(["stale"]),
413424cappedKeys: new Set<string>(),
414425budgetEvictedKeys: new Set<string>(),
426+dmScopeRetiredKeys: new Set<string>(),
415427},
416428],
417429appliedSummaries: [],
@@ -450,6 +462,7 @@ describe("sessionsCleanupCommand", () => {
450462beforeCount: 1,
451463afterCount: 0,
452464missing: 0,
465+dmScopeRetired: 0,
453466pruned: 1,
454467capped: 0,
455468diskBudget: null,
@@ -460,6 +473,7 @@ describe("sessionsCleanupCommand", () => {
460473staleKeys: new Set(["stale"]),
461474cappedKeys: new Set<string>(),
462475budgetEvictedKeys: new Set<string>(),
476+dmScopeRetiredKeys: new Set<string>(),
463477},
464478{
465479summary: {
@@ -470,6 +484,7 @@ describe("sessionsCleanupCommand", () => {
470484beforeCount: 1,
471485afterCount: 0,
472486missing: 0,
487+dmScopeRetired: 0,
473488pruned: 1,
474489capped: 0,
475490diskBudget: null,
@@ -480,6 +495,7 @@ describe("sessionsCleanupCommand", () => {
480495staleKeys: new Set(["stale"]),
481496cappedKeys: new Set<string>(),
482497budgetEvictedKeys: new Set<string>(),
498+dmScopeRetiredKeys: new Set<string>(),
483499},
484500],
485501appliedSummaries: [],
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。