Skip to content

Commit bb715a7

Browse files
achartierclaude
andauthored
ci: guard coverage combine against empty coverage glob in fast shards (#2630)
Signed-off-by: Aurelien Chartier <2567591+achartier@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7f85849 commit bb715a7

13 files changed

Lines changed: 39 additions & 13 deletions

tests/functional/L1_Functional_Tests_AutoModel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ run_test uv run --no-sync bash ./tests/functional/sft_automodel_lora.sh
4242
run_test uv run --no-sync bash ./tests/functional/test_automodel_extra_installed_correctly.sh
4343

4444
cd ${PROJECT_ROOT}/tests
45-
coverage combine .coverage*
45+
if compgen -G ".coverage*" > /dev/null; then
46+
coverage combine .coverage*
47+
fi

tests/functional/L1_Functional_Tests_Eval.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ run_test uv run --no-sync bash ./tests/functional/eval_async.sh
3939
run_test fast uv run --no-sync bash ./tests/functional/eval_audio.sh
4040

4141
cd ${PROJECT_ROOT}/tests
42-
coverage combine .coverage*
42+
if compgen -G ".coverage*" > /dev/null; then
43+
coverage combine .coverage*
44+
fi

tests/functional/L1_Functional_Tests_GRPO_1.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ run_test fast uv run --no-sync bash ./tests/functional/grpo_dp_simple.sh
4444
run_test fast uv run --no-sync bash ./tests/functional/grpo_dp_mooncake.sh
4545

4646
cd ${PROJECT_ROOT}/tests
47-
coverage combine .coverage*
47+
if compgen -G ".coverage*" > /dev/null; then
48+
coverage combine .coverage*
49+
fi

tests/functional/L1_Functional_Tests_GRPO_2.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ run_test uv run --no-sync bash ./tests/functional/grpo_multiturn.sh
4040
run_test uv run --no-sync bash ./tests/functional/grpo_non_colocated.sh
4141

4242
cd ${PROJECT_ROOT}/tests
43-
coverage combine .coverage*
43+
if compgen -G ".coverage*" > /dev/null; then
44+
coverage combine .coverage*
45+
fi

tests/functional/L1_Functional_Tests_GRPO_3.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ run_test fast uv run --no-sync bash ./tests/functional/grpo_topp_topk.sh
3939
run_test uv run --no-sync bash ./tests/functional/vlm_grpo.sh
4040

4141
cd ${PROJECT_ROOT}/tests
42-
coverage combine .coverage*
42+
if compgen -G ".coverage*" > /dev/null; then
43+
coverage combine .coverage*
44+
fi

tests/functional/L1_Functional_Tests_Gym.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ run_test() {
3737
run_test fast uv run --no-sync bash ./tests/functional/grpo_async_gym.sh
3838

3939
cd ${PROJECT_ROOT}/tests
40-
coverage combine .coverage*
40+
if compgen -G ".coverage*" > /dev/null; then
41+
coverage combine .coverage*
42+
fi

tests/functional/L1_Functional_Tests_Megatron_1.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ run_test fast uv run --no-sync bash ./tests/functional/grpo_megatron_eagle3_onli
4141
run_test uv run --no-sync bash ./tests/functional/grpo_megatron_generation.sh
4242

4343
cd ${PROJECT_ROOT}/tests
44-
coverage combine .coverage*
44+
if compgen -G ".coverage*" > /dev/null; then
45+
coverage combine .coverage*
46+
fi

tests/functional/L1_Functional_Tests_Megatron_2.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ run_test fast uv run --no-sync bash ./tests/functional/dpo_megatron_lora.sh
4040
run_test uv run --no-sync bash ./tests/functional/sft_megatron_lora.sh
4141

4242
cd ${PROJECT_ROOT}/tests
43-
coverage combine .coverage*
43+
if compgen -G ".coverage*" > /dev/null; then
44+
coverage combine .coverage*
45+
fi

tests/functional/L1_Functional_Tests_Megatron_3.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ run_test uv run --no-sync bash ./tests/functional/dpo_megatron.sh
4040
run_test uv run --no-sync bash ./tests/functional/sft_megatron.sh
4141

4242
cd ${PROJECT_ROOT}/tests
43-
coverage combine .coverage*
43+
if compgen -G ".coverage*" > /dev/null; then
44+
coverage combine .coverage*
45+
fi

tests/functional/L1_Functional_Tests_Other_1.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ if [[ "${FAST:-0}" != "1" ]]; then
5252
fi
5353

5454
cd ${PROJECT_ROOT}/tests
55-
coverage combine .coverage*
55+
if compgen -G ".coverage*" > /dev/null; then
56+
coverage combine .coverage*
57+
fi

0 commit comments

Comments
 (0)