ashb commented on a change in pull request #18538:
URL: https://github.com/apache/airflow/pull/18538#discussion_r716239265



##########
File path: scripts/ci/testing/ci_run_single_airflow_test_in_docker.sh
##########
@@ -102,10 +102,10 @@ function run_airflow_testing_in_docker() {
             backend_docker_compose+=("-f" 
"${SCRIPTS_CI_DIR}/docker-compose/backend-mssql-bind-volume.yml")
 
             # Runner user doesn't have blanket sudo access, but we can run 
docker as root. Go figure
-            traps::add_trap "docker run -u 0 --rm -v 
${MSSQL_DATA_VOLUME}:/mssql alpine sh -c 'rm -rvf -- /mssql/*' || true" EXIT
+            traps::add_trap "docker run -u 0 --rm -v 
${MSSQL_DATA_VOLUME}:/mssql alpine sh -c 'rm -rvf -- /mssql/.* /mssql/*' || 
true" EXIT
 
-            # Clean up at start too, in case a previous runer left it messy
-            docker run --rm -u 0 -v "${MSSQL_DATA_VOLUME}":/mssql alpine sh -c 
'rm -rfv -- /mssql/*'  || true
+            # Clean up at start too, in case a previous runner left it messy

Review comment:
       This literally shouldn't be possible :(  the script in the runner that 
runs before and after does this too




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to