damccorm commented on code in PR #41778:
URL: https://github.com/apache/beam/pull/41778#discussion_r4770451314


##########
sdks/python/scripts/run_tox.sh:
##########
@@ -76,4 +76,10 @@ if [[ $exit_code == 245 ]]; then
   tox -c tox.ini run --recreate -e "$TOX_ENVIRONMENT"
   exit_code=$?
 fi
+
+# Remove the recreated tox workdir when requested (e.g. multi-env dependency
+# suites) so sequential ML virtualenvs do not exhaust pod ephemeral storage.
+if [[ "${CLEANUP_TOX_ENV:-0}" == "1" && -n "${ENV_NAME:-}" ]]; then
+  rm -rf "target/${ENV_NAME}"

Review Comment:
   Is there a downside to just always doing this?



-- 
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