Skip to content

Commit

Permalink
add support for testing bench-sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Jan 20, 2025
1 parent b6df937 commit 0733936
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/actions/get-scenarios/get-scenarios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ esac

if [ -n "${BENCHMARK_QUERY}" ]; then
case "${BENCHMARK_QUERY}" in
"fio"|"uperf"|"iperf"|"oslat"|"cyclictest"|"multi")
"fio"|"uperf"|"iperf"|"oslat"|"cyclictest"|"multi"|"sleep")
echo "Benchmark is '${BENCHMARK_QUERY}'"
;;
*)
Expand Down Expand Up @@ -126,7 +126,7 @@ case "${RUNNER_TYPE}" in
"github")
if [ -n "${BENCHMARK_QUERY}" ]; then
case "${BENCHMARK_QUERY}" in
"fio"|"uperf"|"iperf"|"multi")
"fio"|"uperf"|"iperf"|"multi"|"sleep")
for endpoint in "k8s" "remotehosts"; do
log_enabled "${endpoint}" "${BENCHMARK_QUERY}"
scenarios_json+=$(get_enabled_scenario "${endpoint}" "${BENCHMARK_QUERY}")
Expand All @@ -143,13 +143,13 @@ case "${RUNNER_TYPE}" in
for endpoint in "k8s" "remotehosts"; do
case "${endpoint}" in
"k8s")
for benchmark in "fio" "uperf" "iperf" "oslat" "cyclictest" "multi"; do
for benchmark in "fio" "uperf" "iperf" "oslat" "cyclictest" "multi" "sleep"; do
log_enabled "${endpoint}" "${benchmark}"
scenarios_json+=$(get_enabled_scenario "${endpoint}" "${benchmark}")
done
;;
"remotehosts")
for benchmark in "fio" "uperf" "iperf" "multi"; do
for benchmark in "fio" "uperf" "iperf" "multi" "sleep"; do
log_enabled "${endpoint}" "${benchmark}"
scenarios_json+=$(get_enabled_scenario "${endpoint}" "${benchmark}")
done
Expand Down Expand Up @@ -188,7 +188,7 @@ case "${RUNNER_TYPE}" in
scenarios_json+=$(get_enabled_scenario "${endpoint}" "${BENCHMARK_QUERY}")
done
;;
"fio"|"uperf"|"iperf"|"multi")
"fio"|"uperf"|"iperf"|"multi"|"sleep")
log_disabled "null" "${BENCHMARK_QUERY}"
scenarios_json+=$(get_disabled_scenario "null" "${BENCHMARK_QUERY}")
;;
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/integration-tests/run-ci-stage1
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ validate_ci_build_controller

for scenario in $(echo "${CI_SCENARIOS}" | sed -e "s/,/ /g"); do
case "${scenario}" in
fio|uperf|iperf|oslat|cyclictest|multi)
fio|uperf|iperf|oslat|cyclictest|multi|sleep)
;;
*)
echo "ERROR: Unknown CI scenario [${scenario}]"
Expand Down

0 comments on commit 0733936

Please sign in to comment.