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

Occasional docker-compose errors will be easier to diagnose #11835

Merged
Show file tree
Hide file tree
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
16 changes: 5 additions & 11 deletions scripts/ci/testing/ci_run_airflow_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ function run_airflow_testing_in_docker() {
set +u
set +e
local exit_code
for try_num in {1..3}
for try_num in {1..5}
do
echo
echo "Making sure docker-compose is down"
echo "Making sure docker-compose is down and remnants removed"
echo
docker-compose --log-level INFO -f "${SCRIPTS_CI_DIR}/docker-compose/base.yml" \
down --remove-orphans --volumes --timeout 10
echo
echo "System-prune docker"
echo
docker system prune --force
docker system prune --force --volumes
echo
echo "Check available space"
echo
Expand Down Expand Up @@ -70,15 +70,9 @@ function run_airflow_testing_in_docker() {
echo "Delete kerberos network"
kerberos::delete_kerberos_network
fi
if [[ ${exit_code} == 254 ]]; then
if [[ ${exit_code} == "254" && ${try_num} != "5" ]]; then
echo
echo "Failed starting integration on ${try_num} try. Wiping-out docker-compose remnants"
echo
docker-compose --log-level INFO \
-f "${SCRIPTS_CI_DIR}/docker-compose/base.yml" \
down --remove-orphans -v --timeout 5
echo
echo "Sleeping 5 seconds"
echo "Failed try num ${try_num}. Sleeping 5 seconds for retry"
echo
sleep 5
continue
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/tools/ci_free_space_on_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker system prune --all
docker system prune --all --force
df -h