Skip to content

Commit

Permalink
disable expensive
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jul 22, 2024
1 parent c5f34c0 commit edfcf85
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,19 @@ jobs:
groups="$(jq -n --argjson g "$groups" --argjson p "$parameters" '$g | map(. + {"needs_parameters": ([.name] | inside($p)) })')"
# Update the timeout for very expensive tests
if [ "${LOTUS_RUN_VERY_EXPENSIVE_TESTS}" == "1" ]; then
groups="$(jq -n --argjson g "$groups" --argjson e "$very_expensive_tests" '$g | map(
if ([.name] | inside($e)) then
if .go_test_flags then
.go_test_flags += " -timeout 10m"
else
. + {"go_test_flags": "-timeout 10m"}
end
else
.
end
)')"
fi
# if [ "${LOTUS_RUN_VERY_EXPENSIVE_TESTS}" == "1" ]; then
# groups="$(jq -n --argjson g "$groups" --argjson e "$very_expensive_tests" '$g | map(
# if ([.name] | inside($e)) then
# if .go_test_flags then
# .go_test_flags += " -timeout 10m"
# else
# . + {"go_test_flags": "-timeout 10m"}
# end
# else
# .
# end
# )')"
# fi
# Output the groups
echo "groups=$groups"
Expand Down

0 comments on commit edfcf85

Please sign in to comment.