You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2026/06/11 00:09:11 UTC

(beam) branch master updated: Fix Xlang IO Direct installGcpTest uv cache lock (#38862)

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

Abacn 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 081c61ee5b4 Fix Xlang IO Direct installGcpTest uv cache lock (#38862)
081c61ee5b4 is described below

commit 081c61ee5b4b280b2c99f660ba0e04aa735c271a
Author: Abdelrahman Ibrahim <ab...@gmail.com>
AuthorDate: Thu Jun 11 02:09:03 2026 +0200

    Fix Xlang IO Direct installGcpTest uv cache lock (#38862)
    
    * Fix Xlang IO Direct installGcpTest uv cache lock
    
    * use  with per env cache dir
    
    * Added quote paths
    
    * test workflows
---
 .github/trigger_files/beam_PostCommit_Python.json                     | 2 +-
 .github/trigger_files/beam_PostCommit_Python_Xlang_IO_Direct.json     | 2 +-
 .../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy    | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/trigger_files/beam_PostCommit_Python.json b/.github/trigger_files/beam_PostCommit_Python.json
index 21381329475..def2ac98408 100644
--- a/.github/trigger_files/beam_PostCommit_Python.json
+++ b/.github/trigger_files/beam_PostCommit_Python.json
@@ -1,5 +1,5 @@
 {
   "comment": "Modify this file in a trivial way to cause this test suite to run.",
   "pr": "38069",
-  "modification": 48
+  "modification": 49
 }
diff --git a/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Direct.json b/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Direct.json
index c537844dc84..455144f02a3 100644
--- a/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Direct.json
+++ b/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Direct.json
@@ -1,4 +1,4 @@
 {
   "comment": "Modify this file in a trivial way to cause this test suite to run",
-  "modification": 3
+  "modification": 6
 }
diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 0db2d1b27ab..abeede24709 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -3141,9 +3141,11 @@ class BeamModulePlugin implements Plugin<Project> {
           if (extra) {
             installTargets = "${distTarBall}[${packages},${extra}]"
           }
+          def uvCacheDir = "${project.ext.envdir}/.uv_cache"
           project.exec {
             executable 'sh'
-            args '-c', ". ${project.ext.envdir}/bin/activate && pip install uv && uv pip install --pre ${installTargets}"
+            // Default uv cache is global; py310/py314 installGcpTest fight over the same lock.
+            args '-c', ". \"${project.ext.envdir}/bin/activate\" && pip install uv && uv pip install --cache-dir \"${uvCacheDir}\" --pre \"${installTargets}\""
           }
         }
       }