Skip to content

Commit

Permalink
Add concurrent op tests for HNS bucket (#2413)
Browse files Browse the repository at this point in the history
* add concurrent_op_tests

* add concurrent_op_tests

* small fix
  • Loading branch information
Tulsishah authored Aug 29, 2024
1 parent c7ec91e commit 9a8fd4f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/integration_tests/run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,17 @@ function run_e2e_tests_for_hns_bucket(){
wait $non_parallel_tests_hns_group_pid
non_parallel_tests_hns_group_exit_code=$?

# The concurrent_operations package, which experiences intermittent failures on presubmit tests, primarily due to parallel execution on the FLAT bucket, has been executed.
# Added it serially after all the tests are completed to avoid failures.
local log_file="/tmp/concurrent_operation_${hns_bucket_name_parallel_group}.log"
echo $log_file >> $TEST_LOGS_FILE
GODEBUG=asyncpreemptoff=1 go test ./tools/integration_tests/concurrent_operations $GO_TEST_SHORT_FLAG $PRESUBMIT_RUN_FLAG -p 1 --integrationTest -v --testbucket=$hns_bucket_name_non_parallel_group --testInstalledPackage=$RUN_E2E_TESTS_ON_PACKAGE -timeout $INTEGRATION_TEST_TIMEOUT > "$log_file" 2>&1
non_parallel_tests_hns_group_exit_code_2=$?

hns_buckets=("$hns_bucket_name_parallel_group" "$hns_bucket_name_non_parallel_group")
clean_up hns_buckets

if [ $parallel_tests_hns_group_exit_code != 0 ] || [ $non_parallel_tests_hns_group_exit_code!= 0 ];
if [ $parallel_tests_hns_group_exit_code != 0 ] || [ $non_parallel_tests_hns_group_exit_code != 0 ] || [ $non_parallel_tests_hns_group_exit_code_2 != 0 ];
then
return 1
fi
Expand Down

0 comments on commit 9a8fd4f

Please sign in to comment.