Skip to content

Finalise A/B test migration and drop @guardian/ab-core#15995

Open
DanielCliftonGuardian wants to merge 4 commits into
mainfrom
dc-remove-old-ab-test
Open

Finalise A/B test migration and drop @guardian/ab-core#15995
DanielCliftonGuardian wants to merge 4 commits into
mainfrom
dc-remove-old-ab-test

Conversation

@DanielCliftonGuardian
Copy link
Copy Markdown
Contributor

@DanielCliftonGuardian DanielCliftonGuardian commented May 28, 2026

What does this change?

Removes the old @guardian/ab-core-based AB testing framework and promotes the new framework as the canonical one.

Why?

The @guardian/ab-core framework has been superseded by the new AB testing system. The old framework required DCR to manage MVT ID parsing, switch filtering, and participation tracking itself. The new framework removes all of that complexity from DCR. With both frameworks running in parallel for a transition period, this PR removes the old one and tidies up the remaining scaffolding.


@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

@DanielCliftonGuardian DanielCliftonGuardian added the maintenance Departmental tracking: maintenance work, not a fix or a feature label May 28, 2026
@DanielCliftonGuardian DanielCliftonGuardian self-assigned this May 28, 2026
@DanielCliftonGuardian DanielCliftonGuardian changed the title Remove @guardian/ab-core Finalise A/B test migration and drop @guardian/ab-core May 28, 2026
@DanielCliftonGuardian DanielCliftonGuardian changed the title Finalise A/B test migration and drop @guardian/ab-core Finalise A/B test migration and drop @guardian/ab-core May 28, 2026
@DanielCliftonGuardian DanielCliftonGuardian marked this pull request as ready for review May 28, 2026 16:13
@DanielCliftonGuardian DanielCliftonGuardian requested a review from a team as a code owner May 28, 2026 16:13
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@arelra arelra requested a review from a team May 28, 2026 16:50
Copy link
Copy Markdown
Contributor

@cemms1 cemms1 left a comment

Choose a reason for hiding this comment

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

This looks great! So nice to tidy up all this old code ✨

Let's make sure we double check this works as expected locally and on CODE before merging

/* keep array multi-line */
];

const shouldCollectMetricsForBetaTests = (userTestParticipations: 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.

shall we take the Beta out of this name?

Comment on lines 84 to 86
const collectBetaTestMetrics = shouldCollectMetricsForBetaTests(
Object.keys(userBetaParticipations),
);
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.

Suggested change
const collectBetaTestMetrics = shouldCollectMetricsForBetaTests(
Object.keys(userBetaParticipations),
);
const collectTestMetrics = shouldCollectMetricsForTests(
Object.keys(userBetaParticipations),
);

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