From fd4d12c417215f7cd9075227e784f4cd61c60044 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Fri, 28 Jul 2023 10:17:06 +0200 Subject: [PATCH] Revert continuous pruning of containers (#51) * Revert "fix" This reverts commit d70a31a6fb83d584b5a22881c88792406d6b2f16. * Revert "force and redirect" This reverts commit 063aac3f36e0b72604ef3bb0a51448ff9ce718d1. * Revert "implement as infinite loop" This reverts commit f09c4eb487827714e854cd7841a2bff390df7f4b. --- planemo_ci_actions.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/planemo_ci_actions.sh b/planemo_ci_actions.sh index 8adec31..a805bd5 100755 --- a/planemo_ci_actions.sh +++ b/planemo_ci_actions.sh @@ -1,14 +1,6 @@ #!/usr/bin/env bash set -exo pipefail -# function running an infinite loop pruning (unused) docker images -function background_prune_docker { - while true; do - docker system prune --all --volumes --force &> /dev/null - sleep 60 - done -} - PLANEMO_TEST_OPTIONS=("--database_connection" "$DATABASE_CONNECTION" "--galaxy_source" "https://github.com/$GALAXY_FORK/galaxy" "--galaxy_branch" "$GALAXY_BRANCH" "--galaxy_python_version" "$PYTHON_VERSION" --test_timeout "$TEST_TIMEOUT") PLANEMO_CONTAINER_DEPENDENCIES=("--biocontainers" "--no_dependency_resolution" "--no_conda_auto_init" "--docker_extra_volume" "./") PLANEMO_WORKFLOW_OPTIONS=("--tool_data_table" "/cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml" "--tool_data_table" "/cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml" "--docker_extra_volume" "/cvmfs" --shed_tool_conf /tmp/shed_tool_conf.xml --shed_tool_path /tmp/shed_dir) @@ -160,14 +152,12 @@ if [ "$MODE" == "test" ]; then # show tools cat tool_list_chunk.txt - - background_prune_docker & - PRUNE_PID=$! - + # Test tools mkdir -p json_output touch .tt_biocontainer_skip while read -r -a TOOL_GROUP; do + docker system prune --all --force --volumes || true # Check if any of the lines in .tt_biocontainer_skip is a substring of $TOOL_GROUP if echo "${TOOL_GROUP[@]}" | grep -qf .tt_biocontainer_skip; then PLANEMO_OPTIONS=() @@ -189,8 +179,6 @@ if [ "$MODE" == "test" ]; then planemo test_reports tool_test_output.json --test_output tool_test_output.html mv tool_test_output.json tool_test_output.html upload/ - - kill "$PRUNE_PID" fi # combine reports mode