Skip to content

Commit a1152d1

Browse files
committed
ci: coverage selection shadow mode on self-hosted jobs (git-detected changed files)
1 parent f2a21b4 commit a1152d1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/common/test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ if [ -n "${job_shard:-}" ]; then
5757
shard_opts="--shard $job_shard"
5858
fi
5959

60-
./mfc.sh test -v --max-attempts 3 --no-build -a -j $n_test_threads $rdma_opts $device_opts $build_opts $shard_opts -- -c $job_cluster
60+
# Coverage-based test selection in SHADOW mode on PRs: prints what it WOULD select but the
61+
# full suite still runs (no --select-enforce). Changed files come from git detection
62+
# (self-healing deepen) since the SLURM job doesn't receive the paths-filter list.
63+
select_opts=""
64+
if [ "${GITHUB_EVENT_NAME:-}" = "pull_request" ]; then
65+
select_opts="--only-changes"
66+
fi
67+
68+
./mfc.sh test -v --max-attempts 3 --no-build $select_opts -a -j $n_test_threads $rdma_opts $device_opts $build_opts $shard_opts -- -c $job_cluster

0 commit comments

Comments
 (0)