From 49232cbd04e7b0d5511888409db292da45458821 Mon Sep 17 00:00:00 2001 From: velixio <270455167+velixio@users.noreply.github.com> Date: Wed, 28 Oct 2026 11:29:48 +0530 Subject: [PATCH 1/2] test(e2e): keep fixture sites forever so fixed 2026-09 data never ages out --- web/playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/playwright.config.ts b/web/playwright.config.ts index 787c8556..41ad9a92 100644 --- a/web/playwright.config.ts +++ b/web/playwright.config.ts @@ -30,7 +30,7 @@ set -eu psql "$SUPERMETRY_TEST_DSN" -v ON_ERROR_STOP=1 \ -c "drop schema if exists \"$SUPERMETRY_E2E_SCHEMA\" cascade" \ -c "create schema \"$SUPERMETRY_E2E_SCHEMA\"" -bun -e 'const fs=require("node:fs");const rows=JSON.parse(fs.readFileSync(process.argv[1],"utf8"));fs.writeFileSync(process.argv[2],JSON.stringify(rows.map(({id,host,timezone})=>({id,org_id:1,public_id:host,timezone,retention_days:30,allowed_hosts:[host],revenue_currency:"USD",revenue_currency_state:"configured"}))))' \ +bun -e 'const fs=require("node:fs");const rows=JSON.parse(fs.readFileSync(process.argv[1],"utf8"));fs.writeFileSync(process.argv[2],JSON.stringify(rows.map(({id,host,timezone})=>({id,org_id:1,public_id:host,timezone,retention_days:0,allowed_hosts:[host],revenue_currency:"USD",revenue_currency_state:"configured"}))))' \ ../test/golden/testdata/tiny.sites.json "$SUPERMETRY_E2E_SITES_FILE" export SUPERMETRY_DATABASE_URL="$SUPERMETRY_E2E_DSN" export SUPERMETRY_BASE_URL="$SUPERMETRY_E2E_BASE_URL" From 2d466bf8dec99646679df5e6ad1cf7d53ed05ea9 Mon Sep 17 00:00:00 2001 From: velixio <270455167+velixio@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:08:44 +0530 Subject: [PATCH 2/2] e2e: create the dashboard fixture site with forever retention The golden fixture days are fixed (2026-09-28..30) but the e2e owner site was created through the API with 30-day retention. Weekly rhythm (weekday/hour breakdowns) is rejected outside the retention window, so once the fixture aged past 30 days the card showed its retention error and had no busiest cell. Create the site with retention_days 0 (forever), like the file-registry sites. --- web/e2e/fixtures.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/e2e/fixtures.ts b/web/e2e/fixtures.ts index d131e80f..d5a85000 100644 --- a/web/e2e/fixtures.ts +++ b/web/e2e/fixtures.ts @@ -126,7 +126,7 @@ export default async function globalSetup(config: FullConfig) { name: "Site 1", hosts: ["site1.test"], timezone: "America/New_York", - retention_days: 30, + retention_days: 0, revenue_currency: "USD", }, });