This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new a57872f6946 Fix Docker authentication for Python ValidatesContainer
Dataflow With RC tests (#36718)
a57872f6946 is described below
commit a57872f6946be336e61f7ab5f7475c8be2fcc812
Author: Abdelrahman Ibrahim <[email protected]>
AuthorDate: Tue Nov 4 17:29:00 2025 +0200
Fix Docker authentication for Python ValidatesContainer Dataflow With RC
tests (#36718)
* Added Docker authentication
* removed the Docker auth step from the workflow
---
.../beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml | 7 +++++++
sdks/python/container/run_validatescontainer.sh | 5 +++++
2 files changed, 12 insertions(+)
diff --git
a/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml
b/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml
index 482a4d50910..e3e769fa60b 100644
---
a/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml
+++
b/.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml
@@ -81,6 +81,13 @@ jobs:
with:
java-version: default
python-version: ${{ matrix.python_version }}
+ - name: Authenticate to GCP
+ uses: google-github-actions/auth@v3
+ with:
+ service_account: ${{ secrets.GCP_SA_EMAIL }}
+ credentials_json: ${{ secrets.GCP_SA_KEY }}
+ - name: Set up Cloud SDK
+ uses: google-github-actions/setup-gcloud@v3
- name: Set PY_VER_CLEAN
id: set_py_ver_clean
run: |
diff --git a/sdks/python/container/run_validatescontainer.sh
b/sdks/python/container/run_validatescontainer.sh
index 1377b66a6ab..875fd1a138c 100755
--- a/sdks/python/container/run_validatescontainer.sh
+++ b/sdks/python/container/run_validatescontainer.sh
@@ -134,6 +134,11 @@ echo ">>> Successfully built and push container $CONTAINER"
cd sdks/python
SDK_LOCATION=$2
+echo ">>> Configuring Docker authentication for GCR"
+gcloud --quiet auth configure-docker us.gcr.io
+gcloud --quiet auth configure-docker gcr.io
+gcloud auth print-access-token | docker login -u oauth2accesstoken
--password-stdin https://us.gcr.io
+
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o log_cli=True -o log_level=Info -o junit_suite_name=$IMAGE_NAME \
-m=it_validatescontainer \