From 9d9f6dc591fd41d477198bd7fe4a1e8794288226 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Wed, 21 Oct 2026 13:56:13 +0800 Subject: [PATCH] =?UTF-8?q?test:=20pin=20storage=20mode=20in=20compress-fr?= =?UTF-8?q?om-store=20=E2=80=94=20the=20recovery=20tests=20are=20full-mode?= =?UTF-8?q?=20stories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI preload (legacy) flips the story under them: the two unified-store recovery tests fail under BILI_STORAGE_UNIFIED=legacy (refused instead of applied / ERR_SQLITE_ERROR), deterministic on every shard-1 runner (ubuntu22/1, ubuntu24/1, win22/1 of PR #4104). Same class as #4076/#4077: storage-family tests pin their mode instead of inheriting the runner default. --- tests/compress-from-store.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/compress-from-store.test.ts b/tests/compress-from-store.test.ts index 98b24232c2..528657b9cb 100644 --- a/tests/compress-from-store.test.ts +++ b/tests/compress-from-store.test.ts @@ -9,6 +9,12 @@ // change for the resident fast path). // The recovery is read-only (peek, never creates a store) and only fires when // the effective view is EMPTY — a partial live view stays authoritative. + +// Storage-family discipline (#4076/#4077): the recovery tests below are +// full-mode stories (unified store is the read path). Pin the mode so the CI +// runner's legacy preload cannot flip the story under them; the no-store test +// builds an explicit enabled:false store and is mode-independent. +process.env.BILI_STORAGE_UNIFIED = "full"; import test from "node:test"; import assert from "node:assert/strict"; import { mkdtempSync, rmSync } from "node:fs";