Skip to content

Conversation

@cemms1
Copy link
Contributor

@cemms1 cemms1 commented Dec 24, 2025

What does this change?

Adds a scheduled lambda for the new AB testing framework to notify teams of upcoming AB test expiry dates or to let them know that tests have already expired.

  • The lambda is scheduled to run at 5am every weekday for PROD but not for CODE, though in both environments it can be triggered manually
  • It fetches active AB tests (those switched "ON" in the code) and filters by those within 2 days of expiry or which have already expired
  • It then gets a unique list of AB test owners for those tests and creates three lists of tests for each owner:
    • Expired tests
    • Tests expiring today at midnight
    • Tests expiring tomorrow at midnight
  • For each owner of an AB test close to expiry, it sends an email using SES with a breakdown of their expiring tests in tabular format

Example email format

image

Tested in CODE

Why?

We want to make sure expired tests are turned off and/or removed from the codebase if no longer active. Notifying teams of this helps to keep them aware of this.

@cemms1 cemms1 added 🥒WiP Work in Progress feature Departmental tracking: work on a new feature labels Dec 24, 2025
@cemms1 cemms1 force-pushed the cemms1/alert-for-ab-test-expiry branch from 09333a5 to b78385a Compare December 29, 2025 15:14
@github-actions
Copy link

github-actions bot commented Dec 29, 2025

@github-actions
Copy link

github-actions bot commented Dec 29, 2025

@cemms1 cemms1 force-pushed the cemms1/alert-for-ab-test-expiry branch 4 times, most recently from 90f2421 to c50a223 Compare January 5, 2026 12:10
@cemms1 cemms1 removed the 🥒WiP Work in Progress label Jan 5, 2026
@cemms1 cemms1 changed the title [WIP] Add scheduled lambda for notifying teams of AB testing expiry dates Add scheduled lambda for notifying teams of AB testing expiry dates Jan 5, 2026
@cemms1 cemms1 changed the title Add scheduled lambda for notifying teams of AB testing expiry dates Notify teams of AB tests close to expiry Jan 5, 2026
@cemms1 cemms1 force-pushed the cemms1/alert-for-ab-test-expiry branch from 06bfbde to 23bb834 Compare January 5, 2026 16:20
@cemms1 cemms1 force-pushed the cemms1/alert-for-ab-test-expiry branch from 338e176 to 3284aa3 Compare January 5, 2026 16:25
@cemms1 cemms1 marked this pull request as ready for review January 5, 2026 16:25
@cemms1 cemms1 requested review from a team as code owners January 5, 2026 16:25
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

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.

@cemms1 cemms1 force-pushed the cemms1/alert-for-ab-test-expiry branch from 3284aa3 to 0f44f6d Compare January 5, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants