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 <paul@basicmachines.co>
This commit is contained in:
phernandez
2026-06-10 10:20:37 -05:00
parent 49041a5168
commit 99ea2514dd
+5 -3
View File
@@ -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: