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

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 41ae29ebd9 GH-42005: [Java][Integration][CI] Fix ARROW_BUILD_ROOT Path 
to find pom.xml (#42008)
41ae29ebd9 is described below

commit 41ae29ebd98e66d1502d6a830f88d6da056c670e
Author: Hyunseok Seo <[email protected]>
AuthorDate: Fri Jun 7 10:15:50 2024 +0900

    GH-42005: [Java][Integration][CI] Fix ARROW_BUILD_ROOT Path to find 
pom.xml (#42008)
    
    
    
    ### Rationale for this change
    
    This PR aims to fix the issue where the integration tests are failing due 
to the missing `/java/pom.xml` file. It appears that the current code 
incorrectly determines the path to `ARROW_BUILD_ROOT`, leading to the failure 
in locating the `pom.xml` file.
    
    ### What changes are included in this PR?
    
    - Updating the `ARROW_BUILD_ROOT` path determination logic in 
`tester_java.py` to correctly reference the project root.
    
    ### Are these changes tested?
    
    Maybe, Yes.
    
    ### Are there any user-facing changes?
    
    No.
    
    * GitHub Issue: #42005
    
    Authored-by: Hyunseok Seo <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 dev/archery/archery/integration/tester_java.py | 2 +-
 dev/archery/archery/integration/tester_js.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/archery/archery/integration/tester_java.py 
b/dev/archery/archery/integration/tester_java.py
index ccc807410a..9b14c6939c 100644
--- a/dev/archery/archery/integration/tester_java.py
+++ b/dev/archery/archery/integration/tester_java.py
@@ -28,7 +28,7 @@ from .util import run_cmd, log
 
 ARROW_BUILD_ROOT = os.environ.get(
     'ARROW_BUILD_ROOT',
-    Path(__file__).resolve().parents[5]
+    Path(__file__).resolve().parents[4]
 )
 
 
diff --git a/dev/archery/archery/integration/tester_js.py 
b/dev/archery/archery/integration/tester_js.py
index 3d1a229931..dcf56f9a5a 100644
--- a/dev/archery/archery/integration/tester_js.py
+++ b/dev/archery/archery/integration/tester_js.py
@@ -24,7 +24,7 @@ from .util import run_cmd, log
 
 ARROW_BUILD_ROOT = os.environ.get(
     'ARROW_BUILD_ROOT',
-    Path(__file__).resolve().parents[5]
+    Path(__file__).resolve().parents[4]
 )
 ARROW_JS_ROOT = os.path.join(ARROW_BUILD_ROOT, 'js')
 _EXE_PATH = os.path.join(ARROW_JS_ROOT, 'bin')

Reply via email to