Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[load testing] remove extra loop and pass simulations to running script #106997

Merged
merged 4 commits into from
Jul 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions test/scripts/jenkins_build_load_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ do
done
echo "Simulation classes: $simulations";

IFS=',' read -ra sim_array <<< "${simulations}"

cd "$KIBANA_DIR"
source src/dev/ci_setup/setup_env.sh

Expand Down Expand Up @@ -82,14 +80,11 @@ nohup ./metricbeat > metricbeat.log 2>&1 &
popd

echo " -> Running gatling load testing"
for i in "${sim_array[@]}"; do
sleep 30
echo "Running simulation $i .."
export GATLING_SIMULATIONS="$i"
node scripts/functional_tests \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/load/config.ts || exit 0;
done
export GATLING_SIMULATIONS="$simulations"
node scripts/functional_tests \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/load/config.ts;


echo " -> Simulations run is finished"

Expand Down