ci(temp): verify P01 test and lockfile corrections

This commit is contained in:
victorsteele428 committed 2026-11-22 07:39:24 +06:00
1 parent d8ac96e39d
commit 90fce0629a
16 files changed
+1094 -2804

No files matched your search

@@ -35,6 +35,7 @@ import { SDKManager } from "../core/sdk/sdkManager";
import { getInternalIngestionHeaders } from "../core/Security/security";
import { SSRFBlockedError } from "../core/Security/ssrfGuard";
import { CSVStorageManager } from "../core/Storage/csvStorage";
import { DataBufferEngine } from "../core/data/buffer";
import { middleware } from "../middleware";
const require = createRequire(import.meta.url);
@@ -80,6 +81,12 @@ const ingestionServer = require("../server/index.js") as {
syncSettingsFromDatabase: () => Promise<boolean>;
};
test.after(async () => {
ingestionServer.stopTimers();
SDKManager.stopActivityFlushTimerForTests();
await DataBufferEngine.shutdown();
});
test("R5-Phase-01 [MCP-AUDIT-02 / ERR-R5-02]: Runtime log capture scrubs secrets, rotates at 2MB, filters/tails safely, and handles missing dirs gracefully", async () => {
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), "datastack-r5-logs-"));
const logsDir = path.join(tmpDir, ".runtime-logs");