You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2025/02/26 21:36:34 UTC

(beam) branch release-2.63.0-postrelease updated: Enable skipping individual python docker images (#34091)

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch release-2.63.0-postrelease
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/release-2.63.0-postrelease by this push:
     new b9d472b6fdc Enable skipping individual python docker images (#34091)
b9d472b6fdc is described below

commit b9d472b6fdcc35fea263a72aa08ca2bc57c35e8c
Author: Danny McCormick <da...@google.com>
AuthorDate: Wed Feb 26 16:36:22 2025 -0500

    Enable skipping individual python docker images (#34091)
---
 sdks/python/container/build.gradle | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sdks/python/container/build.gradle b/sdks/python/container/build.gradle
index df56149fbed..861d90b6e6b 100644
--- a/sdks/python/container/build.gradle
+++ b/sdks/python/container/build.gradle
@@ -52,7 +52,9 @@ for(int i=min_python_version; i<=max_python_version; ++i) {
     if (cur != min_version) {
       // Enforce ordering to allow the prune step to happen between runs.
       // This will ensure we don't use up too much space (especially in CI environments)
-      mustRunAfter(":sdks:python:container:push" + prev)
+      if (!project.hasProperty("skip-python-3" + prev + "-images")) {
+        mustRunAfter(":sdks:python:container:push" + prev)
+      }
     }
     dependsOn ':sdks:python:container:py' + cur + ':docker'
 
@@ -69,7 +71,9 @@ for(int i=min_python_version; i<=max_python_version; ++i) {
 
 tasks.register("pushAll") {
   for(int ver=min_python_version; ver<=max_python_version; ++ver) {
-      dependsOn ':sdks:python:container:push3' + ver
+      if (!project.hasProperty("skip-python-3" + ver + "-images")) {
+        dependsOn ':sdks:python:container:push3' + ver
+      }
   }
 }