Skip to content

Commit

Permalink
chore(tests): move ci to use spot for mod 2 (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Oct 27, 2023
1 parent 8aec935 commit a824409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/run-test-local-env-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ function set_instance_env {
if [ $STATUS == "200" ]; then
JOBS_CANCELED_BY_US=$(cat response.txt |jq -c ".[] | select((.name | contains(\"${CI_JOB_NAME}\")) and .status == \"canceled\" and (.duration >= 0))" | wc -l)
if [[ $JOBS_CANCELED_BY_US -eq 0 ]]; then
# only mod 10 for PoC
R=$(( $CI_PIPELINE_ID % 10));
# only mod 2 for PoC
R=$(( $CI_PIPELINE_ID % 2));
if [[ $R -eq 0 ]];then
export X_INFRA_INSTANCE=spot
fi;
Expand Down

0 comments on commit a824409

Please sign in to comment.