From 99ea2514dd4ca1640e64938d4342832a8d7028b3 Mon Sep 17 00:00:00 2001 From: phernandez Date: Wed, 10 Jun 2026 10:20:37 -0500 Subject: [PATCH] perf(ci): select impacted tests via testmon on PR builds The testmon cache (branch-scoped, falling back to main's baseline) has been in place since #928, but the flags pinned --testmon-noselect, so every PR build recorded data and still ran the full suite. Flip PR builds to --testmon --testmon-forceselect like basic-memory-cloud; pushes to main keep --testmon-noselect to refresh the baseline. Signed-off-by: phernandez --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae750499..328cf420 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,11 @@ on: env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" - # Required CI records pytest-testmon data but still runs the full selected suite. - # The selective mode stays on explicit developer flows such as `just testmon`. - BASIC_MEMORY_TESTMON_FLAGS: "--testmon-noselect" + # PR builds select only tests impacted by the change, using the cached + # testmon baseline (branch cache falling back to main's full-run recording) — + # same policy as basic-memory-cloud. Pushes to main run the full suite with + # --testmon-noselect, which refreshes the baseline the PR builds select from. + BASIC_MEMORY_TESTMON_FLAGS: ${{ github.event_name == 'pull_request' && '--testmon --testmon-forceselect' || '--testmon-noselect' }} jobs: static-checks: