Skip to content

Commit

Permalink
update log print for test matrix
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue committed Dec 23, 2024
1 parent 66ab254 commit bb24747
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/scripts/get_test_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ function _fill_in_matrix() {
echo "service=${_service}, hardware=${hardware}"
if [[ $(echo ${run_matrix} | grep -c "{\"service\":\"${_service}\",\"hardware\":\"${hardware}\"},") == 0 ]]; then
run_matrix="${run_matrix}{\"service\":\"${_service}\",\"hardware\":\"${hardware}\"},"
echo "run_matrix=${run_matrix}"
echo "------------------ add one service ------------------"
fi
echo "------------------ add one service ------------------"
sleep 1s
}

Expand All @@ -108,18 +107,23 @@ function find_test_2() {

function main() {

changed_files=$(printf '%s\n' "${changed_files_full[@]}" | grep 'comps/' | grep -vE '*.md|comps/cores|comps/3rd_parties|deployment') || true
changed_files=$(printf '%s\n' "${changed_files_full[@]}" | grep 'comps/' | grep -vE '*.md|comps/cores|comps/3rd_parties|deployment|*.yaml') || true
echo "===========start find_test_1============"
echo "changed_files=${changed_files}"
find_test_1 "comps" 2 false
sleep 1s
echo "run_matrix=${run_matrix}"
echo "===========finish find_test_1============"

changed_files=$(printf '%s\n' "${changed_files_full[@]}" | grep 'tests/' | grep -vE '*.md|*.txt|tests/cores') || true
echo "===========start find_test_2============"
echo "changed_files=${changed_files}"
find_test_2
sleep 1s
echo "run_matrix=${run_matrix}"
echo "===========finish find_test_2============"

run_matrix=$run_matrix"]}"
echo "run_matrix=${run_matrix}"
echo "run_matrix=${run_matrix}" >> $GITHUB_OUTPUT
}

Expand Down

0 comments on commit bb24747

Please sign in to comment.