Skip to content

Remove legacy server-side AB test config#16310

Open
DanielCliftonGuardian wants to merge 1 commit into
mainfrom
remove-legacy-ab-test-config
Open

Remove legacy server-side AB test config#16310
DanielCliftonGuardian wants to merge 1 commit into
mainfrom
remove-legacy-ab-test-config

Conversation

@DanielCliftonGuardian

@DanielCliftonGuardian DanielCliftonGuardian commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Now that frontend has removed its server-side AB test framework and no longer sends the abTests payload to DCR, this removes the now dead legacy plumbing.


@DanielCliftonGuardian DanielCliftonGuardian self-assigned this Jul 1, 2026
@DanielCliftonGuardian DanielCliftonGuardian added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jul 1, 2026
@DanielCliftonGuardian DanielCliftonGuardian added the run_chromatic Runs chromatic when label is applied label Jul 1, 2026
@DanielCliftonGuardian DanielCliftonGuardian requested a review from a team July 1, 2026 14:40
@DanielCliftonGuardian DanielCliftonGuardian marked this pull request as ready for review July 1, 2026 14:40
@DanielCliftonGuardian DanielCliftonGuardian requested review from a team as code owners July 1, 2026 14:40
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 1, 2026

@cemms1 cemms1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I managed to review this yesterday but forgot to click submit 🤦
Looking really good! Just a few notes on whether we still need to keep the bundle variant test logic - not really relevant to this PR but possibly ought to have been tidied up a while ago. I don't think it necessarily needs to be done as part of this PR, just need to note down a decision one way or another

const enableSentryReporting = !!switches.enableSentryReporting;
const isInBrowserVariantTest =
BUILD_VARIANT && tests[dcrJavascriptBundle('Variant')] === 'variant';
const isInBrowserVariantTest = BUILD_VARIANT;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this makes much sense any more. It looks like this was a test run years ago and isn't running any more. Maybe we could strip out all variant bundle logic entirely. Or perhaps rename this value as it no longer really makes sense

Comment on lines 14 to +22
/**
* Server-side test names for running variant test.
*
* The name is transformed from kebab-case to camelCase,
* so we have the relevant prefix captured here.
*
* @see https://github.com/guardian/frontend/blob/main/common/app/experiments/Experiments.scala
*
* @type {(variant: 'Variant' | 'Control') => import("../src/types/config").ServerSideTestNames}
* @type {(variant: 'Variant' | 'Control') => string}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this logic any more

);

const build = getModulesBuild({
switches: sportData.config.switches,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep switches?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants