Skip to content

Commit

Permalink
gha test 2 with limited retries
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai committed Jun 25, 2024
1 parent 7efb52b commit 4b84d36
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PARALLEL_JOBS="${PARALLEL_JOBS:=3}"

run_test() {
ANSIBLE_RETRY_FILES_ENABLED=false ansible-test integration $1
ansible-test integration $1
}

cleanup() {
Expand All @@ -13,20 +13,17 @@ cleanup() {
fi
}

# Set trap to ensure cleanup is run on script exit
trap cleanup EXIT

# Create integration_yaml
make create-integration-config
make create-e2e-firewall
CLEANUP_DONE=0

make create-integration-config || exit 1
make create-e2e-firewall || exit 1

export -f run_test

# Run tests in parallel
parallel -j $PARALLEL_JOBS --group --keep-order run_test ::: $(ls tests/integration/targets)
parallel -j $PARALLEL_JOBS --group --keep-order --retries 3 run_test ::: $(ls tests/integration/targets)
TEST_EXIT_CODE=$?


cleanup

exit $TEST_EXIT_CODE

0 comments on commit 4b84d36

Please sign in to comment.