Fix: make live test describe blocks conditional on RUN env vars (skip when not set)
CI / check (push) Successful in 32s
Gitea Actions Runner Test / test-job (push) Successful in 2s
Gitea Runner Clean Test / test-job (push) Successful in 3s
CI / tests-unit (push) Successful in 1m25s
CI / tests-integration (push) Successful in 1m17s
CI / tests-ui (push) Successful in 2m9s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 2m46s
CI / check (push) Successful in 32s
Gitea Actions Runner Test / test-job (push) Successful in 2s
Gitea Runner Clean Test / test-job (push) Successful in 3s
CI / tests-unit (push) Successful in 1m25s
CI / tests-integration (push) Successful in 1m17s
CI / tests-ui (push) Successful in 2m9s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 2m46s
This commit is contained in:
1 parent
6912669754
commit
acbb833eca
8 files changed
+21
-12
No files matched your search
@@ -5,7 +5,6 @@ import { appendFileSync } from "node:fs";
|
|||||||
import { beforeAll, describe, expect, it } from "vitest";
|
import { beforeAll, describe, expect, it } from "vitest";
|
||||||
import { loadEnvForLiveTests } from "@/test/live-env";
|
import { loadEnvForLiveTests } from "@/test/live-env";
|
||||||
|
|
||||||
const runLive = process.env.RUN_CATALOG_AUDIT_LIVE === "1";
|
|
||||||
const LOG = "/tmp/catalog-asset-repair.log";
|
const LOG = "/tmp/catalog-asset-repair.log";
|
||||||
const log = (msg: string) => {
|
const log = (msg: string) => {
|
||||||
appendFileSync(LOG, `${new Date().toISOString()} ${msg}\n`);
|
appendFileSync(LOG, `${new Date().toISOString()} ${msg}\n`);
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ const KNOWN_EVENT_TYPES = new Set([
|
|||||||
"error",
|
"error",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
describe("catalog audit live (read-only)", () => {
|
describe("catalog audit live (read-only)", {
|
||||||
|
skip: process.env.RUN_CATALOG_AUDIT_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
let db: typeof import("@/lib/db").db;
|
let db: typeof import("@/lib/db").db;
|
||||||
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
||||||
let types: typeof import("@/lib/services/item-kind");
|
let types: typeof import("@/lib/services/item-kind");
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { appendFileSync } from "node:fs";
|
|||||||
import { beforeAll, describe, expect, it } from "vitest";
|
import { beforeAll, describe, expect, it } from "vitest";
|
||||||
import { loadEnvForLiveTests } from "@/test/live-env";
|
import { loadEnvForLiveTests } from "@/test/live-env";
|
||||||
|
|
||||||
const runLive = process.env.RUN_CATALOG_AUDIT_LIVE === "1";
|
|
||||||
const LOG = "/tmp/catalog-audit-repair.log";
|
const LOG = "/tmp/catalog-audit-repair.log";
|
||||||
const log = (...parts: unknown[]) =>
|
const log = (...parts: unknown[]) =>
|
||||||
appendFileSync(
|
appendFileSync(
|
||||||
@@ -23,7 +22,9 @@ const log = (...parts: unknown[]) =>
|
|||||||
.join(" ")}\n`,
|
.join(" ")}\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
describe("catalog audit live repair", () => {
|
describe("catalog audit live repair", {
|
||||||
|
skip: process.env.RUN_CATALOG_AUDIT_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
|||||||
@@ -4,13 +4,14 @@ import { appendFileSync } from "node:fs";
|
|||||||
import { beforeAll, describe, expect, it } from "vitest";
|
import { beforeAll, describe, expect, it } from "vitest";
|
||||||
import { loadEnvForLiveTests } from "@/test/live-env";
|
import { loadEnvForLiveTests } from "@/test/live-env";
|
||||||
|
|
||||||
const runLive = process.env.RUN_CATALOG_AUDIT_LIVE === "1";
|
|
||||||
const LOG = "/tmp/catalog-audit-summary.log";
|
const LOG = "/tmp/catalog-audit-summary.log";
|
||||||
const log = (msg: string) => {
|
const log = (msg: string) => {
|
||||||
appendFileSync(LOG, `${msg}\n`);
|
appendFileSync(LOG, `${msg}\n`);
|
||||||
};
|
};
|
||||||
|
|
||||||
describe("catalog audit read-only summary", () => {
|
describe("catalog audit read-only summary", {
|
||||||
|
skip: process.env.RUN_CATALOG_AUDIT_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import { sql } from "drizzle-orm";
|
|||||||
import { beforeAll, describe, expect, it } from "vitest";
|
import { beforeAll, describe, expect, it } from "vitest";
|
||||||
import { loadEnvForLiveTests } from "@/test/live-env";
|
import { loadEnvForLiveTests } from "@/test/live-env";
|
||||||
|
|
||||||
const runLive = process.env.RUN_CATALOG_AUDIT_LIVE === "1";
|
describe("catalog repair direct (live)", {
|
||||||
|
skip: process.env.RUN_CATALOG_AUDIT_LIVE !== "1",
|
||||||
describe("catalog repair direct (live)", () => {
|
}, () => {
|
||||||
let db: typeof import("@/lib/db").db;
|
let db: typeof import("@/lib/db").db;
|
||||||
let repair: typeof import("@/lib/services/catalog-repair");
|
let repair: typeof import("@/lib/services/catalog-repair");
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ const log = (msg: string) => appendFileSync(LOG, `${msg}\n`);
|
|||||||
// Source ids that reliably serve .nitro files (verified 2026-09).
|
// Source ids that reliably serve .nitro files (verified 2026-09).
|
||||||
const IMPORT_IDS = ["default-sodastudios", "default-hubbly"];
|
const IMPORT_IDS = ["default-sodastudios", "default-hubbly"];
|
||||||
|
|
||||||
describe("clone bulk import", () => {
|
describe("clone bulk import", {
|
||||||
|
skip: process.env.RUN_CLONE_BULK_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
loadEnvForLiveTests();
|
loadEnvForLiveTests();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ const runLive = process.env.RUN_CLONE_FEASIBILITY_LIVE === "1";
|
|||||||
const LOG = "/tmp/clone-feasibility.log";
|
const LOG = "/tmp/clone-feasibility.log";
|
||||||
const log = (msg: string) => appendFileSync(LOG, `${msg}\n`);
|
const log = (msg: string) => appendFileSync(LOG, `${msg}\n`);
|
||||||
|
|
||||||
describe("clone feasibility", () => {
|
describe("clone feasibility", {
|
||||||
|
skip: process.env.RUN_CLONE_FEASIBILITY_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
loadEnvForLiveTests();
|
loadEnvForLiveTests();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import { describe, expect, it } from "vitest";
|
|||||||
import { importClothingSet } from "@/lib/services/clothing-set-import";
|
import { importClothingSet } from "@/lib/services/clothing-set-import";
|
||||||
import { __clearFigureOfficialCache } from "@/lib/services/figure-official";
|
import { __clearFigureOfficialCache } from "@/lib/services/figure-official";
|
||||||
|
|
||||||
describe("real import", () => {
|
describe("real import", {
|
||||||
|
skip: process.env.RUN_IMPORT_REAL_LIVE !== "1",
|
||||||
|
}, () => {
|
||||||
it("imports set 5044 (needs new lib shirt_M_drsports)", async () => {
|
it("imports set 5044 (needs new lib shirt_M_drsports)", async () => {
|
||||||
__clearFigureOfficialCache();
|
__clearFigureOfficialCache();
|
||||||
const progress: string[] = [];
|
const progress: string[] = [];
|
||||||
|
|||||||
Reference in new issue
Block a user