Skip to content

Commit 5cd9829

Browse files
authored
Merge pull request #36954 from apache/fix-push-images
Fix Republish Released Docker Images job
2 parents ff954f9 + bfea1e3 commit 5cd9829

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.github/workflows/build_release_candidate.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ jobs:
260260
# tasks as they are added.
261261
images_to_publish: [
262262
{"gradle_task": ":pushAllRunnersDockerImages", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
263-
{"gradle_task": ":sdks:python:container:push39", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
264263
{"gradle_task": ":sdks:python:container:push310", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
265264
{"gradle_task": ":sdks:python:container:push311", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
266265
{"gradle_task": ":sdks:python:container:push312", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},

.github/workflows/republish_released_docker_containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
# tasks as they are added.
4848
images_to_publish: [
4949
{"gradle_task": ":pushAllRunnersDockerImages", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
50-
{"gradle_task": ":sdks:python:container:push39", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
5150
{"gradle_task": ":sdks:python:container:push310", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
5251
{"gradle_task": ":sdks:python:container:push311", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
5352
{"gradle_task": ":sdks:python:container:push312", "include_skip_flags": "-Pinclude-ml -Pinclude-distroless"},
@@ -93,6 +92,7 @@ jobs:
9392
run: |
9493
./gradlew ${{ matrix.images_to_publish.gradle_task }} \
9594
-PisRelease \
95+
-PpythonVersion=3.10 \
9696
-Pdocker-pull-licenses \
9797
-Pprune-images ${{ matrix.images_to_publish.include_skip_flags }} \
9898
-Pdocker-repository-root=gcr.io/apache-beam-testing/updated_released_container_images \

release/src/main/scripts/run_rc_validation.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ HUB_VERSION=2.12.0
9999
HUB_ARTIFACTS_NAME=hub-linux-amd64-${HUB_VERSION}
100100
BACKUP_BASHRC=.bashrc_backup_$(date +"%Y%m%d%H%M%S")
101101
BACKUP_M2=settings_backup_$(date +"%Y%m%d%H%M%S").xml
102-
declare -a PYTHON_VERSIONS_TO_VALIDATE=("python3.9")
102+
declare -a PYTHON_VERSIONS_TO_VALIDATE=("python3.10")
103103
echo ""
104104
echo "====================Checking Environment & Variables================="
105105
echo "PLEASE update RC_VALIDATE_CONFIGS in file script.config first."
@@ -604,7 +604,7 @@ if [[ ("$python_xlang_quickstart" = true) \
604604
PYTHON_MULTILANG_QUICKSTART_OUTPUT_FILE_NAME=${PYTHON_MULTILANG_QUICKSTART_FILE_PREFIX}_output
605605
PYTHON_MULTILANG_QUICKSTART_EXPECTED_OUTPUT_FILE_NAME=${PYTHON_MULTILANG_QUICKSTART_FILE_PREFIX}_expected_output
606606
PYTHON_MULTILANG_QUICKSTART_SORTED_OUTPUT_FILE_NAME=${PYTHON_MULTILANG_QUICKSTART_FILE_PREFIX}_sorted_output
607-
607+
608608
# Cleaning up data from any previous runs.
609609
rm ${PYTHON_MULTILANG_QUICKSTART_FILE_PREFIX}*
610610
rm ./beam-examples-multi-language-${RELEASE_VER}.jar
@@ -624,7 +624,7 @@ if [[ ("$python_xlang_quickstart" = true) \
624624
# Downloading the expansion service jar.
625625
wget ${REPO_URL}/org/apache/beam/beam-examples-multi-language/${RELEASE_VER}/beam-examples-multi-language-${RELEASE_VER}.jar
626626
JAVA_EXPANSION_SERVICE_PORT=33333
627-
627+
628628
# Starting up the expansion service in a seperate shell.
629629
echo "A new terminal will pop up and start a java expansion service."
630630
gnome-terminal -x sh -c \
@@ -746,7 +746,7 @@ if [[ ("$java_xlang_quickstart" = true) \
746746
--expansionService=localhost:${PYTHON_EXPANSION_SERVICE_PORT} \
747747
--output=${JAVA_MULTILANG_QUICKSTART_OUTPUT_FILE_NAME}"
748748

749-
# We cannot validate local output since
749+
# We cannot validate local output since
750750
# TODO: Write output to GCS and validate when Python portable runner can forward credentials to GCS appropriately.
751751

752752
java_xlang_quickstart_status=$?

sdks/python/container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ COPY target/go-licenses/* /opt/apache/beam/third_party_licenses/golang/
108108

109109
COPY target/license_scripts /tmp/license_scripts/
110110
RUN if [ "$pull_licenses" = "true" ] ; then \
111-
pip install 'pip-licenses<5' pyyaml tenacity && \
111+
pip install 'pip-licenses<6' pyyaml tenacity && \
112112
python /tmp/license_scripts/pull_licenses_py.py ; \
113113
fi
114114

sdks/python/expansion-service-container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ COPY target/go-licenses/* /opt/apache/beam/third_party_licenses/golang/
6262

6363
COPY target/license_scripts /tmp/license_scripts/
6464
RUN if [ "$pull_licenses" = "true" ] ; then \
65-
pip install 'pip-licenses<5' pyyaml tenacity && \
65+
pip install 'pip-licenses<6' pyyaml tenacity && \
6666
python /tmp/license_scripts/pull_licenses_py.py ; \
6767
fi
6868

0 commit comments

Comments
 (0)