From 97e9705cef62ebea7b22252ccd33a59951a48660 Mon Sep 17 00:00:00 2001 From: Jake Lee Kennedy <1731150+Jakeii@users.noreply.github.com> Date: Fri, 21 Aug 2026 10:07:08 +0100 Subject: [PATCH 1/7] Add D and E audience spaces --- ab-testing/config/lib/constants.ts | 2 +- ab-testing/config/scripts/validation/enoughSpace.test.ts | 2 +- ab-testing/config/types.ts | 2 +- .../frontend/src/lib/components/AudienceBreakdown.svelte | 6 +++--- dotcom-rendering/docs/development/ab-testing-in-dcr.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ab-testing/config/lib/constants.ts b/ab-testing/config/lib/constants.ts index 7e13ce0aeaa..67ba11421f5 100644 --- a/ab-testing/config/lib/constants.ts +++ b/ab-testing/config/lib/constants.ts @@ -17,6 +17,6 @@ const MAX_SERVER_SIDE_TESTS = 20; * The spaces used for test groups, each space covers the entire mvt space allowing for concurrent overlapping tests where necessary. * If this is increased, the fastly VCL configuration will need to be updated to match. */ -const AUDIENCE_SPACES = ["A", "B", "C"]; +const AUDIENCE_SPACES = ["A", "B", "C", "D", "E"]; export { MVT_COUNT, MAX_SERVER_SIDE_TESTS, AUDIENCE_SPACES }; diff --git a/ab-testing/config/scripts/validation/enoughSpace.test.ts b/ab-testing/config/scripts/validation/enoughSpace.test.ts index a2e40b84209..a5a5c60329e 100644 --- a/ab-testing/config/scripts/validation/enoughSpace.test.ts +++ b/ab-testing/config/scripts/validation/enoughSpace.test.ts @@ -7,7 +7,7 @@ import { enoughSpace } from "./enoughSpace.ts"; function createABTest( name: string, audienceSize: number, - audienceSpace?: "A" | "B" | "C", + audienceSpace?: "A" | "B" | "C" | "D" | "E", ): ABTest { return { name: `commercial-${name}` as const, diff --git a/ab-testing/config/types.ts b/ab-testing/config/types.ts index ae5e8d3ab25..f33e56cc2c7 100644 --- a/ab-testing/config/types.ts +++ b/ab-testing/config/types.ts @@ -47,7 +47,7 @@ type ABTest = { * Having multiple test spaces allows deliberate overlapping of test audiences * Defaults to A */ - audienceSpace?: "A" | "B" | "C"; + audienceSpace?: "A" | "B" | "C" | "D" | "E"; /** Test group definition */ groups: string[]; /** diff --git a/ab-testing/frontend/src/lib/components/AudienceBreakdown.svelte b/ab-testing/frontend/src/lib/components/AudienceBreakdown.svelte index 474185c0627..734d6f89f46 100644 --- a/ab-testing/frontend/src/lib/components/AudienceBreakdown.svelte +++ b/ab-testing/frontend/src/lib/components/AudienceBreakdown.svelte @@ -1,5 +1,5 @@