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 20:50:26 UTC
(beam) branch users/damccorm/skipPyPost created (now 0db38079f93)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a change to branch users/damccorm/skipPyPost
in repository https://gitbox.apache.org/repos/asf/beam.git
at 0db38079f93 Enable skipping individual python docker images
This branch includes the following new commits:
new 0db38079f93 Enable skipping individual python docker images
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(beam) 01/01: Enable skipping individual python docker images
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch users/damccorm/skipPyPost
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 0db38079f9388776291aa6191841e16b09aa5f34
Author: Danny Mccormick <da...@google.com>
AuthorDate: Wed Feb 26 15:46:41 2025 -0500
Enable skipping individual python docker images
---
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
+ }
}
}